Borderou de evaluare (job #2837960)
Utilizator | Data | 22 ianuarie 2022 22:15:24 | |
---|---|---|---|
Problema | Dragoni | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int, int)':
main.cpp:25:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for (i = 0; i< l[nod].size(); i++)
| ~^~~~~~~~~~~~~~~
main.cpp: In function 'void bellman_ford()':
main.cpp:38:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for (i = 0; i<= l[nod].size(); i++)
| ~^~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:83:22: error: 'INT_MAX' was not declared in this scope
83 | distmin[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 |
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !