Borderou de evaluare (job #3216711)

Utilizator popgeorge2905Pop George popgeorge2905 Data 19 martie 2024 11:17:40
Problema Tastatură defectă Status done
Runda arhiva-utcn Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void rez(char*, char*)': main.cpp:29:30: warning: array subscript has type 'char' [-Wchar-subscripts] 29 | if(nr_b > nr_a && fr[val] == false) | ^~~ main.cpp:31:16: warning: array subscript has type 'char' [-Wchar-subscripts] 31 | fr[val] = true; | ^~~ main.cpp:12:15: warning: iteration 999 invokes undefined behavior [-Waggressive-loop-optimizations] 12 | fr[i] = false; | ~~~~~~^~~~~~~ main.cpp:10:22: note: within this loop 10 | for(int i = 1; i <= 1000; ++i) | ~~^~~~~~~ main.cpp:12:15: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 1000 is out of the bounds [0, 1000] of object 'fr' with type 'bool [1000]' [-Warray-bounds] 12 | fr[i] = false; | ~~~~~~^~~~~~~ main.cpp:6:6: note: 'fr' declared here 6 | bool fr[1000]; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK100
Punctaj total100

Ceva nu functioneaza?