Problem ccs
User ethanlinHoucheng
Submission Time 2025-08-17 23:55:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘bool status(int)’:
ccs.cpp:23:26: error: no matching function for call to ‘std::set<std::pair<int, int> >::lower_bound(int)’
23 | it = s.lower_bound(-a);
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from ccs.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::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>]’
829 | lower_bound(const key_type& __x)
|