Borderou de evaluare (job #2187069)

Utilizator CristeaCristianCristea Cristian CristeaCristian Data 26 martie 2018 10:31:34
Problema Next Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void hn_constr(int, int*)’: user.cpp:11:24: warning: ‘sizeof’ on array function parameter ‘x’ will return size of ‘int*’ [-Wsizeof-array-argument] memset(x,0,sizeof(x)); ^ user.cpp:10:34: note: declared here void hn_constr(int n,int x[NMAX+5]) { ^ user.cpp:11:22: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memset(x,0,sizeof(x)); ^ user.cpp: In function ‘void hn_prod(int*, int*, int*)’: user.cpp:24:24: warning: ‘sizeof’ on array function parameter ‘c’ will return size of ‘int*’ [-Wsizeof-array-argument] memset(c,0,sizeof(c)); ^ user.cpp:22:44: note: declared here void hn_prod(int a[],int b[],int c[2*NMAX+5]) { ^ user.cpp:24:22: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memset(c,0,sizeof(c)); ^ user.cpp: In function ‘void hn_divide(int*, long long int, int*)’: user.cpp:43:23: error: ‘sizef’ was not declared in this scope memset(c,0,sizef(c)); ^ user.cpp: In function ‘int main()’: user.cpp:72:9: error: ‘v’ was not declared in this scope v[i]=ch; ^

Ceva nu functioneaza?