Borderou de evaluare (job #2808680)

Utilizator catarau.bianca.Bianca Catarau catarau.bianca. Data 25 noiembrie 2021 13:46:31
Problema Arbore partial de cost minim 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++; | ~^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbKilled by Signal 110
22ms184kbKilled by Signal 110
32ms184kbKilled by Signal 110
42ms184kbKilled by Signal 110
52ms184kbKilled by Signal 110
62ms184kbKilled by Signal 110
72ms184kbKilled by Signal 110
82ms184kbKilled by Signal 110
92ms184kbKilled by Signal 110
102ms184kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?