Problem skillmoves
User mentcletan
Submission Time 2024-08-11 10:16:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

skillmoves.cpp: In function ‘int main()’:
skillmoves.cpp:7:36: error: no type named ‘value_type’ in ‘struct std::greater<std::pair<long long int, long long int> >’
7 | priority_queue<pll, greater<pll>> moves; //sort req and pts in ascending order
| ^~
skillmoves.cpp:7:36: error: template argument 3 is invalid
skillmoves.cpp:18:15: error: request for member ‘push’ in ‘moves’, which is of non-class type ‘int’
18 | moves.push({arr[i],brr[i]});
| ^~~~
skillmoves.cpp:22:23: error: request for member ‘empty’ in ‘moves’, which is of non-class type ‘int’
22 | while (!moves.empty() && moves.top().first<=current){
| ^~~~~
skillmoves.cpp:22:40: error: request for member ‘top’ in ‘moves’, which is of non-class type ‘int’
22 | while (!moves.empty() && moves.top().first<=current){
|