Problem monsters
User Henries
Submission Time 2024-10-18 11:43:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

monsters.cpp: In function ‘void solve(std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >)’:
monsters.cpp:6:46: error: no type named ‘value_type’ in ‘struct std::greater<long long int>’
6 | priority_queue<long long , greater<long long>> available;
| ^~
monsters.cpp:6:46: error: template argument 3 is invalid
monsters.cpp:9:14: error: request for member ‘push’ in ‘available’, which is of non-class type ‘int’
9 | available.push(pq.top().second);
| ^~~~
monsters.cpp:12:18: error: request for member ‘empty’ in ‘available’, which is of non-class type ‘int’
12 | if (!available.empty()){
| ^~~~~
monsters.cpp:15:14: error: request for member ‘pop’ in ‘available’, which is of non-cl