Borderou de evaluare (job #2843814)
Utilizator | Data | 2 februarie 2022 23:13:20 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dijkstra(const int&)':
main.cpp:21:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
21 | auto [cost, node] = pq.top();
| ^
main.cpp:26:26: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
26 | for (const auto& [newNode, newCost] : adjList[node]) {
| ^
main.cpp: In function 'int main()':
main.cpp:41:30: error: 'INT_MAX' was not declared in this scope
41 | fill(dist, dist + n + 1, INT_MAX);
| ^~~~~~~
main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
4 | #include <queue>
+++ |+#include <climits>
5 | #include <vector>
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !