Borderou de evaluare (job #2808661)

Utilizator catarau.bianca.Bianca Catarau catarau.bianca. Data 25 noiembrie 2021 13:28:26
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:207: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] 207 | 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:254:18: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 254 | if(InCoada[vecin]==false) | ^~ main.cpp:256:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 256 | InCoada[vecin]=true; | ^~~~~~~ main.cpp: In member function 'void graf::kruskall()': main.cpp:306: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] 306 | 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
36ms1433kbKilled by Signal 110
46ms1490kbKilled by Signal 110
520ms1744kbKilled by Signal 110
644ms2301kbKilled by Signal 110
754ms2580kbKilled by Signal 110
8122ms3985kbKilled by Signal 110
983ms3686kbKilled by Signal 110
10265ms5795kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?