记录详情

Wrong Answer

In member function 'int Time::toSecond()',
    inlined from 'void Time::addsecond(int)' at /in/foo.cc:21:23,
    inlined from 'int main()' at /in/foo.cc:34:16:
/in/foo.cc:10:36: warning: 't.Time::second' is used uninitialized [-Wuninitialized]
   10 |         return hour*3600+minute*60+second;
      |                                    ^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:33:10: note: 't' declared here
   33 |     Time t(hour,minute,second);
      |          ^
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 492.0 KiB

信息

递交者
类型
自测
题目
P1000 OO1-1 时间类Time
语言
C++
递交时间
2025-03-14 21:55:36
评测时间
2025-03-14 21:55:36
评测机
分数
0
总耗时
2ms
峰值内存
492.0 KiB