fork(1) download
  1. const int A=1;
  2. const int B=2;
  3.  
  4. int main(int argc,char* argv[])
  5. {
  6. int x=1;
  7. switch(x)
  8. {
  9. case A: ++x; break;
  10. case B: --x; break;
  11. }
  12. return 0;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:9:7: error: case label does not reduce to an integer constant
       case A: ++x; break;
       ^
prog.c:10:7: error: case label does not reduce to an integer constant
       case B: --x; break;
       ^
stdout
Standard output is empty