Borderou de evaluare (job #3147071)
Utilizator | Data | 23 august 2023 23:38:50 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:16:36: error: 'USHRT_MAX' was not declared in this scope
16 | const unsigned short NOT_IN_HEAP = USHRT_MAX;
| ^~~~~~~~~
main.cpp:3:1: note: 'USHRT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <vector>
+++ |+#include <climits>
3 |
main.cpp: In function 'int main()':
main.cpp:142:36: warning: narrowing conversion of 'v' from 'int' to 'short unsigned int' [-Wnarrowing]
142 | edge[u].push_back({v, w});
| ^
main.cpp:142:39: warning: narrowing conversion of 'w' from 'int' to 'short int' [-Wnarrowing]
142 | edge[u].push_back({v, w});
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !