Borderou de evaluare (job #2189324)

Utilizator CristeaCristianCristea Cristian CristeaCristian Data 27 martie 2018 23:43:11
Problema Next Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘void hn_adun(int*, int*, int*)’: user.cpp:12:24: warning: ‘sizeof’ on array function parameter ‘c’ will return size of ‘int*’ [-Wsizeof-array-argument] memset(c,0,sizeof(c)); ^ user.cpp:9:43: note: declared here void hn_adun(int a[],int b[], int c[NMAX+5]) ^ user.cpp:12: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_constr(int, int*)’: user.cpp:26:24: warning: ‘sizeof’ on array function parameter ‘x’ will return size of ‘int*’ [-Wsizeof-array-argument] memset(x,0,sizeof(x)); ^ user.cpp:24:34: note: declared here void hn_constr(int n,int x[NMAX+5]) ^ user.cpp:26: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:43:24: warning: ‘sizeof’ on array function parameter ‘c’ will return size of ‘int*’ [-Wsizeof-array-argument] memset(c,0,sizeof(c)); ^ user.cpp:40:44: note: declared here void hn_prod(int a[],int b[],int c[2*NMAX+5]) ^ user.cpp:43: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:65:24: warning: ‘sizeof’ on array function parameter ‘c’ will return size of ‘int*’ [-Wsizeof-array-argument] memset(c,0,sizeof(c)); ^ user.cpp:61:50: note: declared here void hn_divide(int a[], long long k,int c[NMAX+5 ]) ^ user.cpp:65: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 ‘int main()’: user.cpp:103:15: warning: unused variable ‘i’ [-Wunused-variable] long long i=1; ^ user.cpp:100:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("next.in","r",stdin); ^ user.cpp:101:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("next.out","w",stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms12000kbOK10
28ms12008kbOK10
30ms2704kbOK10
44ms2700kbOK10
516ms12000kbOK10
640ms12004kbOK10
792ms12004kbIncorect0
8120msDepăşitMemory limit exceeded.0
9160msDepăşitMemory limit exceeded.0
10164msDepăşitMemory limit exceeded.0
Punctaj total60

Ceva nu functioneaza?