Pagini recente » Borderou de evaluare (job #1991019) | Borderou de evaluare (job #2116500) | Borderou de evaluare (job #2770028)
Borderou de evaluare (job #2770028)
Raport evaluator
Compilare:
main.cpp: In function 'void hn_constr(long long int, int*)':
main.cpp:94:24: warning: 'sizeof' on array function parameter 'a' will return size of 'int*' [-Wsizeof-array-argument]
memset(a,0,sizeof(a));
^
main.cpp:92:40: note: declared here
void hn_constr(long long n,int a[NMAX+5])
^
main.cpp:94: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));
^
main.cpp: In function 'int main()':
main.cpp:134: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);
^
main.cpp:135: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);
^
main.cpp:141: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 | 9ms | 4063kb | OK | 10 |
2 | 9ms | 4063kb | OK | 10 |
3 | 2ms | 131kb | OK | 10 |
4 | 7ms | 131kb | OK | 10 |
5 | 24ms | 4325kb | OK | 10 |
6 | 54ms | 4587kb | OK | 10 |
7 | 123ms | 5373kb | OK | 10 |
8 | 273ms | 7602kb | OK | 10 |
9 | 365ms | 8650kb | OK | 10 |
10 | 400ms | 9175kb | OK | 10 |
Punctaj total | 100 |