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