记录详情

Accepted

foo.cc: In constructor 'Date::Date(int, int, int)':
foo.cc:9:10: warning: 'Date::d' will be initialized after [-Wreorder]
    9 |  int y,m,d;
      |          ^
foo.cc:9:8: warning:   'int Date::m' [-Wreorder]
    9 |  int y,m,d;
      |        ^
foo.cc:11:2: warning:   when initialized here [-Wreorder]
   11 |  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:25:7: warning: 'Person::Leave' will be initialized after [-Wreorder]
   25 |  Date Leave;
      |       ^~~~~
foo.cc:23:9: warning:   'std::string Person::Name' [-Wreorder]
   23 |  string Name;
      |         ^~~~
foo.cc:28:2: warning:   when initialized here [-Wreorder]
   28 |  Person(string Name,int y1,int m1,int d1,int y2,int m2,int d2)
      |  ^~~~~~
foo.cc: In destructor 'Persons::~Persons()':
foo.cc:58:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Person*>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   58 |   for(int i = 0;i<Ps.size();i++)
      |                 ~^~~~~~~~~~
foo.cc: In member function 'void Persons::Output()':
foo.cc:71:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Person*>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   71 |   for(int i = 0;i<Ps.size();i++)
      |                 ~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 3ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1039 OO9-2 组合了人类的人群类的始终
比赛
2022春 面向对象程序设计方法的上机作业
语言
C++
递交时间
2022-05-14 20:27:26
评测时间
2022-05-14 20:27:26
评测机
分数
100
总耗时
12ms
峰值内存
384.0 KiB