Problem atomsplit
User Emma167
Submission Time 2026-06-24 16:30:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

atomsplit.cpp: In function ‘int main()’:
atomsplit.cpp:18:5: error: ‘priority_queue’ was not declared in this scope
18 | priority_queue<int> pq;
| ^~~~~~~~~~~~~~
atomsplit.cpp:10:1: note: ‘std::priority_queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’?
9 | #include <iostream>
+++ |+#include <queue>
10 | using namespace std;
atomsplit.cpp:11:13: error: expected primary-expression before ‘long’
11 | #define int long long
| ^~~~
atomsplit.cpp:18:20: note: in expansion of macro ‘int’
18 | priority_queue<int> pq;
| ^~~
atomsplit.cpp:22:9: error: ‘pq’ was not declared in this scope
22 | pq.push(temp);
| ^~
atomsplit.cpp:28:23: error: ‘pq’ was not declared in this scope
28 | int largest = pq.top();
| ^~
atomsplit.cpp:36:34: error: