记录详情

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

信息

递交者
类型
自测
题目
P1007 OO1-5 日期时间类DateTime
语言
C++
递交时间
2022-05-01 11:31:15
评测时间
2022-05-01 11:31:15
评测机
分数
10
总耗时
2ms
峰值内存
384.0 KiB