prog.cpp: In function ‘int main(int, const char**)’:
prog.cpp:20:2: error: ‘nest2’ was not declared in this scope
prog.cpp:20:8: error: expected primary-expression before ‘int’
prog.cpp:20:8: error: expected ‘;’ before ‘int’
prog.cpp:21:2: error: ‘y’ was not declared in this scope