Pagini recente » Borderou de evaluare (job #3116226) | Borderou de evaluare (job #508546) | Borderou de evaluare (job #325260) | Borderou de evaluare (job #403898) | Borderou de evaluare (job #2186138)
Borderou de evaluare (job #2186138)
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 |
1 | 0ms | 4752kb | Incorect | 0 |
2 | 0ms | 4752kb | Incorect | 0 |
3 | 0ms | 4752kb | Incorect | 0 |
4 | 4ms | 6796kb | Incorect | 0 |
5 | 4ms | 6832kb | Incorect | 0 |
6 | 8ms | 6900kb | Incorect | 0 |
7 | 36ms | 7052kb | Incorect | 0 |
8 | 88ms | 7448kb | Incorect | 0 |
9 | 120ms | 7684kb | Incorect | 0 |
10 | 132ms | 7784kb | Incorect | 0 |
Punctaj total | 0 |