foo.cc: In function ‘int main()’:
foo.cc:7:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
7 | int main()
| ^~
foo.cc:7:9: note: remove parentheses to default-initialize a variable
7 | int main()
| ^~
| --
foo.cc:7:9: note: or replace parentheses with braces to value-initialize a variable
foo.cc:8:1: error: a function-definition is not allowed here before ‘{’ token
8 | {
| ^
foo.cc:38:2: error: expected ‘}’ at end of input
38 | }
| ^
foo.cc:4:1: note: to match this ‘{’
4 | {
| ^