Borderou de evaluare (job #2966857)

Utilizator irinaenescu2002Enescu Irina irinaenescu2002 Data 18 ianuarie 2023 16:43:43
Problema Riremito Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void rezolvare()': main.cpp:94:20: warning: iteration 10000 invokes undefined behavior [-Waggressive-loop-optimizations] 94 | vizitat[i] = false; | ~~~~~~~~~~~^~~~~~~ main.cpp:92:20: note: within this loop 92 | for (int i=0; i<=10000; i++) | ~^~~~~~~ main.cpp:94:20: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 10000 is out of the bounds [0, 10000] of object 'vizitat' with type 'bool [10000]' [-Warray-bounds] 94 | vizitat[i] = false; | ~~~~~~~~~~~^~~~~~~ main.cpp:22:6: note: 'vizitat' declared here 22 | bool vizitat[10000]; | ^~~~~~~ main.cpp:95:20: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [40000, 40003] is out of the bounds [0, 40000] of object 'costuri' with type 'int [10000]' [-Warray-bounds] 95 | costuri[i] = 0; | ~~~~~~~~~~~^~~ main.cpp:21:50: note: 'costuri' declared here 21 | int n, x, y, cost, k, radacina, radacini[10000], costuri[10000], costuri_riremito[10000], cost_minim; | ^~~~~~~ main.cpp:96:29: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [40000, 40003] is out of the bounds [0, 40000] of object 'costuri_riremito' with type 'int [10000]' [-Warray-bounds] 96 | costuri_riremito[i] = 0; | ~~~~~~~~~~~~~~~~~~~~^~~ main.cpp:21:66: note: 'costuri_riremito' declared here 21 | int n, x, y, cost, k, radacina, radacini[10000], costuri[10000], costuri_riremito[10000], cost_minim; | ^~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms184kbIncorect0
20ms184kbIncorect0
30ms192kbIncorect0
40ms184kbIncorect0
50ms184kbIncorect0
60ms184kbKilled by Signal 110
70ms184kbKilled by Signal 110
80ms184kbKilled by Signal 110
90ms184kbKilled by Signal 110
100ms188kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?