foo.cc: In constructor 'Person::Person(std::string, int, int, int, int, int, int)':
foo.cc:30:16: warning: 'Person::p' will be initialized after [-Wreorder]
30 | string p;
| ^
foo.cc:32:95: warning: base 'Date' [-Wreorder]
32 | Person(string p,int a1,int a2,int a3,int a4,int a5,int a6):p(p),Date(a1,a2,a3,a4,a5,a6)
| ^
foo.cc:32:9: warning: when initialized here [-Wreorder]
32 | Person(string p,int a1,int a2,int a3,int a4,int a5,int a6):p(p),Date(a1,a2,a3,a4,a5,a6)
| ^~~~~~
[Hydro](https://hydro.ac)提供评测服务