fork download
  1. #define FOO(x) { x; }
  2.  
  3. int f(int a) {
  4. if(a > 10)
  5. FOO(return 42);
  6. else return 10;
  7. }
  8.  
  9. int main() {
  10. f(11);
  11. }
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int f(int)':
prog.cpp:6:6: error: 'else' without a previous 'if'
stdout
Standard output is empty