Borderou de evaluare (job #2813197)

Utilizator StefaniaCriStefania Cristea StefaniaCri Data 6 decembrie 2021 01:17:28
Problema Flux maxim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In member function 'bool Graph::is_correct_graph(std::vector<int>)': main.cpp:71:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 71 | if(v>grade.size()) | ~^~~~~~~~~~~~~ main.cpp: In member function 'void Undirected::criticalConnections(std::vector<std::vector<int> >&)': main.cpp:262:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 262 | for(int i = 0; i < connections.size(); i++) | ~~^~~~~~~~~~~~~~~~~~~~ main.cpp:274:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 274 | for(int i=0;i<output.size();i++) | ~^~~~~~~~~~~~~~ main.cpp: In member function 'int Directed::fluxmax()': main.cpp:374:5: warning: no return statement in function returning non-void [-Wreturn-type] 374 | } | ^ main.cpp: In member function 'void Directed::findCTC()': main.cpp:454:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 454 | for(int i=0;i<sol.size();i++) | ~^~~~~~~~~~~ main.cpp:456:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 456 | for(int j=0;j<sol[i].size();j++) | ~^~~~~~~~~~~~~~ main.cpp: In member function 'void Undirected::dfs_util(int, int, int&, bool*)': main.cpp:119:29: warning: array subscript start is outside array bounds of 'std::vector<int> [0]' [-Warray-bounds] 119 | for(auto vecin: la[start]) | ~~~~~~~~^ main.cpp:60:17: note: while referencing 'Graph::la' 60 | vector<int> la[0]; //lista de adiacenta; | ^~ main.cpp: In member function 'void Undirected::dfs(int, int*)': main.cpp:282:22: warning: array subscript start is outside array bounds of 'std::vector<int> [0]' [-Warray-bounds] 282 | for(auto i:la[start]) | ~~~~~~~~^ main.cpp:60:17: note: while referencing 'Graph::la' 60 | vector<int> la[0]; //lista de adiacenta; | ^~ main.cpp: In member function 'void Directed::reverse()': main.cpp:466:23: warning: array subscript <unknown> is outside array bounds of 'std::vector<int> [0]' [-Warray-bounds] 466 | for(int j:la[i]) | ~~~~^ main.cpp:60:17: note: while referencing 'Graph::la' 60 | vector<int> la[0]; //lista de adiacenta; | ^~ main.cpp: In member function 'virtual void Directed::add_muchie(int, int)': main.cpp:494:20: warning: array subscript x is outside array bounds of 'std::vector<int> [0]' [-Warray-bounds] 494 | la[x].push_back(y); | ~~~~~~~~~~~~~~~^~~ main.cpp:60:17: note: while referencing 'Graph::la' 60 | vector<int> la[0]; //lista de adiacenta; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
19ms10059kbKilled by Signal 1100
211ms9932kbKilled by Signal 1100
314ms12419kbKilled by Signal 1100
410ms10059kbKilled by Signal 1100
513ms12423kbKilled by Signal 1100
614ms12423kbKilled by Signal 1100
79ms10059kbKilled by Signal 1100
810ms10059kbKilled by Signal 1100
910ms10059kbKilled by Signal 110
1014ms12431kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?