记录详情

Accepted

/in/foo.cc: In constructor 'DateTime::DateTime(int, int, int, int, int, int)':
/in/foo.cc:110:10: warning: 'DateTime::t' will be initialized after [-Wreorder]
     Time t;
          ^
/in/foo.cc:109:10: warning:   'Date DateTime::d' [-Wreorder]
     Date d;
          ^
/in/foo.cc:112:5: warning:   when initialized here [-Wreorder]
     DateTime(int y,int mon,int d,int h,int min,int s) : t(h,min,s),d(y,mon,d){}
     ^~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 436.0 KiB
#2 Accepted 2ms 1.078 MiB
#3 Accepted 1ms 376.0 KiB
#4 Accepted 1ms 348.0 KiB
#5 Accepted 1ms 348.0 KiB

信息

递交者
类型
递交
题目
P1303 OO1-5 日期时间类DateTime
语言
C++
递交时间
2024-03-18 19:32:22
评测时间
2024-03-18 19:32:22
评测机
分数
100
总耗时
7ms
峰值内存
1.078 MiB