记录详情

Accepted

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

信息

递交者
类型
自测
题目
P1008 OO1-6 日期时间类DateTime
语言
C++
递交时间
2024-03-15 20:22:56
评测时间
2024-03-16 18:44:09
评测机
分数
10
总耗时
1ms
峰值内存
376.0 KiB