Borderou de evaluare (job #3298765)

Utilizator anca.gdDumitru Anca Gabriela anca.gd Data 1 iunie 2025 15:35:02
Problema Diamant Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 20

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:54:21: warning: iteration 49999 invokes undefined behavior [-Waggressive-loop-optimizations] 54 | vfpoz[i]=0, vfneg[i]=0; | ~~~~~~~~^~ main.cpp:53:24: note: within this loop 53 | for (int i=1; i<=50000; i++) | ~^~~~~~~ main.cpp:54:21: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [200000, 200003] is out of the bounds [0, 200000] of object 'vfpoz' with type 'int [50000]' [-Warray-bounds] 54 | vfpoz[i]=0, vfneg[i]=0; | ~~~~~~~~^~ main.cpp:3:63: note: 'vfpoz' declared here 3 | int valori[403], negativ[50000],pozitiv[50000], vfneg[50000],vfpoz[50000]; | ^~~~~ main.cpp:54:33: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [200000, 200003] is out of the bounds [0, 200000] of object 'vfneg' with type 'int [50000]' [-Warray-bounds] 54 | vfpoz[i]=0, vfneg[i]=0; | ~~~~~~~~^~ main.cpp:3:50: note: 'vfneg' declared here 3 | int valori[403], negativ[50000],pozitiv[50000], vfneg[50000],vfpoz[50000]; | ^~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
211ms806kbKilled by Signal 110
35ms557kbIncorect0
45ms557kbIncorect0
52ms557kbOK10
69ms811kbIncorect0
719ms839kbIncorect0
834ms929kbIncorect0
949ms1048kbIncorect0
1054ms1085kbIncorect0
Punctaj total20

Ceva nu functioneaza?