Borderou de evaluare (job #3199231)

Utilizator VVasiuVasiu Vasile VVasiu Data 1 februarie 2024 08:41:20
Problema BFS - Parcurgere in latime Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int bfs(int)': main.cpp:32:1: warning: no return statement in function returning non-void [-Wreturn-type] 32 | } | ^ main.cpp: In function 'int main()': main.cpp:45:17: warning: iteration 100000 invokes undefined behavior [-Waggressive-loop-optimizations] 45 | cost[i] = -1; | ~~~~~~~~^~~~ main.cpp:44:19: note: within this loop 44 | for(int i=1; i<=NN; i++) | ^ main.cpp:45:17: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [400004, 400007] is out of the bounds [0, 400004] of object 'cost' with type 'int [100001]' [-Warray-bounds] 45 | cost[i] = -1; | ~~~~~~~~^~~~ main.cpp:8:5: note: 'cost' declared here 8 | int cost[NN] = {-1}, c[NN]; | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
110ms815kbKilled by Signal 110
210ms815kbKilled by Signal 110
310ms827kbKilled by Signal 110
410ms913kbKilled by Signal 110
59ms991kbKilled by Signal 110
620ms1581kbKilled by Signal 110
7256ms527224kbMemory limit exceeded0
8249ms527077kbMemory limit exceeded0
922ms1613kbKilled by Signal 110
1020ms1617kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?