fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i = 0;
  6. switch(i) {
  7. case 0: break;
  8. case 0: break;
  9. }
  10. // your code goes here
  11. return 0;
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:8:3: error: duplicate case value
   case 0: break;
   ^
prog.cpp:7:3: error: previously used here
   case 0: break;
   ^
stdout
Standard output is empty