fork download
  1. int main()
  2. {
  3. int x = 5, y = 0;
  4. switch (x) {
  5. case 1:
  6. continue;
  7. case 2:
  8. break;
  9. default:
  10. y = 4;
  11. }
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:6:13: error: continue statement not within a loop
             continue;
             ^
stdout
Standard output is empty