Borderou de evaluare (job #2121962)

Utilizator andreicoman299Coman Andrei andreicoman299 Data 4 februarie 2018 14:56:31
Problema Plus2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 28

Raport evaluator

Compilare: user.cpp: In function ‘void add(int*, int*)’: user.cpp:31:32: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(max == 0 || max == v[0] && max == w[0]){memset(v, 0, sizeof(v)); return;} ^ user.cpp:31:69: warning: ‘sizeof’ on array function parameter ‘v’ will return size of ‘int*’ [-Wsizeof-array-argument] if(max == 0 || max == v[0] && max == w[0]){memset(v, 0, sizeof(v)); return;} ^ user.cpp:19:23: note: declared here inline void add(int v[], int w[]){ ^ user.cpp:31:67: 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] if(max == 0 || max == v[0] && max == w[0]){memset(v, 0, sizeof(v)); return;} ^ user.cpp: In function ‘int main()’: user.cpp:62:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d", &n); ^ user.cpp:64:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d", &x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1260kbCorect!10
20ms1264kbRaspuns gresit la cerinta b!2
30ms1268kbRaspuns gresit la cerinta b!2
40ms1264kbRaspuns gresit la cerinta b!2
50ms1296kbRaspuns gresit la cerinta b!2
60ms1348kbRaspuns gresit la cerinta b!2
74ms3464kbRaspuns gresit la cerinta b!2
80ms1312kbRaspuns gresit la cerinta b!2
90ms1320kbRaspuns gresit la cerinta b!2
100ms1336kbRaspuns gresit la cerinta b!2
Punctaj total28

Ceva nu functioneaza?