记录详情

Accepted

/in/foo.cc: In member function 'bool Date::runnian(int)':
/in/foo.cc:18:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         if (y2 % 4 == 0 && y2 % 100 != 0 || y2 % 400 == 0)
             ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/in/foo.cc: In member function 'int Date::monthday(int, int)':
/in/foo.cc:36:5: warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^
# 状态 耗时 内存占用
#1 Accepted 1ms 356.0 KiB

信息

递交者
类型
自测
题目
P1008 OO1-6 日期时间类DateTime
语言
C++
递交时间
2024-03-17 18:13:08
评测时间
2024-03-17 18:13:08
评测机
分数
10
总耗时
1ms
峰值内存
356.0 KiB