fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Zahl
  5. {
  6. friend bool operator>(const Zahl& links, const Zahl& rechts) { return *links > *rechts; }
  7. };
  8.  
  9. int main() {
  10. return 0;
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘bool operator>(const Zahl&, const Zahl&)’:
prog.cpp:6:73: error: no match for ‘operator*’ (operand type is ‘const Zahl’)
   friend bool operator>(const Zahl& links, const Zahl& rechts) { return *links > *rechts; }
                                                                         ^~~~~~
prog.cpp:6:82: error: no match for ‘operator*’ (operand type is ‘const Zahl’)
   friend bool operator>(const Zahl& links, const Zahl& rechts) { return *links > *rechts; }
                                                                                  ^~~~~~~
stdout
Standard output is empty