Problem 4sum
User zyh571
Submission Time 2023-02-01 17:35:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

4sum.cpp: In function ‘int main()’:
4sum.cpp:27:62: error: expected ‘)’ before ‘->’ token
27 | if(*lower_bound(v2.begin(), v2.end(), {v1[i].first, {0, 0}} -> first == -v1[i].first){
| ~ ^~~
| )
4sum.cpp:27:87: 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