ID 5925897
Пользователь Морозов Игнат Владимирович
Время 23:40<< 21.12.2021 23:40 (17 д. 23:41) 23:42>>
Обработка 23:40 ... 23:40 (3,41 сек.)
Файл 5925897.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 3, осень 2021
Задача B: Binary/linear search
Набор тестов
Ограничения Время: 1с Память: 4000Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
In file included from main.cpp:16:0:
find.h: In instantiation of 'Iterator Find(const T&, Iterator, Iterator) [with T = int; Iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >]':
main.cpp:48:55:   required from here
find.h:4:64: error: unused variable 'cat' [-Werror=unused-variable]
     typename std::iterator_traits<Iterator>::iterator_category cat;
                                                                ^~~
find.h: In instantiation of 'Iterator Find(const T&, Iterator, Iterator) [with T = Test; Iterator = __gnu_cxx::__normal_iterator<Test*, std::vector<Test> >]':
main.cpp:67:63:   required from here
find.h:4:64: error: unused variable 'cat' [-Werror=unused-variable]
find.h: In instantiation of 'Iterator Find(const T&, Iterator, Iterator) [with T = int; Iterator = std::_List_iterator<int>]':
main.cpp:83:57:   required from here
find.h:4:64: error: unused variable 'cat' [-Werror=unused-variable]
find.h: In instantiation of 'Iterator Find(const T&, Iterator, Iterator) [with T = Test; Iterator = std::_List_iterator<Test>]':
main.cpp:101:63:   required from here
find.h:4:64: error: unused variable 'cat' [-Werror=unused-variable]
cc1plus: all warnings being treated as errors
0.074s 0.013s 9