Wrong Answer

foo.cc: In function 'int main()':
foo.cc:14:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   14 |   if(b=2)
      |      ~^~
foo.cc:16:22: warning: statement has no effect [-Wunused-value]
   16 |   (a%4==0&&a%100!=0) || (a%400==0);
      |   ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 31, expect 29. 2ms 384.0 KiB
#2 Wrong Answer Read 31, expect 28. 3ms 384.0 KiB
#3 Wrong Answer Read 31, expect 29. 3ms 384.0 KiB
#4 Wrong Answer 1d0 < 31 2ms 384.0 KiB
#5 Wrong Answer 2d1 < 30 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1024 某月的天数
语言
C++
递交时间
2022-07-08 15:30:38
评测时间
2022-07-08 15:30:38
评测机
分数
0
总耗时
15ms
峰值内存
384.0 KiB