Problem flamethrower
User JcYong
Submission Time 2024-06-21 09:29:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:4:29: error: ‘int’ is not a class, struct, or union type
4 | priority_queue <string,int> totalcost;
| ^
flamethrower.cpp:4:29: error: template argument 3 is invalid
flamethrower.cpp:12:15: error: request for member ‘push’ in ‘totalcost’, which is of non-class type ‘int’
12 | totalcost.push(cost);
| ^~~~
flamethrower.cpp:15:20: error: request for member ‘top’ in ‘totalcost’, which is of non-class type ‘int’
15 | a += totalcost.top();
| ^~~
flamethrower.cpp:16:15: error: request for member ‘pop’ in ‘totalcost’, which is of non-class type ‘int’
16 | totalcost.pop();
| ^~~