Borderou de evaluare (job #2808670)

Utilizator catarau.bianca.Bianca Catarau catarau.bianca. Data 25 noiembrie 2021 13:40:28
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In member function 'int graf::conexe(int)': main.cpp:134:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 134 | for (i = 1; i < vizitate.size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp: In function 'bool Havel_Hakimi(std::vector<int>&, int)': main.cpp:156:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 156 | if (a > v.size()) | ~~^~~~~~~~~~ main.cpp: In member function 'void graf::st(int, std::vector<int>, std::stack<int>&)': main.cpp:169:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 169 | for(int i=1;i< muchii.size()-1;i++) | ~^~~~~~~~~~~~~~~~~ main.cpp: In member function 'void graf::dijkstra(int, std::vector<std::pair<int, int> >*)': main.cpp:208:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 208 | for(int i = 0; i < G[nod_curent].size(); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~ main.cpp:192:9: warning: variable 'maxim' set but not used [-Wunused-but-set-variable] 192 | int maxim=-1000; | ^~~~~ main.cpp: In member function 'void graf::bellman_ford(int, std::vector<std::pair<int, int> >*)': main.cpp:256:18: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 256 | if(InCoada[vecin]==false) | ^~ main.cpp:258:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 258 | InCoada[vecin]=true; | ^~~~~~~ main.cpp: In member function 'void graf::kruskall()': main.cpp:308:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 308 | for(int i=0; i< graf_ponderat.size(); i++) | ~^~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'bool Havel_Hakimi(std::vector<int>&, int)': main.cpp:165:1: warning: control reaches end of non-void function [-Wreturn-type] 165 | } | ^ main.cpp: In member function 'int graf::conexe(int)': main.cpp:130:10: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized] 130 | i++; | ~^~ main.cpp: In function 'int main()': main.cpp:331:24: warning: 'maxim' may be used uninitialized in this function [-Wmaybe-uninitialized] 331 | g.afiseaza_dijkstra(maxim); | ~~~~~~~~~~~~~~~~~~~^~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
15ms1380kbKilled by Signal 110
22ms184kbKilled by Signal 110
36ms1478kbKilled by Signal 110
46ms1396kbKilled by Signal 110
521ms1744kbKilled by Signal 110
645ms2297kbKilled by Signal 110
754ms2592kbKilled by Signal 110
8122ms4046kbKilled by Signal 110
987ms3694kbKilled by Signal 110
10264ms5767kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?