Problem shoop
User newperson
Submission Time 2024-12-02 15:35:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

shoop.cpp: In function ‘int main()’:
shoop.cpp:17:26: error: no matching function for call to ‘std::multiset<std::pair<long long int, long long int> >::insert(ll&)’
17 | if (t == 1) s2.insert(c);
| ^
In file included from /usr/include/c++/9/set:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from shoop.cpp:1:
/usr/include/c++/9/bits/stl_multiset.h:502:7: note: candidate: ‘std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = std::pair<long long int, long long int>; _Compare = std::less<std::pair<long long int, long long int> >; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<long long int, long long int> >; std::multiset<_Key, _Com