Dijkstros algoritmas

Taškai: 66.7

Compile: OK

dijkstra.cpp: In function ‘void dijkstra(int, std::vector<std::vector<std::pair<int, int> > >&)’: dijkstra.cpp:14:14: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 14 | auto [d, node] = pq.top(); | ^ dijkstra.cpp:17:18: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 17 | for(auto [neigh, w] : graph[node]) { | ^

nr.resulttimemessage
1True0.001 sok
2True0.001 sok
3True0.128 sok
4False0.107 sNeteisinga eilutė
5True0.001 sok
6True0.12 sok
7True0.121 sok
8True0.108 sok
9True0.106 sok
10True0.151 sok
11True0.002 sok
12True0.001 sok
13True0.001 sok
14False0.238 sNeteisinga eilutė
15False0.225 sNeteisinga eilutė
16False0.219 sNeteisinga eilutė
17False0.216 sNeteisinga eilutė
18False0.228 sNeteisinga eilutė