记录详情

Accepted

/in/foo.cc: In constructor 'Time::Time(int, int, int)':
/in/foo.cc:6:17: warning: 'Time::h' will be initialized after [-Wreorder]
    6 |         int s,m,h;
      |                 ^
/in/foo.cc:6:15: warning:   'int Time::m' [-Wreorder]
    6 |         int s,m,h;
      |               ^
/in/foo.cc:8:9: warning:   when initialized here [-Wreorder]
    8 |         Time(int h=0,int m=0,int s=0):h(h),m(m),s(s){}
      |         ^~~~
/in/foo.cc:6:15: warning: 'Time::m' will be initialized after [-Wreorder]
    6 |         int s,m,h;
      |               ^
/in/foo.cc:6:13: warning:   'int Time::s' [-Wreorder]
    6 |         int s,m,h;
      |             ^
/in/foo.cc:8:9: warning:   when initialized here [-Wreorder]
    8 |         Time(int h=0,int m=0,int s=0):h(h),m(m),s(s){}
      |         ^~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 480.0 KiB
#2 Accepted 2ms 532.0 KiB
#3 Accepted 1ms 528.0 KiB
#4 Accepted 1ms 472.0 KiB
#5 Accepted 1ms 324.0 KiB

信息

递交者
类型
递交
题目
P1000 OO1-1 时间类Time
比赛
2024级《面向对象的方法与实践》第一次作业
语言
C++
递交时间
2025-03-14 19:44:20
评测时间
2025-03-14 19:44:20
评测机
分数
100
总耗时
9ms
峰值内存
532.0 KiB