Wrong Answer

foo.cc: In function 'int main()':
foo.cc:12:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(y%400==0||y%4==0&&y%100!=0)
               ~~~~~~^~~~~~~~~~
foo.cc:21:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  if(m=1)
     ~^~
foo.cc:70:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(y%400==0||y%4==0&&y%100!=0&&m>2)
               ~~~~~~~~~~~~~~~~^~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 367, expect 92. 1ms 384.0 KiB
#2 Wrong Answer Read 2, expect 92. 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1084 闰年、年天数、月天数-函数
语言
C++
递交时间
2021-07-24 21:37:50
评测时间
2021-07-24 21:37:50
评测机
分数
0
总耗时
3ms
峰值内存
384.0 KiB