Borderou de evaluare (job #1704800)

Utilizator tudorcomanTudor Coman tudorcoman Data 19 mai 2016 12:26:56
Problema Examen Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘void solve(int64*, pii*, int64*, int, int)’: user.cpp:37:30: 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(computed, 0, sizeof computed); ^ user.cpp:38: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(used, 0, sizeof used); ^ user.cpp: In function ‘int main()’: user.cpp:101: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(v, 0, sizeof v); ^ user.cpp:114: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(v1, 0, sizeof v1); ^ user.cpp:115: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(v2, 0, sizeof v2); ^ user.cpp:116:29: 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(sums1, 0, sizeof sums1); ^ user.cpp:117:29: 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(sums2, 0, sizeof sums2); ^ user.cpp:84:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("examen.in", "r", stdin); ^ user.cpp:85:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("examen.out", "w", stdout); ^ user.cpp:86:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] int N;scanf("%d", &N); ^ user.cpp:89:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &sums[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1060kbOK10
272ms2732kbOK10
376ms2732kbOK10
40ms1056kbOK10
528ms1820kbOK10
6Depăşit2704kbTime limit exceeded.0
70ms1052kbIncorect0
80ms1052kbIncorect0
90ms1076kbIncorect0
1048ms2448kbIncorect0
Punctaj total50

Ceva nu functioneaza?