Problem medianheap
User PlayVoltz
Submission Time 2023-05-19 22:43:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

medianheap.cpp: In function ‘void Mremove(std::multiset<int>&, int)’:
medianheap.cpp:7:2: error: ‘mset’ was not declared in this scope
7 | mset.erase(it);
| ^~~~
medianheap.cpp: In function ‘int main()’:
medianheap.cpp:21:30: error: no match for ‘operator=’ (operand types are ‘std::multiset<int>’ and ‘void’)
21 | vect = Mremove(vect, temp);
| ^
In file included from /usr/include/c++/9/set:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from medianheap.cpp:1:
/usr/include/c++/9/bits/stl_multiset.h:294:7: note: candidate: ‘std::multiset<_Key, _Compare, _Alloc>& std::multiset<_Key, _Compare, _Alloc>::operator=(const std::multiset<_Key, _Compare, _Alloc>&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>]’
294 | operator=(const multiset&) = default;
| ^~~~~~~~
/