Wrong Answer

foo.cc: In function 'int main()':
foo.cc:6:17: warning: right operand of comma operator has no effect [-Wunused-value]
    6 |         cin>>a,b;
      |                 ^
foo.cc:17:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   17 |                 if(a%400==0||a%4==0 && a%100!=0)
      |                              ~~~~~~~^~~~~~~~~~~
foo.cc:5:15: warning: 'b' is used uninitialized [-Wuninitialized]
    5 |         int a,b;
      |               ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 516.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Accepted 4ms 412.0 KiB
#4 Wrong Answer Read 28, expect 30. 4ms 412.0 KiB
#5 Wrong Answer Read 29, expect 31. 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1023 某月的天数
语言
C++
递交时间
2023-12-17 21:18:30
评测时间
2023-12-17 21:18:30
评测机
分数
60
总耗时
21ms
峰值内存
516.0 KiB