记录详情

Accepted

foo.cc: In member function 'int Date::Monthday()':
foo.cc:72:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   72 |                 if (m == 2)
      |                 ^~
foo.cc:74:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   74 |                         return 31;}
      |                         ^~~~~~
foo.cc: In member function 'int DateTime::Sub(DateTime&)':
foo.cc:121:33: warning: 'delta' may be used uninitialized [-Wmaybe-uninitialized]
  121 |                 return delta1 + delta2;
      |                                 ^~~~~~
foo.cc:38:21: note: 'delta' was declared here
   38 |                 int delta;
      |                     ^~~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 536.0 KiB

信息

递交者
类型
自测
题目
P1008 OO1-6 日期时间类DateTime
语言
C++
递交时间
2024-03-18 21:38:22
评测时间
2024-03-18 21:38:22
评测机
分数
10
总耗时
3ms
峰值内存
536.0 KiB