ID 5786384
Пользователь Морозов Денис Витальевич
Время 19:28<< 16.11.2021 19:32 (27 д. 17:32) 19:33>>
Обработка 19:32 ... 19:32 (1,88 сек.)
Файл 5786384.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 'T CreateFigure(std::istringstream&)':
figure.h:71:28: error: expected initializer before '<' token
         Triangle shared_ptr<Triangle>(a, b, c);
                            ^
figure.h:76:22: error: expected initializer before '<' token
     Circle shared_ptr<Circle>(r);
                      ^
main.cpp: In function 'int main()':
main.cpp:33:37: error: no matching function for call to 'CreateFigure(std::istringstream&)'
    figures.push_back(CreateFigure(is));
                                     ^
In file included from main.cpp:17:0:
figure.h:57:3: note: candidate: template<class T> T CreateFigure(std::istringstream&)
 T CreateFigure(std::istringstream& is) {
   ^~~~~~~~~~~~
figure.h:57:3: note:   template argument deduction/substitution failed:
main.cpp:33:37: note:   couldn't deduce template parameter 'T'
    figures.push_back(CreateFigure(is));
                                     ^
0.040s 0.008s 9