Problem | explosives |
---|---|
User | username |
Submission Time | 2024-02-25 23:49:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
explosives.cpp: In function ‘void runtc()’:
explosives.cpp:96:48: error: no matching function for call to ‘std::set<std::pair<int, int> >::upper_bound(int&)’
96 | auto it=s.upper_bound(brr[match[st.top()]]);
| ^
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from explosives.cpp:1:
/usr/include/c++/9/bits/stl_set.h:859:7: note: candidate: ‘std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::upper_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>]’