Borderou de evaluare (job #3281981)

Utilizator rapatudorRapa Balan Tudor Florin rapatudor Data 4 martie 2025 11:33:47
Problema Tastatură defectă Status done
Runda arhiva-utcn Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:19:25: warning: array subscript has type 'char' [-Wchar-subscripts] 19 | vf[cmp[j]]++; | ~~~~~^ main.cpp:30:27: warning: iteration 2005 invokes undefined behavior [-Waggressive-loop-optimizations] 30 | a[i] = cmp[i] = 0; | ~~~~~~~^~~ main.cpp:29:25: note: within this loop 29 | for(int i = 0; i<=2005; i++) | ~^~~~~~ main.cpp:30:27: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 2005 is out of the bounds [0, 2005] of object 'cmp' with type 'char [2005]' [-Warray-bounds] 30 | a[i] = cmp[i] = 0; | ~~~~~~~^~~ main.cpp:9:15: note: 'cmp' declared here 9 | char a[2005], cmp[2005], vf[305]; | ^~~ main.cpp:30:18: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 2005 is out of the bounds [0, 2005] of object 'a' with type 'char [2005]' [-Warray-bounds] 30 | a[i] = cmp[i] = 0; | ~~~~~^~~~~~~~~~~~ main.cpp:9:6: note: 'a' declared here 9 | char a[2005], cmp[2005], vf[305]; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
Punctaj total0

Ceva nu functioneaza?