Problem notduckhunt
User YSH2020
Submission Time 2025-12-05 14:00:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

notduckhunt.cpp: In member function ‘void MedianHeap::clear()’:
notduckhunt.cpp:130:14: error: ‘class std::priority_queue<long long int>’ has no member named ‘clear’
130 | lower_half.clear();
| ^~~~~
notduckhunt.cpp:131:18: error: ‘class std::priority_queue<long long int>’ has no member named ‘clear’
131 | lower_half_del.clear();
| ^~~~~
notduckhunt.cpp:132:14: error: ‘class std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >’ has no member named ‘clear’
132 | upper_half.clear();
| ^~~~~
notduckhunt.cpp:133:18: error: ‘class std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >’ has no member named ‘clear’
133 | upper_half_del.clear();
| ^~~~~