foo.cpp: In function 'int main()':
foo.cpp:24:4: error: expected ')' before '{' token
{
^
foo.cpp:31:3: error: expected primary-expression before '}' token
}
^
foo.cpp:31:3: error: expected ';' before '}' token
foo.cpp:50:4: error: expected ')' before '{' token
{
^
foo.cpp:57:3: error: expected primary-expression before '}' token
}
^
foo.cpp:57:3: error: expected ';' before '}' token
foo.cpp: At global scope:
foo.cpp:60:2: error: expected unqualified-id before 'return'
return 0;
^
foo.cpp:61:1: error: expected declaration before '}' token
}
^