fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int operator++(int a){return 999;}
  5.  
  6. int main() {
  7. // your code goes here
  8. int a=0; a++;
  9. cout<<a;
  10. return 0;
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4:21: error: ‘int operator++(int)’ must have an argument of class or enumerated type
 int operator++(int a){return 999;}
                     ^
stdout
Standard output is empty