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)提供评测服务