fork download
  1. #include <string>
  2.  
  3. int main()
  4. {
  5. std::string text;
  6.  
  7. switch (text);
  8. }
  9.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:7: error: switch quantity not an integer
stdout
Standard output is empty