Accepted

foo.cc: In function 'int main()':
foo.cc:7:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(a%4==0&&a%100!=0||a%400==0)
     ~~~~~~^~~~~~~~~~
foo.cc:9:2: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
  else
  ^~~~
foo.cc:11:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   return 0;
   ^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 396.0 KiB
#2 Accepted 1ms 400.0 KiB
#3 Accepted 1ms 432.0 KiB
#4 Accepted 1ms 416.0 KiB
#5 Accepted 1ms 412.0 KiB

信息

递交者
类型
递交
题目
P2346 1.4.17:判断闰年
语言
C++
递交时间
2021-11-29 11:34:12
评测时间
2021-11-29 11:34:12
评测机
分数
100
总耗时
8ms
峰值内存
432.0 KiB