Borderou de evaluare (job #2807606)
Utilizator | Data | 23 noiembrie 2021 23:13:26 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:17: error: 'INT_MAX' was not declared in this scope
10 | const int inf = 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 |
main.cpp: In member function 'bool Graf::havelHakimi(std::vector<int>)':
main.cpp:284:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
284 | if (x > grade.size())
| ~~^~~~~~~~~~~~~~
main.cpp: In member function 'std::vector<int> Graf::rezolvaDijkstra()':
main.cpp:381:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
381 | for (int i = 1; i < listaCosturi[nod].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !