Borderou de evaluare (job #2185969)

Utilizator cyg_vladioanBirsan Vlad cyg_vladioan Data 25 martie 2018 11:10:12
Problema Next Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void huge_sum(int*, int*, int*)’: user.cpp:11:28: warning: ‘sizeof’ on array function parameter ‘c’ will return size of ‘int*’ [-Wsizeof-array-argument] memset(c , 0 , sizeof(c)); ^ user.cpp:8:41: note: declared here void huge_sum(int a[] , int b[] , int c[]) ^ user.cpp:11: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(c , 0 , sizeof(c)); ^ user.cpp: In function ‘long long int huge_imp(int*, int*, long long int&, long long int)’: user.cpp:24:28: warning: ‘sizeof’ on array function parameter ‘c’ will return size of ‘int*’ [-Wsizeof-array-argument] memset(c , 0 , sizeof(c)); ^ user.cpp:22:36: note: declared here long long huge_imp(int a[] , int c[] , long long &r , long long k) ^ user.cpp:24: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(c , 0 , sizeof(c)); ^ user.cpp: In function ‘int main()’: user.cpp:44:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^~~~ In file included from /usr/include/c++/6/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^~~~ user.cpp:44:11: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^ In file included from /usr/include/c++/6/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^~~~ user.cpp:42:9: warning: unused variable ‘d’ [-Wunused-variable] int d , i; ^ user.cpp:40:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("next.in" , "r" , stdin); ^ user.cpp:41:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("next.out" , "w" , stdout); ^ user.cpp:44:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:45:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms6800kbIncorect0
20ms6800kbIncorect0
30ms4752kbOK10
40ms4764kbOK10
58ms6828kbIncorect0
628ms6896kbIncorect0
776ms7060kbIncorect0
888msDepăşitMemory limit exceeded.0
9120msDepăşitMemory limit exceeded.0
10132msDepăşitMemory limit exceeded.0
Punctaj total20

Ceva nu functioneaza?