记录详情

Accepted

foo.cc: In constructor ‘Person::Person(const std::string&, int, int, int, int, int, int)’:
foo.cc:27:10: warning: ‘Person::l’ will be initialized after [-Wreorder]
   27 |     Date l;
      |          ^
foo.cc:25:12: warning:   ‘std::string Person::n’ [-Wreorder]
   25 |     string n;
      |            ^
foo.cc:29:5: warning:   when initialized here [-Wreorder]
   29 |     Person(const string &_n, int y1, int m1, int d1, int y2, int m2, int d2)
      |     ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 500.0 KiB
#2 Accepted 2ms 504.0 KiB
#3 Accepted 2ms 504.0 KiB
#4 Accepted 2ms 504.0 KiB
#5 Accepted 2ms 508.0 KiB

信息

递交者
类型
递交
比赛
2024级《面向对象的方法与实践》第四次作业
语言
C++
递交时间
2025-04-12 22:48:13
评测时间
2025-04-12 22:48:13
评测机
分数
100
总耗时
14ms
峰值内存
508.0 KiB