foo.cc:3:12: error: stray '#' in program
3 | int main(){#include<iostream>
| ^
foo.cc: In function 'int main()':
foo.cc:3:13: error: 'include' was not declared in this scope
3 | int main(){#include<iostream>
| ^~~~~~~
foo.cc:3:29: error: expected primary-expression before '>' token
3 | int main(){#include<iostream>
| ^
foo.cc:4:1: error: expected primary-expression before 'using'
4 | using namespace std;
| ^~~~~
foo.cc:6:1: error: a function-definition is not allowed here before '{' token
6 | {
| ^
foo.cc:18:1: error: a function-definition is not allowed here before '{' token
18 | {
| ^
foo.cc:25:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
25 | int main()
| ^~
foo.cc:25:9: note: remove parentheses to default-initialize a variable
25 | int main()
| ^~
| --
foo.cc:25:9: note: or replace parentheses with braces to value-initialize a variable
foo.cc:26:1: error: a function-definition is not allowed here before '{' token
26 | {
| ^
foo.cc:34:2: error: expected '}' at end of input
34 | }
| ^
foo.cc:3:11: note: to match this '{'
3 | int main(){#include<iostream>
| ^
[Hydro](https://hydro.ac)提供评测服务