Wrong Answer

/in/foo.cc: In function 'int WeekdayOfTheFirstDay(int, int)':
/in/foo.cc:11:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(i%400==0 || i%4==0 && i%100!=0)
                  ~~~~~~~^~~~~~~~~~~
/in/foo.cc:31:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if(year%400==0 || year%4==0 && year%100!=0)
                      ~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'void daying(int, int)':
/in/foo.cc:54:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(year%400==0||year%4==0&&year%100!=0)
                   ~~~~~~~~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 376.0 KiB
#2 Wrong Answer 2ms 344.0 KiB

信息

递交者
类型
递交
题目
P1103 打印年历
语言
C++
递交时间
2021-12-05 13:17:16
评测时间
2021-12-05 13:17:16
评测机
分数
0
总耗时
4ms
峰值内存
376.0 KiB