记录详情

Wrong Answer

foo.cc: In constructor 'Date::Date(int, int, int)':
foo.cc:6:21: warning: 'Date::year' will be initialized after [-Wreorder]
    6 |     int day, month, year;
      |                     ^~~~
foo.cc:6:14: warning:   'int Date::month' [-Wreorder]
    6 |     int day, month, year;
      |              ^~~~~
foo.cc:8:5: warning:   when initialized here [-Wreorder]
    8 |     Date(int y=2000,int m=1,int d=1):year(y),month(m),day(d){
      |     ^~~~
foo.cc:6:14: warning: 'Date::month' will be initialized after [-Wreorder]
    6 |     int day, month, year;
      |              ^~~~~
foo.cc:6:9: warning:   'int Date::day' [-Wreorder]
    6 |     int day, month, year;
      |         ^~~
foo.cc:8:5: warning:   when initialized here [-Wreorder]
    8 |     Date(int y=2000,int m=1,int d=1):year(y),month(m),day(d){
      |     ^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Standard answer longer than user output. 2ms 284.0 KiB
#2 Wrong Answer Standard answer longer than user output. 1ms 284.0 KiB
#3 Wrong Answer Standard answer longer than user output. 2ms 284.0 KiB
#4 Wrong Answer Standard answer longer than user output. 2ms 284.0 KiB
#5 Wrong Answer Standard answer longer than user output. 2ms 284.0 KiB

信息

递交者
类型
递交
题目
P1038 OO9-1 组合了日期类的人类的一生
比赛
2023春面向对象的程序设计方法(3)
语言
C++
递交时间
2023-05-27 20:04:59
评测时间
2023-05-27 20:04:59
评测机
分数
0
总耗时
11ms
峰值内存
284.0 KiB