fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int foo() {
  5. catch (...)
  6. {
  7.  
  8. }
  9. }
  10.  
  11. int main() {
  12. return 0;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int foo()':
prog.cpp:5:2: error: expected primary-expression before 'catch'
  catch (...)
  ^
stdout
Standard output is empty