Problem fuel
User trashcan08
Submission Time 2024-12-19 10:36:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fuel.cpp: In function ‘int32_t main()’:
fuel.cpp:8:33: error: no type named ‘value_type’ in ‘struct std::greater<long long int>’
8 | priority_queue<int, greater<int>> q;
| ^~
fuel.cpp:8:33: error: template argument 3 is invalid
fuel.cpp:15:5: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’
15 | q.push(a);
| ^~~~
fuel.cpp:17:4: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’
17 | q.push(L);
| ^~~~
fuel.cpp:18:11: error: request for member ‘empty’ in ‘q’, which is of non-class type ‘int’
18 | while(!q.empty()) {
| ^~~~~
fuel.cpp:20:10: error: request for member ‘top’ in ‘q’, which is of non-class type ‘int’
20 | if (q.top() > dist) {
| ^~~
fuel.cpp:24:14: error: request for member ‘top’ in ‘q’, which is of non-class type ‘int’
24 | dest = q.top()