Borderou de evaluare (job #3191855)

Utilizator Mihnea4.Hoisan Mihnea Mihnea4. Data 10 ianuarie 2024 19:40:48
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:47:17: warning: iteration 100005 invokes undefined behavior [-Waggressive-loop-optimizations] 47 | dist[i] = -1; | ~~~~~~~~^~~~ main.cpp:46:23: note: within this loop 46 | for (int i = 0; i <= MAX_N; ++i) | ~~^~~~~~~~ main.cpp:47:17: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [400020, 400023] is out of the bounds [0, 400020] of object 'dist' with type 'int [100005]' [-Warray-bounds] 47 | dist[i] = -1; | ~~~~~~~~^~~~ main.cpp:45:9: note: 'dist' declared here 45 | int dist[MAX_N]; | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms557kbOK10
21ms557kbOK10
31ms557kbOK10
41ms819kbOK10
52ms819kbOK10
69ms2129kbOK10
729ms4214kbOK10
824ms5726kbOK10
9153ms11706kbOK10
10143ms11698kbOK10
Punctaj total100

Ceva nu functioneaza?