记录详情

Wrong Answer

/in/foo.cc: In function 'int days(d, d)':
/in/foo.cc:2:40: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
 #define leap(y) ((y)%400==0||(y)%100!=0&&(y)%4==0)
                              ~~~~~~~~~~^~~~~~~~~~
/in/foo.cc:13:5: note: in expansion of macro 'leap'
 td+=leap(i)?366:365;
     ^~~~
/in/foo.cc:2:40: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
 #define leap(y) ((y)%400==0||(y)%100!=0&&(y)%4==0)
                              ~~~~~~~~~~^~~~~~~~~~
/in/foo.cc:15:9: note: in expansion of macro 'leap'
 td-=mon[leap(d1.y)][i];
         ^~~~
/in/foo.cc:2:40: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
 #define leap(y) ((y)%400==0||(y)%100!=0&&(y)%4==0)
                              ~~~~~~~~~~^~~~~~~~~~
/in/foo.cc:18:9: note: in expansion of macro 'leap'
 td+=mon[leap(d2.y)][i];
         ^~~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 216.0 KiB
#2 Wrong Answer 1ms 228.0 KiB
#3 Wrong Answer 1ms 220.0 KiB
#4 Wrong Answer 1ms 224.0 KiB
#5 Wrong Answer 1ms 204.0 KiB

信息

递交者
类型
递交
题目
15-1 改错题
语言
C++
递交时间
2021-06-13 09:43:35
评测时间
2021-06-13 09:43:35
评测机
分数
0
总耗时
6ms
峰值内存
228.0 KiB