Borderou de evaluare (job #1706552)

Utilizator tudorcomanTudor Coman tudorcoman Data 22 mai 2016 19:34:32
Problema Examen Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:81: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:94: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:95: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:96:28: 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(sums, 0, sizeof sums); ^ user.cpp:64: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:65: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:66: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:69:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld", &sum[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1280kbOK10
272ms2636kbOK10
372ms2636kbOK10
40ms1280kbOK10
532ms1836kbOK10
672ms3428kbOK10
70ms1276kbOK10
80ms1272kbOK10
90ms1300kbOK10
1056ms2636kbOK10
Punctaj total100

Ceva nu functioneaza?