ID 5774139
Пользователь Крюков Никита Владимирович
Время 21:52<< 14.11.2021 21:52 (25 д. 19:52) 22:03>>
Обработка 21:52 ... 21:52 (2,34 сек.)
Файл 5774139.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.035s 0.012s 9