Borderou de evaluare (job #2186138)

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

Raport evaluator

Compilare: user.cpp: In function ‘void huge_sum(char*, char*, char*, int, int)’: user.cpp:10:31: warning: ‘sizeof’ on array function parameter ‘c’ will return size of ‘char*’ [-Wsizeof-array-argument] memset(c , NULL , sizeof(c)); ^ user.cpp:7:44: note: declared here void huge_sum(char a[] , char b[] , char c[] , int n , int m) ^ user.cpp:10:29: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] memset(c , NULL , sizeof(c)); ^ user.cpp:10:32: warning: passing NULL to non-pointer argument 2 of ‘void* memset(void*, int, size_t)’ [-Wconversion-null] memset(c , NULL , sizeof(c)); ^ user.cpp: In function ‘long long int huge_imp(char*, char*, long long int&, long long int, int)’: user.cpp:23:28: warning: ‘sizeof’ on array function parameter ‘c’ will return size of ‘char*’ [-Wsizeof-array-argument] memset(c , 0 , sizeof(c)); ^ user.cpp:21:38: note: declared here long long huge_imp(char a[] , char c[] , long long &r , long long k , int n) ^ user.cpp:23:26: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to provide an explicit length? [-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(a + 1); ^~~~ 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:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(a + 1); ^ 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 ‘i’ [-Wunused-variable] int i , n , m; ^ 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:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms4752kbIncorect0
20ms4752kbIncorect0
30ms4752kbIncorect0
44ms6796kbIncorect0
54ms6832kbIncorect0
68ms6900kbIncorect0
736ms7052kbIncorect0
888ms7448kbIncorect0
9120ms7684kbIncorect0
10132ms7784kbIncorect0
Punctaj total0

Ceva nu functioneaza?