Borderou de evaluare (job #3124982)
Raport evaluator
Compilare:
main.cpp: In function 'void B(int*, long long int)':
main.cpp:22:27: warning: 'sizeof' on array function parameter 'x' will return size of 'int*' [-Wsizeof-array-argument]
22 | for(memset(x,0,sizeof x);a;x[++x[0]]=a%10,a/=10);
| ^
main.cpp:20:12: note: declared here
20 | void B(int x[],L a)
| ~~~~^~~
main.cpp:22:20: 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]
22 | for(memset(x,0,sizeof x);a;x[++x[0]]=a%10,a/=10);
| ^~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 303kb | OK | 10 | 0 |
2 | 0ms | 303kb | OK | 10 |
3 | 0ms | 303kb | OK | 10 |
4 | 0ms | 303kb | Incorect | 0 |
5 | 0ms | 303kb | Incorect | 0 |
6 | 0ms | 303kb | Incorect | 0 |
7 | 0ms | 303kb | Incorect | 0 |
8 | 0ms | 303kb | Incorect | 0 |
9 | 0ms | 303kb | Incorect | 0 |
10 | 0ms | 303kb | Incorect | 0 |
Punctaj total | 0 |