ID 5465018
Пользователь Литвин Михаил Алексеевич
Время 19:53<< 09.10.2021 19:54 (24 д. 10:28) 19:55>>
Обработка 19:54 ... 19:54 (3,16 сек.)
Файл 5465018.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:104:8: error: expected unqualified-id before '[' token
     int[13] count_of_days = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
        ^
date.h: In member function 'Date Date::DaysLater(int)':
date.h:62:31: error: 'count_of_days' was not declared in this scope
         } else if (date_day < count_of_days[date_month]) {
                               ^~~~~~~~~~~~~
date.h: In member function 'int Date::DaysLeft(const Date&)':
date.h:88:27: error: 'count_of_days' was not declared in this scope
     } else if (date_day < count_of_days[date_month]) {
                           ^~~~~~~~~~~~~
[печатать | |
]
(2 683 b)
0.049s 0.013s 10