Borderou de evaluare (job #2817890)

Utilizator SebicaPGLSebastian Ionel SebicaPGL Data 14 decembrie 2021 16:01:02
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::royFloydAlgorithm(int (*)[100])': main.cpp:94:110: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 94 | (weightMatrix[i][j] > weightMatrix[i][k] + weightMatrix[k][j] || !weightMatrix[k][j] && i != j) | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ main.cpp: In member function 'void Graph::bfs(int)': main.cpp:160:37: warning: unused variable 'nodeDegree' [-Wunused-variable] 160 | int visitedNodes[100000] = {0}, nodeDegree[100000] = {0}; | ^~~~~~~~~~ main.cpp: In member function 'void Graph::topologicalSort()': main.cpp:225:9: warning: unused variable 'visitedNodes' [-Wunused-variable] 225 | int visitedNodes[100000] = {0}, nodeDegree[100000] = {0}; | ^~~~~~~~~~~~ main.cpp: In member function 'bool Graph::checkHavelHakimi(std::vector<int>&)': main.cpp:285:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 285 | if(lastElement > nodeDegrees.size() - 1) { | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:291:48: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 291 | for(int i = nodeDegrees.size() - 1; i > nodeDegrees.size() - 1 - lastElement ; i--) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:307:9: warning: unused variable 'x' [-Wunused-variable] 307 | int x; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
16ms2543kbOK10
26ms2535kbIncorect0
36ms2400kbIncorect0
46ms2236kbOK10
56ms2240kbIncorect0
66ms2125kbOK10
711ms2641kbOK10
811ms2605kbIncorect0
911ms2629kbIncorect0
1016ms2707kbOK10
Punctaj total50

Ceva nu functioneaza?