ID 5779854
Пользователь Псарев Александр Павлович
Время 17:50<< 15.11.2021 17:50 (26 д. 15:50) 17:50>>
Обработка 17:50 ... 17:50 (4,19 сек.)
Файл 5779854.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 destructor 'FixedAllocator<Tp>::~FixedAllocator()':
fixed_allocator.h:40:20: error: 'stack' was not declared in this scope
             delete stack.top();
                    ^~~~~
fixed_allocator.h:40:20: note: suggested alternative:
In file included from /usr/include/c++/7/stack:61:0,
                 from fixed_allocator.h:1,
                 from main.cpp:28:
/usr/include/c++/7/bits/stl_stack.h:99:11: note:   'std::stack'
     class stack
           ^~~~~
[печатать | |
]
(1 213 b)
0.048s 0.017s 10