Problem discharging
User ChickenCoder
Submission Time 2023-01-25 12:12:55
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:84: error: no matching function for call to ‘lower_bound(std::deque<int>::iterator, std::deque<int>::iterator, int&, bool (&)(int, int))’
69 | int pos = lower_bound(all_intersections.begin(), all_intersections.end(), x, comp) - all_intersections.begin() - 1;
| ^
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,