Borderou de evaluare (job #2969495)
Utilizator | StanCatalin StanCatalin | Data | 23 ianuarie 2023 11:45:03 |
---|---|---|---|
Problema | Floyd-Warshall/Roy-Floyd | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void ComponenteTareConexe()':
main.cpp:145:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
145 | for (int i=0; i<vec.size(); i++) {
| ~^~~~~~~~~~~
main.cpp: In function 'int Kruskal()':
main.cpp:271:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, std::pair<int, int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
271 | for (int i=0; i<muchii.size(); i++) {
| ~^~~~~~~~~~~~~~
main.cpp: In function 'void Dijkstra()':
main.cpp:365:13: warning: unused variable 'cost' [-Wunused-variable]
365 | int cost = aux.first;
| ^~~~
main.cpp: In function 'void RoyFloyd()':
main.cpp:395:28: error: 'INF' was not declared in this scope
395 | dp[i][j] = INF;
| ^~~
main.cpp:410:39: error: 'INF' was not declared in this scope
410 | if (i != j && dp[i][j] == INF)
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !