Pagini recente » Borderou de evaluare (job #2193076) | Borderou de evaluare (job #2541234) | Borderou de evaluare (job #3133217) | Borderou de evaluare (job #1359139) | Borderou de evaluare (job #2189339)
Borderou de evaluare (job #2189339)
Raport evaluator
Compilare:
user.cpp: In function ‘void hn_constr(long long int, int*)’:
user.cpp:12:24: warning: ‘sizeof’ on array function parameter ‘a’ will return size of ‘int*’ [-Wsizeof-array-argument]
memset(a,0,sizeof(a));
^
user.cpp:10:40: note: declared here
void hn_constr(long long n,int a[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(a,0,sizeof(a));
^
user.cpp: In function ‘int main()’:
user.cpp:52: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:53: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:59: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 | 4ms | 5852kb | OK | 10 |
2 | 4ms | 5856kb | OK | 10 |
3 | 0ms | 2704kb | OK | 10 |
4 | 4ms | 2700kb | OK | 10 |
5 | 12ms | 5852kb | OK | 10 |
6 | 32ms | 5852kb | OK | 10 |
7 | 88ms | 5856kb | OK | 10 |
8 | 216ms | 7900kb | OK | 10 |
9 | 288ms | 8076kb | OK | 10 |
10 | 320ms | 8464kb | OK | 10 |
Punctaj total | 100 |