记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:3:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
 #define Isleap(y) y%4==0&&y%100!=0||y%400==0
                         ^
/in/foo.cc:11:7: note: in expansion of macro 'Isleap'
   if (Isleap(i))
       ^~~~~~
/in/foo.cc:3:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
 #define Isleap(y) y%4==0&&y%100!=0||y%400==0
                         ^
/in/foo.cc:14:7: note: in expansion of macro 'Isleap'
   if (Isleap(i))
       ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 224.0 KiB
#2 Accepted 1ms 220.0 KiB

信息

递交者
类型
递交
题目
P1182 闰年祝福
比赛
2020年互联网创新创业科技节程序设计大赛
语言
C++
递交时间
2020-12-09 14:02:53
评测时间
2020-12-09 14:02:53
评测机
分数
100
总耗时
3ms
峰值内存
224.0 KiB