ID 5935809
Пользователь Соболев Артём Андреевич
Время 21:03<< 25.12.2021 21:04 (32 д. 10:41) 21:05>>
Обработка 21:04 ... 21:04 (3,80 сек.)
Файл 5935809.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:22: error: 'Date::day' will be initialized after [-Werror=reorder]
     int year, month, day;
                      ^~~
date.h:5:15: error:   'int Date::month' [-Werror=reorder]
     int year, month, day;
               ^~~~~
date.h:8:5: error:   when initialized here [-Werror=reorder]
     Date(int year, int month, int day):day(day), month(month), year(year) {
     ^~~~
date.h:5:15: error: 'Date::month' will be initialized after [-Werror=reorder]
     int year, month, day;
               ^~~~~
date.h:5:9: error:   'int Date::year' [-Werror=reorder]
     int year, month, day;
         ^~~~
date.h:8:5: error:   when initialized here [-Werror=reorder]
     Date(int year, int month, int day):day(day), month(month), year(year) {
     ^~~~
cc1plus: all warnings being treated as errors
0.032s 0.009s 9