Problem discharging
User ChickenCoder
Submission Time 2023-01-25 12:18:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

discharging.cpp: In member function ‘long long int CHT::query_two(int)’:
discharging.cpp:69:86: error: no matching function for call to ‘lower_bound(std::deque<int>::iterator, std::deque<int>::iterator, int&, bool (&)(int, int))’
69 | int* some = lower_bound(all_intersections.begin(), all_intersections.end(), x, comp);
| ^
In file included from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from discharging.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:1004:5: note: candidate: ‘template<class _ForwardIterator, class _Tp> _ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&)’
1004 | lower_bound(_ForwardIterator __first, _ForwardIterator __last,