Borderou de evaluare (job #2815454)

Utilizator IoanaLiviaPopescu15Ioana Livia IoanaLiviaPopescu15 Data 9 decembrie 2021 17:42:19
Problema Floyd-Warshall/Roy-Floyd Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 50

Raport evaluator

Compilare: main.cpp: In member function 'void Graph::DFS(int)': main.cpp:77:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 77 | for(int i = 0; i < adiacenta[vf].size(); ++i) | ~~^~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graph::Solve_APM()': main.cpp:261:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Graph::Muchie>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 261 | for (int i = 0; i < rezultat.size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp:238:15: warning: unused variable 'n1' [-Wunused-variable] 238 | int n, M, n1, n2; | ^~ main.cpp:238:19: warning: unused variable 'n2' [-Wunused-variable] 238 | int n, M, n1, n2; | ^~ main.cpp: In member function 'void Graph::bfs(int, std::queue<int>&)': main.cpp:320:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 320 | for(int i=0;i<adiacenta[el].size();i++){ | ~^~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graph::Solve_RoyFloyd()': main.cpp:374:9: warning: unused variable 'i' [-Wunused-variable] 374 | int i, j, k, n, M[105][105]; | ^ main.cpp:374:12: warning: unused variable 'j' [-Wunused-variable] 374 | int i, j, k, n, M[105][105]; | ^ main.cpp:374:15: warning: unused variable 'k' [-Wunused-variable] 374 | int i, j, k, n, M[105][105]; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
16ms2658kbOK10
26ms2539kbIncorect0
36ms2572kbIncorect0
46ms2547kbOK10
56ms2551kbIncorect0
611ms2703kbOK10
711ms2707kbOK10
811ms2666kbIncorect0
911ms2641kbIncorect0
1016ms2727kbOK10
Punctaj total50

Ceva nu functioneaza?