Problem | medianheap |
---|---|
User | PlayVoltz |
Submission Time | 2023-05-19 22:43:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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;
| ^~~~~~~~
/usr/include/c++/9/bits/stl_multiset.h:294:17: note: no known conversion for argument 1 from ‘void’ to ‘const std::multiset<int>&’
294 | operator=(const multiset&) = default;