Borderou de evaluare (job #2800807)
Utilizator | Data | 13 noiembrie 2021 23:56:11 | |
---|---|---|---|
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 'void Graph::BFS(int)':
main.cpp:100:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
100 | for (int i = 0; i < adiacenta[nodCurent].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph::distantaCatreToateNodurile(int)':
main.cpp:146:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
146 | for (int i = 0; i < adiacenta[nodCurent].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph::DFSUtil(int, std::vector<bool>&)':
main.cpp:226:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
226 | for (int i = 0; i < adiacenta[nodPlecare].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph::sortareTopologicaUtil(int, std::vector<bool>&, std::stack<int>&)':
main.cpp:244:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
244 | for (int i = 0; i < adiacenta[v].size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void GraphMatrice::dijkstra(int)':
main.cpp:292:23: error: 'INT_MAX' was not declared in this scope
292 | distanta.push_back(INT_MAX);
| ^~~~~~~
main.cpp:12:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
11 | #include <fstream>
+++ |+#include <climits>
12 |
main.cpp: In member function 'int GraphMatrice::distanta_minima(std::vector<int>, std::vector<bool>)':
main.cpp:327:13: error: 'INT_MAX' was not declared in this scope
327 | int min = INT_MAX; // initializam distanta minima cu valoarea maxima
| ^~~~~~~
main.cpp:327:13: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
main.cpp: In function 'bool havelHakimi(std::vector<int>&, int)':
main.cpp:355:3: error: 'sort' was not declared in this scope; did you mean 'qsort'?
355 | sort(grade.begin(), grade.end(), greater<>());
| ^~~~
| qsort
main.cpp:367:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
367 | if (v > grade.size())
| ~~^~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !