ID 5787989
Пользователь Far Eastern FU: CODE Fathers
Время 23:08<< 16.11.2021 23:09 (27 д. 21:09) 23:11>>
Обработка 23:09 ... 23:09 (4,06 сек.)
Файл fixed_allocator.h (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 'FixedAllocator<Tp>::FixedAllocator(uint64_t) [with Tp = int; uint64_t = long unsigned int]':
main.cpp:44:32:   required from here
fixed_allocator.h:35:12: error: 'FixedAllocator<int>::page_size' will be initialized after [-Werror=reorder]
     size_t page_size;
            ^~~~~~~~~
fixed_allocator.h:34:19: error:   'PageAllocator FixedAllocator<int>::page_allocator' [-Werror=reorder]
     PageAllocator page_allocator;
                   ^~~~~~~~~~~~~~
fixed_allocator.h:9:14: error:   when initialized here [-Werror=reorder]
     explicit FixedAllocator(std::uint64_t page_size)
              ^~~~~~~~~~~~~~
fixed_allocator.h: In instantiation of 'FixedAllocator<Tp>::FixedAllocator(uint64_t) [with Tp = std::__cxx11::basic_string<char>; uint64_t = long unsigned int]':
main.cpp:55:41:   required from here
fixed_allocator.h:35:12: error: 'FixedAllocator<std::__cxx11::basic_string<char> >::page_size' will be initialized after [-Werror=reorder]
     size_t page_size;
            ^~~~~~~~~
fixed_allocator.h:34:19: error:   'PageAllocator FixedAllocator<std::__cxx11::basic_string<char> >::page_allocator' [-Werror=reorder]
     PageAllocator page_allocator;
                   ^~~~~~~~~~~~~~
fixed_allocator.h:9:14: error:   when initialized here [-Werror=reorder]
     explicit FixedAllocator(std::uint64_t page_size)
              ^~~~~~~~~~~~~~
fixed_allocator.h: In instantiation of 'FixedAllocator<Tp>::FixedAllocator(uint64_t) [with Tp = char; uint64_t = long unsigned int]':
main.cpp:116:35:   required from here
fixed_allocator.h:35:12: error: 'FixedAllocator<char>::page_size' will be initialized after [-Werror=reorder]
     size_t page_size;
            ^~~~~~~~~
fixed_allocator.h:34:19: error:   'PageAllocator FixedAllocator<char>::page_allocator' [-Werror=reorder]
     PageAllocator page_allocator;
                   ^~~~~~~~~~~~~~
fixed_allocator.h:9:14: error:   when initialized here [-Werror=reorder]
     explicit FixedAllocator(std::uint64_t page_size)
              ^~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
[печатать | |
]
(885 b)
0.064s 0.009s 10