Borderou de evaluare (job #2990819)

Utilizator raulboancaBoanca Raul Alin raulboanca Data 8 martie 2023 16:33:07
Problema Tastatură defectă Status done
Runda arhiva-utcn Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:24:30: warning: iteration 15 invokes undefined behavior [-Waggressive-loop-optimizations] 24 | frecvs_cif[i]=0; | ~~~~~~~~~~~~~^~ main.cpp:20:23: note: within this loop 20 | for(int i=0; i<=70; i++) | ~^~~~ main.cpp:24:30: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [60, 283] is out of the bounds [0, 60] of object 'frecvs_cif' with type 'int [15]' [-Warray-bounds] 24 | frecvs_cif[i]=0; | ~~~~~~~~~~~~~^~ main.cpp:9:37: note: 'frecvs_cif' declared here 9 | int frecvs_lit[105],frecvt_lit[105],frecvs_cif[15],frecvt_cif[15]; | ^~~~~~~~~~ main.cpp:25:30: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [60, 283] is out of the bounds [0, 60] of object 'frecvt_cif' with type 'int [15]' [-Warray-bounds] 25 | frecvt_cif[i]=0; | ~~~~~~~~~~~~~^~ main.cpp:9:52: note: 'frecvt_cif' declared here 9 | int frecvs_lit[105],frecvt_lit[105],frecvs_cif[15],frecvt_cif[15]; | ^~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms184kbOK100
Punctaj total100

Ceva nu functioneaza?