Accepted

foo.cc: In function ‘int mon_day(int, int)’:
foo.cc:7:44: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    7 |                 case 2:return 28+(year%4==0&&year%100!=0||year%400==0);
      |                                   ~~~~~~~~~^~~~~~~~~~~~~
foo.cc:19:1: warning: control reaches end of non-void function [-Wreturn-type]
   19 | }
      | ^
# 状态 耗时 内存占用
#1 Accepted 2ms 512.0 KiB
#2 Accepted 2ms 512.0 KiB
#3 Accepted 2ms 512.0 KiB
#4 Accepted 2ms 512.0 KiB
#5 Accepted 2ms 512.0 KiB

信息

递交者
类型
递交
题目
P1029 A1-4 循环结构练习:今年过去了多少天
比赛
2026.10.3中级班练习
语言
C++
递交时间
2026-10-06 18:55:43
评测时间
2026-10-14 04:35:01
评测机
分数
100
总耗时
11ms
峰值内存
512.0 KiB