Compile Error

foo.cc: In function 'int main()':
foo.cc:7:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    7 |         if((year%400==0)||(year%4==0&&year%100!=0));
      |         ^~
foo.cc:8:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    8 |         {
      |         ^
foo.cc:10:9: error: 'else' without a previous 'if'
   10 |         else;
      |         ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1014 闰年
语言
C++
递交时间
2023-11-17 16:33:30
评测时间
2023-11-17 16:33:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes