Dijkstros algoritmas
- [1] 2026-03-28 12:19 (44.4)
- [2] 2026-03-28 12:22 (44.4)
- [3] 2026-03-28 12:24 (0)
- [4] 2026-03-28 12:24 (44.4)
- [5] 2026-03-28 12:27 (100)
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. | result | time | message |
|---|
