foo.cc: In constructor 'Person::Person(const char*, int, int, int, int, int, int)':
foo.cc:60:20: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
60 | memcpy(name, ch, sizeof(name));
| ^~~~~~~~~~~~
foo.cc: In member function 'Person& Person::operator=(Person)':
foo.cc:76:24: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
76 | memcpy(name, p.name, sizeof(name));
| ^~~~~~~~~~~~
foo.cc: In member function 'void Persons::Output()':
foo.cc:115:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Person*>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
115 | for(int i=0;i<ps.size();i++)
| ~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务