#include <iostream> using namespace std; int main() { int i=10; switch(10){ case 10: cout<<"1"<<endl; break; case 10: cout<<"2"<<endl; } }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:10:3: error: duplicate case value case 10: ^~~~ prog.cpp:7:3: note: previously used here case 10: ^~~~
Standard output is empty