记录详情

Accepted

foo.cc: In member function 'void Time::Add1(int)':
foo.cc:25:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   25 |   if (h >= 24)
      |   ^~
foo.cc:26:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   26 |    h %= 24; flag = 1;
      |             ^~~~
foo.cc: In member function 'int Date::isLeap()':
foo.cc:55:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   55 |   if (y % 4 == 0 && y % 100 != 0 || y % 400 == 0)
      |       ~~~~~~~~~~~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 6ms 384.0 KiB
#3 Accepted 4ms 512.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1008 OO1-6 日期时间类DateTime
比赛
2022春 面向对象程序设计方法的上机作业
语言
C++
递交时间
2022-05-01 11:40:36
评测时间
2022-05-01 11:40:36
评测机
分数
100
总耗时
19ms
峰值内存
512.0 KiB