| Problem | atomsplit |
|---|---|
| User | YH |
| Submission Time | 2026-06-24 16:28:48 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
atomsplit.cpp: In function ‘int main()’:
atomsplit.cpp:9:2: error: ‘priority_queue’ was not declared in this scope
9 | priority_queue<int> pq;
| ^~~~~~~~~~~~~~
atomsplit.cpp:2:1: note: ‘std::priority_queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’?
1 | #include <iostream>
+++ |+#include <queue>
2 | using namespace std;
atomsplit.cpp:9:17: error: expected primary-expression before ‘int’
9 | priority_queue<int> pq;
| ^~~
atomsplit.cpp:14:3: error: ‘pq’ was not declared in this scope
14 | pq.push(temp);
| ^~
atomsplit.cpp:19:22: error: ‘T’ was not declared in this scope
19 | for (int i = 0; i < T; i++) {
| ^
atomsplit.cpp:20:17: error: ‘pq’ was not declared in this scope
20 | int largest = pq.top();
| ^~