Problem discharging
User ChickenCoder
Submission Time 2023-01-25 12:06:46
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:64:132: error: no matching function for call to ‘lower_bound(std::deque<int>::iterator, std::deque<int>::iterator, int&, CHT::query_two(int)::<lambda(int, int)>)’
64 | int pos = lower_bound(all_intersections.begin(), all_intersections.end(), x, [&](int element, int value){return value > element;}) - 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> _ForwardI