Problem | 4sum |
---|---|
User | zyh571 |
Submission Time | 2023-02-01 17:36:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
4sum.cpp: In function ‘int main()’:
4sum.cpp:27:63: error: no matching function for call to ‘lower_bound(std::vector<std::pair<int, std::pair<int, int> > >::iterator, std::vector<std::pair<int, std::pair<int, int> > >::iterator, <brace-enclosed initializer list>)’
27 | if((*lower_bound(v2.begin(), v2.end(), {v1[i].first, {0, 0}})->first == -v1[i].first){
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from 4sum.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