记录详情

Accepted

/in/foo.c: In function 'days':
/in/foo.c:2:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
 #define leap(y) ((y)%4==0 && (y)%100!=0 || (y)%400==0)
                  ~~~~~~~~~^~~~~~~~~~~~~
/in/foo.c:12:5: note: in expansion of macro 'leap'
 td+=leap(i)?366:365;
     ^~~~
/in/foo.c:2:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
 #define leap(y) ((y)%4==0 && (y)%100!=0 || (y)%400==0)
                  ~~~~~~~~~^~~~~~~~~~~~~
/in/foo.c:14:9: note: in expansion of macro 'leap'
 td-=mon[leap(d1.y)][i];
         ^~~~
/in/foo.c:2:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
 #define leap(y) ((y)%4==0 && (y)%100!=0 || (y)%400==0)
                  ~~~~~~~~~^~~~~~~~~~~~~
/in/foo.c:17:9: note: in expansion of macro 'leap'
 td+=mon[leap(d2.y)][i];
         ^~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 220.0 KiB

信息

递交者
类型
自测
题目
15-1 改错题
语言
C
递交时间
2021-01-13 10:33:04
评测时间
2021-01-13 10:33:04
评测机
分数
10
总耗时
1ms
峰值内存
220.0 KiB