Problem lis_easy
User Yichen
Submission Time 2026-01-10 12:36:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:13:28: error: no matching function for call to ‘std::multiset<std::pair<int, int> >::lower_bound(int&)’
13 | auto it =ms.lower_bound(i);
| ^
In file included from /usr/include/c++/9/set:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from lis_easy.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<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::multiset<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>]’
810 | lowe