Problem helloworld
User jatrophalouvre
Submission Time 2024-07-26 15:31:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp: In function ‘void dijkstra_st(int)’:
helloworld.cpp:17:5: error: ‘priority_queue’ was not declared in this scope
17 | priority_queue<PII> q;
| ^~~~~~~~~~~~~~
helloworld.cpp:3:1: note: ‘std::priority_queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’?
2 | #include <vector>
+++ |+#include <queue>
3 | #define fir first
helloworld.cpp:17:23: error: expected primary-expression before ‘>’ token
17 | priority_queue<PII> q;
| ^
helloworld.cpp:17:25: error: ‘q’ was not declared in this scope
17 | priority_queue<PII> q;
| ^
helloworld.cpp:32:25: error: ‘d1’ was not declared in this scope; did you mean ‘d’?
32 | q.push({d1[st][v], v});
| ^~
| d
helloworld.cpp: In function ‘void dijkst