#include <iostream> using namespace std; int main() { try { int i = 1; } catch( ... ) {} cout << i; return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’:
prog.cpp:7:7: warning: unused variable ‘i’ [-Wunused-variable]
int i = 1;
^
prog.cpp:12:10: error: ‘i’ was not declared in this scope
cout << i;
^
Standard output is empty