Problem | medianheap |
---|---|
User | YSH2020 |
Submission Time | 2025-02-05 20:17:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
medianheap.cpp: In function ‘int main()’:
medianheap.cpp:10:18: error: ‘class std::multiset<int>’ has no member named ‘front’
10 | top.erase(top.front());
| ^~~~~
medianheap.cpp:14:18: error: ‘class std::multiset<int>’ has no member named ‘first’
14 | if (a >= *top.first()) top.insert(a);
| ^~~~~
medianheap.cpp:19:23: error: ‘class std::multiset<int>’ has no member named ‘front’
19 | bottom.insert(*top.front());
| ^~~~~
medianheap.cpp:20:18: error: ‘class std::multiset<int>’ has no member named ‘front’
20 | top.erase(top.front());
| ^~~~~