记录详情

Accepted

/in/foo.cc: In function 'int leapyear(int)':
/in/foo.cc:6:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    6 |     if (x % 4 == 0 && x % 100 != 0 || x % 400 == 0)
      |         ~~~~~~~~~~~^~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 532.0 KiB

信息

递交者
类型
自测
题目
P1014 OO1-3 日期类Date
语言
C++
递交时间
2026-11-30 08:42:37
评测时间
2026-11-30 08:42:37
评测机
分数
10
总耗时
2ms
峰值内存
532.0 KiB