ID 5769696
Пользователь Смагина Елена Геннадьевна
Время 13:37<< 14.11.2021 13:38 (25 д. 11:39) 17:35>>
Обработка 13:38 ... 13:38 (3,32 сек.)
Файл 5769696.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:69:20: error: reference to local variable 'f' returned [-Werror=return-local-addr]
         auto const f = *core->p;
                    ^
cc1plus: all warnings being treated as errors
0.058s 0.010s 9