ID 5476610
Пользователь Матвеев Ян Альбертович
Время 19:38<< 12.10.2021 19:40 (27 д. 10:13) 19:48>>
Обработка 19:40 ... 19:40 (11,31 сек.)
Файл 5476610.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 1, осень 2021
Задача E: Date
Набор тестов
Ограничения Время: 1с Память: 512Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
In file included from main.cpp:16:0:
date.h: In constructor 'Date::Date(int, int, int)':
date.h:5:17: error: 'Date::year' will be initialized after [-Werror=reorder]
 int day, month, year;
                 ^~~~
date.h:5:10: error:   'int Date::month' [-Werror=reorder]
 int day, month, year;
          ^~~~~
date.h:51:1: error:   when initialized here [-Werror=reorder]
 Date(int year, int month, int day): year(year), month(month), day(day) {}
 ^~~~
date.h:5:10: error: 'Date::month' will be initialized after [-Werror=reorder]
 int day, month, year;
          ^~~~~
date.h:5:5: error:   'int Date::day' [-Werror=reorder]
 int day, month, year;
     ^~~
date.h:51:1: error:   when initialized here [-Werror=reorder]
 Date(int year, int month, int day): year(year), month(month), day(day) {}
 ^~~~
cc1plus: all warnings being treated as errors
[печатать | |
]
(2 208 b)
0.262s 0.012s 10