记录详情

Wrong Answer

foo.cc: In constructor 'Date::Date(int, int, int)':
foo.cc:8:10: warning: 'Date::d' will be initialized after [-Wreorder]
    8 |  int y,m,d;
      |          ^
foo.cc:8:8: warning:   'int Date::m' [-Wreorder]
    8 |  int y,m,d;
      |        ^
foo.cc:10:2: warning:   when initialized here [-Wreorder]
   10 |  Date(int y = 0,int m = 0,int d = 0):y(y),d(d),m(m)
      |  ^~~~
foo.cc: In constructor 'Person::Person(std::string, int, int, int, int, int, int)':
foo.cc:24:7: warning: 'Person::Leave' will be initialized after [-Wreorder]
   24 |  Date Leave;
      |       ^~~~~
foo.cc:22:9: warning:   'std::string Person::Name' [-Wreorder]
   22 |  string Name;
      |         ^~~~
foo.cc:26:2: warning:   when initialized here [-Wreorder]
   26 |  Person(string Name,int y1,int m1,int d1,int y2,int m2,int d2):Birth(y1,m1,d1),Leave(y2,m2,d2),Name(Name)
      |  ^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 396.0 KiB
#2 Wrong Answer 9,11d8 < Person is Deconstruct 3ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Wrong Answer 9,11d8 < Person is Deconstruct 2ms 384.0 KiB
#5 Accepted 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1038 OO9-1 组合了日期类的人类的一生
比赛
2022春 面向对象程序设计方法的上机作业
语言
C++
递交时间
2022-05-14 16:44:50
评测时间
2022-05-14 16:44:50
评测机
分数
60
总耗时
15ms
峰值内存
396.0 KiB