Borderou de evaluare (job #3283364)

Utilizator crisancrinaCrisan Crina crisancrina Data 9 martie 2025 12:50:40
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:25:23: warning: array subscript has type 'char' [-Wchar-subscripts] 25 | fr[s[i]]++; | ~~~^ main.cpp:28:23: warning: array subscript has type 'char' [-Wchar-subscripts] 28 | ap[t[i]]++; | ~~~^ main.cpp:21:24: warning: iteration 125 invokes undefined behavior [-Waggressive-loop-optimizations] 21 | fr[i]=ap[i]=0; | ~~~~~^~ main.cpp:19:18: note: within this loop 19 | for(i=0;i<=125;i++) | ~^~~~~ main.cpp:21:24: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [500, 503] is out of the bounds [0, 500] of object 'ap' with type 'int [125]' [-Warray-bounds] 21 | fr[i]=ap[i]=0; | ~~~~~^~ main.cpp:7:13: note: 'ap' declared here 7 | int fr[125],ap[125]; | ^~ main.cpp:21:18: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [500, 503] is out of the bounds [0, 500] of object 'fr' with type 'int [125]' [-Warray-bounds] 21 | fr[i]=ap[i]=0; | ~~~~~^~~~~~~~ main.cpp:7:5: note: 'fr' declared here 7 | int fr[125],ap[125]; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK100
Punctaj total100

Ceva nu functioneaza?