Pagini recente » Borderou de evaluare (job #1432502) | Borderou de evaluare (job #432286) | Borderou de evaluare (job #2897254) | Borderou de evaluare (job #2857918) | Borderou de evaluare (job #2189327)
Borderou de evaluare (job #2189327)
Raport evaluator
Compilare:
user.cpp: In function ‘void hn_adun(int*, int*, int*)’:
user.cpp:12:24: warning: ‘sizeof’ on array function parameter ‘c’ will return size of ‘int*’ [-Wsizeof-array-argument]
memset(c,0,sizeof(c));
^
user.cpp:9:43: note: declared here
void hn_adun(int a[],int b[], int c[NMAX+5])
^
user.cpp:12:22: 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 ‘void hn_constr(int, int*)’:
user.cpp:26:24: warning: ‘sizeof’ on array function parameter ‘x’ will return size of ‘int*’ [-Wsizeof-array-argument]
memset(x,0,sizeof(x));
^
user.cpp:24:34: note: declared here
void hn_constr(int n,int x[NMAX+5])
^
user.cpp:26:22: 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(x,0,sizeof(x));
^
user.cpp: In function ‘int main()’:
user.cpp:60:9: warning: unused variable ‘i’ [-Wunused-variable]
int i=1;
^
user.cpp:57:33: 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:58:35: 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:65:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&d);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 4752kb | OK | 10 |
2 | 0ms | 4752kb | OK | 10 |
3 | 0ms | 2700kb | OK | 10 |
4 | 4ms | 2704kb | OK | 10 |
5 | 12ms | 4880kb | OK | 10 |
6 | 32ms | 5144kb | OK | 10 |
7 | 84ms | 5776kb | Incorect | 0 |
8 | 212ms | 9956kb | Incorect | 0 |
9 | 304ms | 9952kb | Incorect | 0 |
10 | 324ms | 10136kb | Incorect | 0 |
Punctaj total | 60 |