Problem flamethrower
User KingKian
Submission Time 2024-02-20 17:53:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:13:2: error: ‘priority_queue’ was not declared in this scope
13 | priority_queue<int> biggest;
| ^~~~~~~~~~~~~~
flamethrower.cpp:3:1: note: ‘std::priority_queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’?
2 | #include <vector>
+++ |+#include <queue>
3 | using namespace std;
flamethrower.cpp:13:17: error: expected primary-expression before ‘int’
13 | priority_queue<int> biggest;
| ^~~
flamethrower.cpp:17:3: error: ‘trees’ was not declared in this scope
17 | trees.pushback(cost);
| ^~~~~
flamethrower.cpp:24:11: error: ‘trees’ was not declared in this scope
24 | sum += trees[p];
| ^~~~~