Problem videogames
User newperson
Submission Time 2024-12-30 16:27:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

videogames.cpp: In function ‘void solve()’:
videogames.cpp:119:47: error: no matching function for call to ‘std::set<std::vector<long long int> >::lower_bound(ll)’
119 | auto find = mp[v[i].first+k].lower_bound(i+1);
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from videogames.cpp:1:
/usr/include/c++/9/bits/stl_set.h:829:7: note: candidate: ‘std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::lower_bound(const key_type&) [with _Key = std::vector<long long int>; _Compare = std::less<std::vector<long long int> >; _Alloc = std::allocator<std::vector<long long int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::vector<long long int> >; std::set<_Key, _Compare, _Alloc>::key_type =