ID 5774216
Пользователь Крюков Никита Владимирович
Время 22:03<< 14.11.2021 22:04 (25 д. 20:04) 22:31>>
Обработка 22:04 ... 22:04 (5,20 сек.)
Файл 5774216.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 2, осень 2021
Задача A: Набор фигур
Набор тестов
Ограничения Время: 1с Память: 4096Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
main.cpp: In function 'int main()':
main.cpp:33:37: error: use of deleted function 'std::__cxx11::basic_istringstream<_CharT, _Traits, _Alloc>::basic_istringstream(const std::__cxx11::basic_istringstream<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
    figures.push_back(CreateFigure(is));
                                     ^
In file included from /usr/include/c++/7/bits/quoted_string.h:38:0,
                 from /usr/include/c++/7/iomanip:45,
                 from main.cpp:14:
/usr/include/c++/7/sstream:449:7: note: declared here
       basic_istringstream(const basic_istringstream&) = delete;
       ^~~~~~~~~~~~~~~~~~~
In file included from main.cpp:17:0:
figure.h:72:25: note:   initializing argument 1 of 'std::shared_ptr<Figure> CreateFigure(std::istringstream)'
 std::shared_ptr<Figure> CreateFigure(std::istringstream stream) {
                         ^~~~~~~~~~~~
0.038s 0.014s 9