ID 5754508
Пользователь Смирнов Михаил Александрович
Время 12:32<< 13.11.2021 12:33 (24 д. 10:33) 12:35>>
Обработка 12:33 ... 12:33 (2,59 сек.)
Файл main.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 'Tp* FixedAllocator<Tp>::Allocate() [with Tp = int]':
main.cpp:45:30:   required from here
fixed_allocator.h:17:25: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
       for (int i = 0; i < _page_size; ++i) {
                       ~~^~~~~~~~~~~~
fixed_allocator.h: In instantiation of 'Tp* FixedAllocator<Tp>::Allocate() [with Tp = std::__cxx11::basic_string<char>]':
main.cpp:57:24:   required from here
fixed_allocator.h:17:25: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
fixed_allocator.h: In instantiation of 'Tp* FixedAllocator<Tp>::Allocate() [with Tp = char]':
main.cpp:119:40:   required from here
fixed_allocator.h:17:25: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
cc1plus: all warnings being treated as errors
[печатать | |
]
(803 b)
0.048s 0.008s 10