Borderou de evaluare (job #2162264)

Utilizator cristina_borzaCristina Borza cristina_borza Data 12 martie 2018 09:34:23
Problema Perfect Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void copie(int*, int*)’: user.cpp:16:30: warning: ‘sizeof’ on array function parameter ‘a’ will return size of ‘int*’ [-Wsizeof-array-argument] memset (a, 0, sizeof ( a )); ^ user.cpp:15:20: note: declared here void copie (int a[ ], int b[ ]) { ^ user.cpp:16:26: 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 (a, 0, sizeof ( a )); ^ user.cpp: In function ‘void adun(int*, int*, int*)’: user.cpp:23:28: warning: ‘sizeof’ on array function parameter ‘a’ will return size of ‘int*’ [-Wsizeof-array-argument] memset (a, 0, sizeof (a)); ^ user.cpp:22:19: note: declared here void adun (int a[ ], int b[ ], int c[ ]) { ^ user.cpp:23:26: 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 (a, 0, sizeof (a)); ^ user.cpp: In function ‘void inmult(int*, int*, int*)’: user.cpp:67:29: warning: ‘sizeof’ on array function parameter ‘c’ will return size of ‘int*’ [-Wsizeof-array-argument] memset (c, 0, sizeof( c )); ^ user.cpp:66:21: note: declared here void inmult (int c[ ], int a[ ], int b[ ]) { ^ user.cpp:67:25: 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 )); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms2696kbOK10
24ms2684kbIncorect0
34ms2692kbIncorect0
44ms2836kbIncorect0
54ms2896kbOK10
64ms2900kbIncorect0
74ms2892kbIncorect0
84ms2876kbIncorect0
94ms2896kbIncorect0
104ms2676kbIncorect0
Punctaj total20

Ceva nu functioneaza?