ID 5785583
Пользователь Псарев Александр Павлович
Время 16:15<< 16.11.2021 16:16 (27 д. 14:16) 16:16>>
Обработка 16:16 ... 16:16 (2,02 сек.)
Файл 5785583.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 2, осень 2021
Задача C: Smart Pointer
Набор тестов
Ограничения Время: 25с Память: 512Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
In file included from main.cpp:2:0:
SmartPointer.hpp: In instantiation of 'const value_type& smart_pointer::SmartPointer<T, Allocator>::operator*() const [with T = float; Allocator = std::allocator<float>; smart_pointer::SmartPointer<T, Allocator>::value_type = float]':
Test_SmartPointer.hpp:233:9:   required from here
SmartPointer.hpp:101:22: error: 'class smart_pointer::SmartPointer<float, std::allocator<float> >::Core' has no member named 'ptr'
 return *(this->core->ptr);
         ~~~~~~~~~~~~~^~~~
SmartPointer.hpp: In instantiation of 'smart_pointer::SmartPointer<T, Allocator>::value_type& smart_pointer::SmartPointer<T, Allocator>::operator*() [with T = float; Allocator = std::allocator<float>; smart_pointer::SmartPointer<T, Allocator>::value_type = float]':
Test_SmartPointer.hpp:238:9:   required from here
SmartPointer.hpp:94:22: error: 'class smart_pointer::SmartPointer<float, std::allocator<float> >::Core' has no member named 'ptr'
 return *(this->core->ptr);
         ~~~~~~~~~~~~~^~~~
0.043s 0.009s 9