Borderou de evaluare (job #2808689)

Utilizator catarau.bianca.Bianca Catarau catarau.bianca. Data 25 noiembrie 2021 14:06:24
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:135:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 135 | for (i = 1; i < vizitate.size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp: In function 'bool Havel_Hakimi(std::vector<int>&, int)': main.cpp:157:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 157 | if (a > v.size()) | ~~^~~~~~~~~~ main.cpp: In member function 'void graf::st(int, std::vector<int>, std::stack<int>&)': main.cpp:170:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 170 | 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:209: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] 209 | for(int i = 0; i < G[nod_curent].size(); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~ main.cpp:193:9: warning: variable 'maxim' set but not used [-Wunused-but-set-variable] 193 | int maxim=-1000; | ^~~~~ main.cpp: In member function 'void graf::bellman_ford(int, std::vector<std::pair<int, int> >*)': main.cpp:257:18: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 257 | if(InCoada[vecin]==false) | ^~ main.cpp:259:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 259 | InCoada[vecin]=true; | ^~~~~~~ main.cpp: In member function 'void graf::kruskall()': main.cpp:309: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] 309 | for(int i=0; i< graf_ponderat.size(); i++) | ~^~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'bool Havel_Hakimi(std::vector<int>&, int)': main.cpp:166:1: warning: control reaches end of non-void function [-Wreturn-type] 166 | } | ^ main.cpp: In member function 'int graf::conexe(int)': main.cpp:131:10: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized] 131 | i++; | ~^~ main.cpp: In function 'int main()': main.cpp:332:24: warning: 'maxim' may be used uninitialized in this function [-Wmaybe-uninitialized] 332 | g.afiseaza_dijkstra(maxim); | ~~~~~~~~~~~~~~~~~~~^~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbKilled by Signal 110
22ms184kbKilled by Signal 110
36ms1490kbKilled by Signal 110
46ms1437kbKilled by Signal 110
530ms1904kbKilled by Signal 110
668ms2297kbKilled by Signal 110
793ms2592kbKilled by Signal 110
8169ms4050kbKilled by Signal 110
91000ms3686kbTime limit exceeded0
10503ms5791kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?