记录详情

Wrong Answer

foo.cc: In constructor 'Person::Person(int, int, int, int, int, int, std::string)':
foo.cc:23:14: warning: 'Person::dep' will be initialized after [-Wreorder]
   23 |         Date dep;
      |              ^~~
foo.cc:21:16: warning:   'std::string Person::name' [-Wreorder]
   21 |         string name;
      |                ^~~~
foo.cc:25:9: warning:   when initialized here [-Wreorder]
   25 |         Person(int y1, int m1, int d1, int y2, int m2, int d2, string name) :
      |         ^~~~~~
foo.cc: In member function 'void Persons::Output()':
foo.cc:47:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Person*>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   47 |                 for (int i = 0; i < ps.size(); i++)
      |                                 ~~^~~~~~~~~~~
foo.cc: In destructor 'virtual Persons::~Persons()':
foo.cc:52:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Person*>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   52 |                 for (int i = 0; i < ps.size(); i++)
      |                                 ~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 2ms 388.0 KiB
#2 Wrong Answer User output longer than standard answer. 1ms 332.0 KiB
#3 Wrong Answer User output longer than standard answer. 1ms 284.0 KiB
#4 Wrong Answer User output longer than standard answer. 2ms 284.0 KiB
#5 Wrong Answer User output longer than standard answer. 2ms 284.0 KiB

信息

递交者
类型
递交
比赛
2023春面向对象的程序设计方法(3)
语言
C++
递交时间
2023-05-24 18:21:00
评测时间
2023-05-24 18:21:00
评测机
分数
0
总耗时
10ms
峰值内存
388.0 KiB