Problem skillmoves
User WangZ
Submission Time 2025-03-06 16:30:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

skillmoves.cpp: In function ‘int main()’:
skillmoves.cpp:26:19: error: request for member ‘push’ in ‘total’, which is of non-class type ‘std::priority_queue<long long int>()’
26 | total.push(data[index-1].second);
| ^~~~
skillmoves.cpp:28:18: error: request for member ‘empty’ in ‘total’, which is of non-class type ‘std::priority_queue<long long int>()’
28 | if(total.empty()){
| ^~~~~
skillmoves.cpp:31:22: error: request for member ‘top’ in ‘total’, which is of non-class type ‘std::priority_queue<long long int>()’
31 | score+=total.top();
| ^~~
skillmoves.cpp:32:15: error: request for member ‘pop’ in ‘total’, which is of non-class type ‘std::priority_queue<long long int>()’
32 | total.pop();
| ^~~