#include<stdio.h> int main() { int x=2; switch(x) { case 2.3: printf("d"); break; case 2.7: printf("5"); break; case 3.7: printf("5y"); } return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:7: error: case label does not reduce to an integer constant prog.cpp:9: error: case label does not reduce to an integer constant prog.cpp:11: error: case label does not reduce to an integer constant
Standard output is empty