foo.cc:2:20: error: expected ';' before 'int'
2 | using namespace std
| ^
| ;
3 |
4 | int main()
| ~~~
foo.cc: In function 'int main()':
foo.cc:6:9: error: expected unqualified-id before numeric constant
6 | int 3,1
| ^
foo.cc:9:12: error: 'a' was not declared in this scope
9 | if(a>b)
| ^
foo.cc:9:14: error: 'b' was not declared in this scope
9 | if(a>b)
| ^
foo.cc:11:12: error: 'a' was not declared in this scope
11 | if(a>b)
| ^
foo.cc:11:14: error: 'b' was not declared in this scope
11 | if(a>b)
| ^
foo.cc:12:17: error: 'cont' was not declared in this scope; did you mean 'const'?
12 | cont<<b<<endl;
| ^~~~
| const
foo.cc:14:17: error: 'cont' was not declared in this scope; did you mean 'const'?
14 | cont<<NO RESULT<<endl;
| ^~~~
| const
foo.cc:14:23: error: 'NO' was not declared in this scope
14 | cont<<NO RESULT<<endl;
| ^~
foo.cc:15:17: error: expected ';' before '}' token
15 | return 0
| ^
| ;
16 |
17 | }
| ~
[Hydro](https://hydro.ac)提供评测服务