Problem deathray
User starwars3d
Submission Time 2025-04-24 11:10:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

deathray.cpp: In function ‘int main()’:
deathray.cpp:51:4: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘std::priority_queue<Volunteer, std::vector<Volunteer>, CompareVolunteers>(CompareVolunteers (*)())’
51 | pq.push(volunteers[i]);
| ^~~~
deathray.cpp:85:9: error: request for member ‘empty’ in ‘pq’, which is of non-class type ‘std::priority_queue<Volunteer, std::vector<Volunteer>, CompareVolunteers>(CompareVolunteers (*)())’
85 | if (!pq.empty()) {
| ^~~~~
deathray.cpp:87:18: error: request for member ‘top’ in ‘pq’, which is of non-class type ‘std::priority_queue<Volunteer, std::vector<Volunteer>, CompareVolunteers>(CompareVolunteers (*)())’
87 | Volunteer v = pq.top();
| ^~~
deathray.cpp:91:4: error: request for member ‘pop’ in ‘pq’, which is of non-class type ‘std::priority_queue<Volunteer, std::vector<Volunteer>, CompareVolunteer