fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. double x=2.0;
  5. switch(x)
  6. {
  7. case 2.3: printf("d");
  8. break;
  9. case 2.7: printf("5");
  10. break;
  11. case 3.7: printf("5y");
  12.  
  13. }
  14.  
  15. return 0;
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:5: error: switch quantity not an integer
stdout
Standard output is empty