prog.cpp: In function 'int main()':
prog.cpp:17: error: a function-definition is not allowed here before ':' token
prog.cpp:30: error: expected primary-expression at end of input
prog.cpp:30: error: expected `;' at end of input
prog.cpp:30: error: expected primary-expression at end of input
prog.cpp:30: error: expected `)' at end of input
prog.cpp:30: error: expected statement at end of input
prog.cpp:30: error: expected `}' at end of input