fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. for(;printf("hello");)
  5. switch(0)
  6. if((struct foo*)1 == (enum foo1*)1 )
  7. case 0:
  8. do goto l; while((union bar*)1);
  9. else
  10. l:
  11. default:
  12. return sizeof(void(*)(volatile signed int, unsigned long, register char, short, float, double ));
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:6:34: error: use of enum ‘foo1’ without previous declaration
prog.cpp:6:34: error: use of enum ‘foo1’ without previous declaration
prog.cpp:6:29: error: expected primary-expression before ‘enum’
prog.cpp:6:29: error: expected ‘)’ before ‘enum’
prog.cpp:8:20: error: expected ‘)’ before ‘;’ token
prog.cpp:9:7: error: ‘else’ without a previous ‘if’
prog.cpp:11:9: error: case label not within a switch statement
prog.cpp:10:1: warning: label ‘l’ defined but not used [-Wunused-label]
stdout
Standard output is empty