Problem ccs
User yuanbin
Submission Time 2026-04-25 11:58:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:15:24: error: no matching function for call to ‘std::set<int>::erase(std::string&)’
15 | sleeping.erase(qtype);
| ^
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:654:7: note: candidate: ‘std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::erase(std::set<_Key, _Compare, _Alloc>::const_iterator) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<int>; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<int>]’
654 | erase(const_iterator __position)
| ^~~~~
/usr/include/c++/9/bits/stl_set.h:654:28: note: no know