Dijkstros algoritmas

Taškai: 0

Compile: FAIL

dijkstra.cpp: In function ‘int main()’: dijkstra.cpp:28:14: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 28 | auto [d, v] = pq.top(); | ^ dijkstra.cpp:33:19: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 33 | for (auto [u, w] : adj[v]) { | ^ dijkstra.cpp:45:9: error: ‘out’ was not declared in this scope 45 | out << dist[i] << (i == n - 1 ? "" : " "); | ^~~

nr.resulttimemessage