Borderou de evaluare (job #2384341)

Utilizator cyg_vladioanBirsan Vlad cyg_vladioan Data 20 martie 2019 17:21:56
Problema Expozitie Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'void prod(int*, int, int*)': main.cpp:10:26: warning: 'sizeof' on array function parameter 'c' will return size of 'int*' [-Wsizeof-array-argument] memset(c, 0, sizeof(c)); ^ main.cpp:7:49: note: declared here void prod(int a[NMAX + 5], int k, int c[NMAX + 5]) ^ main.cpp:10:24: 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)); ^ main.cpp: In function 'void divide(int*, int*, int)': main.cpp:28:26: warning: 'sizeof' on array function parameter 'c' will return size of 'int*' [-Wsizeof-array-argument] memset(c, 0, sizeof(c)); ^ main.cpp:25:44: note: declared here void divide(int a[NMAX + 5], int c[NMAX + 5], int k) ^ main.cpp:28:24: 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)); ^ main.cpp: In function 'int main()': main.cpp:43:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("expozitie.in", "r", stdin); ^ main.cpp:44:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("expozitie.out", "w", stdout); ^ main.cpp:46:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &n, &d, &k); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
118ms131kbIncorect0
23ms131kbIncorect0
32ms131kbIncorect0
410ms131kbIncorect0
52ms131kbIncorect0
611ms131kbIncorect0
72ms131kbIncorect0
83ms131kbIncorect0
92ms131kbIncorect0
102ms131kbOK10
Punctaj total10

Ceva nu functioneaza?