Borderou de evaluare (job #2808649)

Utilizator catarau.bianca.Bianca Catarau catarau.bianca. Data 25 noiembrie 2021 13:12:20
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:133:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 133 | for (i = 1; i < vizitate.size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp: In function 'bool Havel_Hakimi(std::vector<int>&, int)': main.cpp:155:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 155 | if (a > v.size()) | ~~^~~~~~~~~~ main.cpp: In member function 'void graf::st(int, std::vector<int>, std::stack<int>&)': main.cpp:168:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 168 | 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:206: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] 206 | for(int i = 0; i < G[nod_curent].size(); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void graf::bellman_ford(int, std::vector<std::pair<int, int> >*)': main.cpp:253:18: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 253 | if(InCoada[vecin]==false) | ^~ main.cpp:255:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 255 | InCoada[vecin]=true; | ^~~~~~~ main.cpp: In member function 'void graf::kruskall()': main.cpp:305: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] 305 | for(int i=0; i< graf_ponderat.size(); i++) | ~^~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'bool Havel_Hakimi(std::vector<int>&, int)': main.cpp:164:1: warning: control reaches end of non-void function [-Wreturn-type] 164 | } | ^ main.cpp: In member function 'int graf::conexe(int)': main.cpp:129:10: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized] 129 | i++; | ~^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbKilled by Signal 110
22ms262kbKilled by Signal 110
36ms1372kbKilled by Signal 110
46ms1376kbKilled by Signal 110
521ms1744kbKilled by Signal 110
644ms2301kbKilled by Signal 110
754ms2580kbKilled by Signal 110
8122ms4038kbKilled by Signal 110
987ms3694kbKilled by Signal 110
10264ms5775kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?