Borderou de evaluare (job #3030743)

Utilizator hazsda_andreiHazsda Andrei hazsda_andrei Data 17 martie 2023 20:45:16
Problema Tastatură defectă Status done
Runda arhiva-utcn Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void NumarareLitere(char*, int*)': main.cpp:31:28: warning: NULL used in arithmetic [-Wpointer-arith] 31 | for(int i = 0; p[i] != NULL; i++){ | ^~~~ main.cpp: In function 'int main()': main.cpp:54:15: warning: 'void* memset(void*, int, size_t)' forming offset [492, 2000] is out of the bounds [0, 492] of object 'ap1' with type 'int [123]' [-Warray-bounds] 54 | memset(ap1, 0, 2001); | ~~~~~~^~~~~~~~~~~~~~ main.cpp:49:9: note: 'ap1' declared here 49 | int ap1[123] = {0}, ap2[123] = {0}; | ^~~ main.cpp:55:15: warning: 'void* memset(void*, int, size_t)' forming offset [492, 2000] is out of the bounds [0, 492] of object 'ap2' with type 'int [123]' [-Warray-bounds] 55 | memset(ap2, 0, 2001); | ~~~~~~^~~~~~~~~~~~~~ main.cpp:49:25: note: 'ap2' declared here 49 | int ap1[123] = {0}, ap2[123] = {0}; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
110ms405kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?