| Problem | monsters |
|---|---|
| User | PerihelionfromAphelion |
| Submission Time | 2026-09-21 14:44:44 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
monsters.cpp: In function ‘int32_t main()’:
monsters.cpp:13:2: error: declaration does not declare anything [-fpermissive]
13 | priority_queue<int, vector<int>, greater<int>>;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
monsters.cpp:18:4: error: ‘pq’ was not declared in this scope
18 | pq.push(mons[i].second);
| ^~
monsters.cpp:21:11: error: ‘pq’ was not declared in this scope
21 | while (!pq.empty() && pq.top() < mario) pq.pop();
| ^~
monsters.cpp:22:7: error: ‘pq’ was not declared in this scope
22 | if (pq.empty()) break;
| ^~
monsters.cpp:23:3: error: ‘pq’ was not declared in this scope
23 | pq.pop();
| ^~