ID 5944078
Пользователь Ширяев Денис Александрович
Время 30.12.2021 17:46 (26 д. 17:47) 31.12.2021 15:46>>
Обработка 17:46 ... 12:35 (67701,61 сек.)
Файл 5944078.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 3, осень 2021
Задача A: Slicer
Набор тестов
Ограничения Время: 1с Память: 4000Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
In file included from main.cpp:1:0:
solution.h: In instantiation of 'Slicer<It>::Slicer(It, It, size_t) [with It = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; size_t = long unsigned int]':
solution.h:63:12:   required from 'auto Slice(C&, size_t) [with C = std::vector<int>; size_t = long unsigned int]'
main.cpp:25:3:   required from here
solution.h:37:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
                 page_size <= std::distance(begin, end) ? begin + page_size
                 ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
solution.h: In instantiation of 'Slicer<It>::Slicer(It, It, size_t) [with It = __gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >; size_t = long unsigned int]':
solution.h:63:12:   required from 'auto Slice(C&, size_t) [with C = std::vector<std::__cxx11::basic_string<char> >; size_t = long unsigned int]'
main.cpp:52:31:   required from here
solution.h:37:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
solution.h: In instantiation of 'Slicer<It>::Slicer(It, It, size_t) [with It = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; size_t = long unsigned int]':
main.cpp:65:59:   required from here
solution.h:37:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
solution.h: In instantiation of 'Slicer<It>::Slicer(It, It, size_t) [with It = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >; size_t = long unsigned int]':
solution.h:63:12:   required from 'auto Slice(C&, size_t) [with C = const std::__cxx11::basic_string<char>; size_t = long unsigned int]'
main.cpp:79:44:   required from here
solution.h:37:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
cc1plus: all warnings being treated as errors
0.068s 0.020s 9