Problem cakerun
User Batigol
Submission Time 2025-01-25 22:01:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cakerun.cpp: In function ‘int main()’:
cakerun.cpp:48:42: error: no matching function for call to ‘std::set<cake>::lower_bound(long long int&, int)’
48 | auto it = --s.lower_bound(l,0);
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from cakerun.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 = cake; _Compare = std::less<cake>; _Alloc = std::allocator<cake>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<cake>; std::set<_Key, _Compare, _Alloc>::key_type = cake]’
829 | lower_bound(const key_type& __x)
| ^~~~~~~~~~~
/usr/include/c++/9/bits/stl_set.h:829:7: note: candidate