ID 5459336
Пользователь Акуленко Валерий Васильевич
Время 23:27<< 08.10.2021 23:28 (23 д. 14:02) 23:30>>
Обработка 23:28 ... 23:28 (2,52 сек.)
Файл 5459336.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 member function 'std::__cxx11::string Date::ToString() const':
date.h:27:21: error: 'to_string' was not declared in this scope
     std::string y = to_string(_year);
                     ^~~~~~~~~
date.h:27:21: note: suggested alternatives:
In file included from /usr/include/c++/7/string:52:0,
                 from /usr/include/c++/7/bits/locale_classes.h:40,
                 from /usr/include/c++/7/bits/ios_base.h:41,
                 from /usr/include/c++/7/ios:42,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from main.cpp:1:
/usr/include/c++/7/bits/basic_string.h:6466:3: note:   'std::__cxx11::to_string'
   to_string(long double __val)
   ^~~~~~~~~
/usr/include/c++/7/bits/basic_string.h:6466:3: note:   'std::__cxx11::to_string'
0.042s 0.009s 9