Borderou de evaluare (job #3334197)

Utilizator PETRISOR_STEFANPetrisor Stefan PETRISOR_STEFAN Data 16 ianuarie 2026 18:53:56
Problema BFS - Parcurgere in latime Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void BFS(int)': main.cpp:18:16: warning: iteration 100010 invokes undefined behavior [-Waggressive-loop-optimizations] 18 | Cost[i]=-1; | ~~~~~~~^~~ main.cpp:17:18: note: within this loop 17 | for(int i=0;i<=100010;i++) | ~^~~~~~~~ main.cpp:18:16: 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] 18 | Cost[i]=-1; | ~~~~~~~^~~ main.cpp:11:27: note: 'Cost' declared here 11 | int G[100010], S[100010], Cost[100010]; | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms557kbOK10
21ms557kbOK10
31ms557kbOK10
41ms819kbOK10
52ms819kbOK10
69ms2129kbOK10
728ms4349kbOK10
829ms6496kbOK10
9191ms12222kbOK10
10171ms12210kbOK10
Punctaj total100

Ceva nu functioneaza?