ID 5780370
Пользователь Псарев Александр Павлович
Время 18:38<< 15.11.2021 18:41 (26 д. 16:42) 18:45>>
Обработка 18:41 ... 18:41 (1,40 сек.)
Файл 5780370.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 2, осень 2021
Задача D: FixedAllocator
Набор тестов
Ограничения Время: 2с Память: 128Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
In file included from main.cpp:28:0:
fixed_allocator.h: In instantiation of 'void FixedAllocator<Tp>::Deallocate(Tp*) [with Tp = int]':
main.cpp:47:24:   required from here
fixed_allocator.h:32:9: error: base operand of '->' has non-pointer type 'std::stack<int*, std::deque<int*, std::allocator<int*> > >'
         this->pools->push(p);
         ^~~~
fixed_allocator.h: In instantiation of 'void FixedAllocator<Tp>::Deallocate(Tp*) [with Tp = std::__cxx11::basic_string<char>]':
main.cpp:64:38:   required from here
fixed_allocator.h:32:9: error: base operand of '->' has non-pointer type 'std::stack<std::__cxx11::basic_string<char>*, std::deque<std::__cxx11::basic_string<char>*, std::allocator<std::__cxx11::basic_string<char>*> > >'
fixed_allocator.h: In instantiation of 'void FixedAllocator<Tp>::Deallocate(Tp*) [with Tp = char]':
main.cpp:123:36:   required from here
fixed_allocator.h:32:9: error: base operand of '->' has non-pointer type 'std::stack<char*, std::deque<char*, std::allocator<char*> > >'
[печатать | |
]
(1 217 b)
0.109s 0.008s 10