Problem dijkstra
User Ush
Submission Time 2023-11-15 11:16:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp: In function ‘int32_t main()’:
dijkstra.cpp:9:19: error: ‘PII’ was not declared in this scope
9 | vector<vector<PII>> graph(V + 1);
| ^~~
dijkstra.cpp:9:19: error: template argument 1 is invalid
dijkstra.cpp:9:19: error: template argument 2 is invalid
dijkstra.cpp:9:22: error: template argument 1 is invalid
9 | vector<vector<PII>> graph(V + 1);
| ^~
dijkstra.cpp:9:22: error: template argument 2 is invalid
dijkstra.cpp:15:16: error: invalid types ‘int[long long int]’ for array subscript
15 | graph[x].push_back({w, y});
| ^
dijkstra.cpp:16:16: error: invalid types ‘int[long long int]’ for array subscript
16 | graph[y].push_back({w, x});
| ^
dijkstra.cpp:20:35: error: template argument 2 is invalid
20 | priority_queue<PII, vector<PII>, greater<PII>>