Problem skillmoves
User mentcletan
Submission Time 2024-08-11 10:23:39
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]).first;
| ^~~~
skillmoves.cpp:19:9: error: request for member ‘push’ in ‘moves’, which is of non-class type ‘int’
19 | moves.push(brr[i]).second;
| ^~~~
skillmoves.cpp:23:23: error: request for member ‘empty’ in ‘moves’, which is of non-class type ‘int’
23 | while (!moves.empty() && moves.top().first<=current){
| ^~~~~
skillmoves.cpp:23:40: error: request f