ID 5935815
Пользователь Соболев Артём Андреевич
Время 21:04<< 25.12.2021 21:05 (32 д. 10:42) 21:06>>
Обработка 21:05 ... 21:05 (2,76 сек.)
Файл 5935815.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:6:22: error: 'Date::day' will be initialized after [-Werror=reorder]
     int year, month, day;
                      ^~~
date.h:6:15: error:   'int Date::month' [-Werror=reorder]
     int year, month, day;
               ^~~~~
date.h:9:5: error:   when initialized here [-Werror=reorder]
     Date(int year, int month, int day):day(day), month(month), year(year) {
     ^~~~
date.h:6:15: error: 'Date::month' will be initialized after [-Werror=reorder]
     int year, month, day;
               ^~~~~
date.h:6:9: error:   'int Date::year' [-Werror=reorder]
     int year, month, day;
         ^~~~
date.h:9: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
[печатать | |
]
(2 475 b)
0.057s 0.009s 10