ID 5731892
Пользователь Пиляй Николай Владимирович
Время 17:56<< 11.11.2021 17:56 (22 д. 15:57) 17:59>>
Обработка 17:56 ... 17:56 (2,14 сек.)
Файл 5731892.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:28:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         if (ind != -1) {
             ~~~~^~~~~
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:28:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
fixed_allocator.h: In instantiation of 'void FixedAllocator<Tp>::Deallocate(Tp*) [with Tp = char]':
main.cpp:123:36:   required from here
fixed_allocator.h:28:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
cc1plus: all warnings being treated as errors
[печатать | |
]
(1 101 b)
0.076s 0.012s 10