#include <iostream> #include <exception> using namespace std; int main() { throw 2/4; catch(int i) { cout << i; } return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:8:9: error: expected primary-expression before ‘catch’ catch(int i) { ^~~~~
Standard output is empty