Borderou de evaluare (job #2808485)
Utilizator | Data | 25 noiembrie 2021 10:33:07 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'bool Graf::HavelHakimi(std::vector<int>)':
main.cpp:266:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
266 | if(prim > grade.size()) return false;
| ~~~~~^~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<int> Graf::dijkstra()':
main.cpp:417:29: error: 'INT_MAX' was not declared in this scope
417 | dist.assign(nrNoduri+1, INT_MAX);
| ^~~~~~~
main.cpp:7:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
6 | #include <algorithm>
+++ |+#include <climits>
7 |
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !