| Problem | summoning |
|---|---|
| User | MegaG |
| Submission Time | 2026-06-26 15:07:09 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
summoning.cpp: In function ‘int main()’:
summoning.cpp:11:2: error: ‘priority_queue’ was not declared in this scope
11 | priority_queue<int> item;
| ^~~~~~~~~~~~~~
summoning.cpp:2:1: note: ‘std::priority_queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’?
1 | #include <iostream>
+++ |+#include <queue>
2 | #define int long long
summoning.cpp:2:13: error: expected primary-expression before ‘long’
2 | #define int long long
| ^~~~
summoning.cpp:11:17: note: in expansion of macro ‘int’
11 | priority_queue<int> item;
| ^~~
summoning.cpp:12:46: error: ‘item’ was not declared in this scope
12 | for(int i = 0; i < n; i++){int x; cin >> x; item.push(x);}
| ^~~~
summoning.cpp:14:57: error: ‘item’ was not declared in this scope
14 | for(int i = 0; i