Borderou de evaluare (job #2189335)

Utilizator CristeaCristianCristea Cristian CristeaCristian Data 28 martie 2018 00:06:50
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:13:24: warning: ‘sizeof’ on array function parameter ‘c’ will return size of ‘int*’ [-Wsizeof-array-argument] memset(c,0,sizeof(c)); ^ user.cpp:10:55: note: declared here void hn_adun(int a[NMAX+5],int b[NMAX+5], int c[NMAX+5]) ^ user.cpp:13: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:27:24: warning: ‘sizeof’ on array function parameter ‘x’ will return size of ‘int*’ [-Wsizeof-array-argument] memset(x,0,sizeof(x)); ^ user.cpp:25:34: note: declared here void hn_constr(int n,int x[NMAX+5]) ^ user.cpp:27: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 ‘int main()’: user.cpp:64:5: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] while(scanf("%c",&ch)&&ch!='\n') ^~~~~ user.cpp:66:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘while’ scanf("%lld",&d); ^~~~~ user.cpp:61:9: warning: unused variable ‘i’ [-Wunused-variable] int i=1; ^ user.cpp:58: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:59: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); ^ user.cpp:66:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld",&d); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms7908kbOK10
24ms7904kbOK10
30ms2700kbOK10
44ms2708kbOK10
512ms7908kbOK10
636ms7908kbOK10
788ms7908kbIncorect0
8216ms9956kbIncorect0
9292ms9952kbIncorect0
10336ms10132kbIncorect0
Punctaj total60

Ceva nu functioneaza?