foo.cc: In function 'int main()':
foo.cc:6:9: error: 'cout' was not declared in this scope
6 | cout<<"这n个整数:"<<endl;
| ^~~~
foo.cc:6:29: error: 'endl' was not declared in this scope
6 | cout<<"这n个整数:"<<endl;
| ^~~~
foo.cc:7:9: error: 'cin' was not declared in this scope
7 | cin>>n:
| ^~~
foo.cc:10:10: error: 'else' without a previous 'if'
10 | else
| ^~~~
foo.cc:11:17: error: 'b' was not declared in this scope
11 | {cout<<b a<<endl;}
| ^
foo.cc:12:12: error: 'a' was not declared in this scope
12 | if(a%2=0)
| ^
foo.cc:13:19: error: 'end' was not declared in this scope
13 | {cout<<a<<end}
| ^~~
[Hydro](https://hydro.ac)提供评测服务