foo.cc: In function 'void init(int*)':
foo.cc:8:27: warning: 'sizeof' on array function parameter 'a' will return size of 'int*' [-Wsizeof-array-argument]
8 | memset(a,0,sizeof(a));
| ~^~
foo.cc:5:15: note: declared here
5 | void init(int a[]) {
| ~~~~^~~
foo.cc:8: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]
8 | memset(a,0,sizeof(a));
| ^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务