Borderou de evaluare (job #3188163)

Utilizator MateitzaMatei Dinu Mateitza Data 2 ianuarie 2024 00:14:12
Problema Cc Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'bool bfs(int)': main.cpp:21:32: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 21 | visited[i] = parent[i] = 0; | ~~~~~~~~~~^~~ main.cpp:33:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 33 | for (int i = 0; i < graph[currentNode].size(); i++) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:53:9: warning: unused variable 'm' [-Wunused-variable] 53 | int m, x, y, c, z, totalCost = 0, i; | ^ main.cpp:53:12: warning: unused variable 'x' [-Wunused-variable] 53 | int m, x, y, c, z, totalCost = 0, i; | ^ main.cpp:53:15: warning: unused variable 'y' [-Wunused-variable] 53 | int m, x, y, c, z, totalCost = 0, i; | ^ main.cpp:53:18: warning: unused variable 'c' [-Wunused-variable] 53 | int m, x, y, c, z, totalCost = 0, i; | ^ main.cpp:53:21: warning: unused variable 'z' [-Wunused-variable] 53 | int m, x, y, c, z, totalCost = 0, i; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbOK10
30ms303kbOK10
40ms557kbOK10
51ms819kbOK10
63ms1081kbOK10
75ms1347kbOK10
86ms1343kbOK10
92ms819kbOK10
105ms1081kbOK10
Punctaj total100

Ceva nu functioneaza?