Problem problemsetter
User ilikeeggs
Submission Time 2026-03-02 18:14:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

problemsetter.cpp: In function ‘int32_t main()’:
problemsetter.cpp:34:61: error: no matching function for call to ‘lower_bound(std::vector<std::pair<long long int, long long int> >::iterator, std::vector<std::pair<long long int, long long int> >::iterator, <brace-enclosed initializer list>)’
34 | int j = lower_bound(a.begin(),a.end(),{b[i].first,INT_MAX})-a.begin()-1;
| ^
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 problemsetter.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