ID 5589831
Пользователь Корягин Роман Сергеевич
Время 17:13<< 31.10.2021 17:14 (11 д. 15:14) 17:15>>
Обработка 17:14 ... 17:14 (3,55 сек.)
Файл 5589831.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 2, осень 2021
Задача A: Набор фигур
Набор тестов
Ограничения Время: 1с Память: 4096Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
In file included from main.cpp:17:0:
figure.h: In function 'std::vector<std::__cxx11::basic_string<char> > Split(std::__cxx11::string)':
figure.h:91:5: error: unused variable 'count_' [-Werror=unused-variable]
 int count_ = 0;
     ^~~~~~
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:107:25: note:   initializing argument 1 of 'std::shared_ptr<Figure> CreateFigure(std::istringstream)'
 std::shared_ptr<Figure> CreateFigure(std::istringstream is) {
                         ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
[печатать | |
]
(2 332 b)
0.060s 0.008s 10