ID 5779648
Пользователь Псарев Александр Павлович
Время 17:34<< 15.11.2021 17:34 (26 д. 15:35) 17:35>>
Обработка 17:34 ... 17:34 (2,88 сек.)
Файл 5779648.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 member function 'Tp* FixedAllocator<Tp>::Allocate()':
fixed_allocator.h:18:36: error: expected '(' before 'temp'
             reinterpret_cast<Tp *> temp = \
                                    ^~~~
fixed_allocator.h:18:36: error: 'temp' was not declared in this scope
fixed_allocator.h:18:36: note: suggested alternative: 'mktemp'
             reinterpret_cast<Tp *> temp = \
                                    ^~~~
                                    mktemp
fixed_allocator.h:19:36: error: expected '(' before ')' token
             (reinterpret_cast<Tp *>)this->page_allocator_->Allocate();
                                    ^
fixed_allocator.h:19:36: error: expected primary-expression before ')' token
fixed_allocator.h:19:37: error: expected ')' before 'this'
             (reinterpret_cast<Tp *>)this->page_allocator_->Allocate();
                                     ^~~~
fixed_allocator.h:19:70: error: expected ')' before ';' token
             (reinterpret_cast<Tp *>)this->page_allocator_->Allocate();
                                                                      ^
0.048s 0.009s 9