Wrong Answer

foo.cc: In function 'bool isleap(int)':
foo.cc:5:12: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    5 |  if(n%4==0 && n%100!=0||n%400==0)
      |     ~~~~~~~^~~~~~~~~~~
foo.cc: In function 'int day(int, int)':
foo.cc:19:1: warning: control reaches end of non-void function [-Wreturn-type]
   19 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 5ms 384.0 KiB
#3 Accepted 4ms 512.0 KiB
#4 Accepted 4ms 384.0 KiB
#5 Wrong Answer Read 29, expect 31. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1024 某月的天数
语言
C++
递交时间
2022-07-21 13:51:28
评测时间
2022-07-21 13:51:28
评测机
分数
80
总耗时
18ms
峰值内存
512.0 KiB