ID 5935809
User Соболев Артём Андреевич
Time 21:03<< 25.12.2021 21:04 (32 d. 10:41) 21:05>>
Processing 21:04 ... 21:04 (3,80 sec.)
File 5935809.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: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.037s 0.010s 9