Borderou de evaluare (job #2806657)
Utilizator | Data | 22 noiembrie 2021 21:23:05 | |
---|---|---|---|
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 Graph::havelHakim(std::vector<int>)':
main.cpp:145:18: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
145 | if(grades[0] > grades.size()-1)
main.cpp: In member function 'std::vector<int> WeightedGraph::Dijkstra(int)':
main.cpp:255:39: error: 'INT_MAX' was not declared in this scope
255 | vector<int> minDistance(nrNodes+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 | using namespace std;
main.cpp: In function 'int main()':
main.cpp:288:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
288 | for(int i = 2; i< minDistances.size(); i++) {
| ~^~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !