Borderou de evaluare (job #3199234)

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

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:45:17: warning: iteration 100009 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 [400040, 400043] is out of the bounds [0, 400040] of object 'cost' with type 'int [100010]' [-Warray-bounds] 45 | cost[i] = -1; | ~~~~~~~~^~~~ main.cpp:8:5: note: 'cost' declared here 8 | int cost[NN], c[NN]; | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms819kbOK10
20ms819kbOK10
30ms819kbOK10
41ms819kbOK10
52ms823kbOK10
68ms1605kbOK10
719ms2600kbOK10
814ms2584kbOK10
9109ms9646kbOK10
10104ms9613kbOK10
Punctaj total100

Ceva nu functioneaza?