Borderou de evaluare (job #3213526)
Utilizator | Data | 13 martie 2024 11:06:46 | |
---|---|---|---|
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 init(int)':
main.cpp:18:24: error: 'INT_MAX' was not declared in this scope
18 | else dist[i] = INT_MAX;
| ^~~~~~~
main.cpp:4:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
3 | #include <queue>
+++ |+#include <climits>
4 |
main.cpp: In function 'void dijkstra(int)':
main.cpp:32:18: error: 'INT_MAX' was not declared in this scope
32 | int mn = INT_MAX, nodmn;
| ^~~~~~~
main.cpp:32:18: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp:35:33: error: 'nodmn' was not declared in this scope; did you mean 'nod'?
35 | mn = dist[nod], nodmn = nod;
| ^~~~~
| nod
main.cpp:39:11: error: 'nodmn' was not declared in this scope
39 | f[nodmn] = 1;
| ^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !