foo.cc: In function 'int main()':
foo.cc:10:2: error: expected '}' before 'else'
10 | else if(a%4==0){
| ^~~~
foo.cc:8:14: note: to match this '{'
8 | if(a%400==0){
| ^
foo.cc:12:3: error: expected '}' before 'else'
12 | else cout<<"No";
| ^~~~
foo.cc:10:17: note: to match this '{'
10 | else if(a%4==0){
| ^
foo.cc: At global scope:
foo.cc:14:2: error: expected declaration before '}' token
14 | }
| ^
foo.cc:15:2: error: expected unqualified-id before 'return'
15 | return 0;
| ^~~~~~
foo.cc:16:1: error: expected declaration before '}' token
16 | }
| ^
[Hydro](https://hydro.ac)提供评测服务