ID 5774514
Пользователь Травка Евгения Александровна
Время 14.11.2021 23:15 (25 д. 21:16) 23:21>>
Обработка 23:15 ... 23:15 (3,16 сек.)
Файл 5774514.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 'FixedAllocator<Tp>::FixedAllocator(uint64_t) [with Tp = int; uint64_t = long unsigned int]':
main.cpp:44:32:   required from here
fixed_allocator.h:14:17: error: 'FixedAllocator<int>::page_allocator_' will be initialized after [-Werror=reorder]
   PageAllocator page_allocator_;
                 ^~~~~~~~~~~~~~~
fixed_allocator.h:13:12: error:   'uint64_t FixedAllocator<int>::page_size_' [-Werror=reorder]
   uint64_t page_size_;
            ^~~~~~~~~~
fixed_allocator.h:19:1: error:   when initialized here [-Werror=reorder]
 FixedAllocator<Tp>::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:14:17: error: 'FixedAllocator<std::__cxx11::basic_string<char> >::page_allocator_' will be initialized after [-Werror=reorder]
   PageAllocator page_allocator_;
                 ^~~~~~~~~~~~~~~
fixed_allocator.h:13:12: error:   'uint64_t FixedAllocator<std::__cxx11::basic_string<char> >::page_size_' [-Werror=reorder]
   uint64_t page_size_;
            ^~~~~~~~~~
fixed_allocator.h:19:1: error:   when initialized here [-Werror=reorder]
 FixedAllocator<Tp>::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:14:17: error: 'FixedAllocator<char>::page_allocator_' will be initialized after [-Werror=reorder]
   PageAllocator page_allocator_;
                 ^~~~~~~~~~~~~~~
fixed_allocator.h:13:12: error:   'uint64_t FixedAllocator<char>::page_size_' [-Werror=reorder]
   uint64_t page_size_;
            ^~~~~~~~~~
fixed_allocator.h:19:1: error:   when initialized here [-Werror=reorder]
 FixedAllocator<Tp>::FixedAllocator(std::uint64_t page_size) :
 ^~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
0.041s 0.009s 9