Wrong Answer

foo.cc: In function 'int main()':
foo.cc:36:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   36 |                 if(a%4==0 && a%100!=0 || a%400==0)
      |                    ~~~~~~~^~~~~~~~~~~
foo.cc:37:26: warning: 'm' may be used uninitialized [-Wmaybe-uninitialized]
   37 |                         m+=1;
      |                         ~^~~
foo.cc:5:19: note: 'm' was declared here
    5 |         int a,b,d,m;
      |                   ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 60, expect 61. 4ms 288.0 KiB
#2 Accepted 4ms 516.0 KiB
#3 Wrong Answer Read 397, expect 366. 4ms 284.0 KiB
#4 Wrong Answer Read 396, expect 365. 4ms 412.0 KiB
#5 Wrong Answer Read 42, expect 41. 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1025 计算某日期的天数***
语言
C++
递交时间
2023-12-15 16:12:20
评测时间
2023-12-15 16:12:20
评测机
分数
20
总耗时
22ms
峰值内存
516.0 KiB