记录详情

Accepted

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

信息

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