Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1015 闰年
语言
C++
递交时间
2022-07-19 23:56:53
评测时间
2022-07-19 23:56:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes