Borderou de evaluare (job #3199233)

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

Raport evaluator

Compilare: 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
10ms819kbOK10
20ms819kbOK10
30ms823kbOK10
41ms819kbOK10
52ms823kbOK10
68ms1605kbOK10
719ms2600kbOK10
814ms2568kbOK10
933ms2478kbKilled by Signal 110
1030ms2420kbKilled by Signal 110
Punctaj total80

Ceva nu functioneaza?