ID 5935818
User Соболев Артём Андреевич
Time 21:05<< 25.12.2021 21:06 (32 d. 10:43) 21:11>>
Processing 21:06 ... 21:06 (2,95 sec.)
File 5935818.cpp (CLang++ 5.0.0 + Address Sanitizer)
Contest 2 курс. Программирование на C++. Турнир 1, осень 2021
Problem E: Date
Testset
Limits Time: 1s Memory: 512Mb
Status  [?]
CE Compilation error
source | results
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
0.044s 0.010s 9