ID 5937354
Пользователь Доманский Игорь Сергеевич
Время 21:31<< 26.12.2021 21:31 (22 д. 21:32) 21:33>>
Обработка 21:31 ... 21:31 (2,74 сек.)
Файл 5937354.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 FindIt(const T&, Iterator, Iterator, std::random_access_iterator_tag) [with T = Test; Iterator = __gnu_cxx::__normal_iterator<Test*, std::vector<Test> >]':
find.h:27:18:   required from '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:9:24: error: no match for 'operator!=' (operand types are 'Test' and 'const Test')
     while (l < r && *m != value) {
                     ~~~^~~~~~~~
find.h: In instantiation of 'Iterator FindIt(const T&, Iterator, Iterator, std::bidirectional_iterator_tag) [with T = Test; Iterator = std::_List_iterator<Test>]':
find.h:27:18:   required from 'Iterator Find(const T&, Iterator, Iterator) [with T = Test; Iterator = std::_List_iterator<Test>]'
main.cpp:101:63:   required from here
find.h:21:36: error: no match for 'operator!=' (operand types are 'Test' and 'const Test')
     while (first != last && *first != value) first++;
                             ~~~~~~~^~~~~~~~
0.040s 0.009s 9