Problem cringemeter
User YongXin
Submission Time 2023-12-15 21:25:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cringemeter.cpp: In function ‘int main()’:
cringemeter.cpp:29:59: error: no matching function for call to ‘std::multiset<std::pair<long long int, long long int> >::lower_bound(std::pair<long long int, int>, std::less<std::pair<long long int, long long int> >)’
29 | it=b.lower_bound(make_pair(it->first+c,0),less<pll>());
| ^
In file included from /usr/include/c++/9/set:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from cringemeter.cpp:1:
/usr/include/c++/9/bits/stl_multiset.h:810:7: note: candidate: ‘std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::lower_bound(const key_type&) [with _Key = std::pair<long long int, long long int>; _Compare = std::less<std::pair<long long int, long long int> >; _Alloc = std::allocator<std::pair<long lon