ID 5773731
Пользователь Дранов Семен Владимирович
Время 21:12<< 14.11.2021 21:12 (25 д. 19:13) 22:05>>
Обработка 21:12 ... 21:12 (6,07 сек.)
Файл 5773731.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 2, осень 2021
Задача B: Фабрика
Набор тестов
Ограничения Время: 1с Память: 4096Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
main.cpp:27:7: error: redefinition of 'class Smth'
 class Smth : public Object {
       ^~~~
In file included from main.cpp:17:0:
factory.h:41:7: note: previous definition of 'class Smth'
 class Smth : public Object {
       ^~~~
main.cpp: In function 'int main()':
main.cpp:44:5: error: redefinition of 'int main()'
 int main() {
     ^~~~
In file included from main.cpp:17:0:
factory.h:71:5: note: 'int main()' previously defined here
 int main() {
     ^~~~
main.cpp:48:17: error: 'class Factory' has no member named 'Register'
         factory.Register(class_id, my_new_smth_);
                 ^~~~~~~~
0.050s 0.009s 9