foo.c: In function 'solve':
foo.c:96:28: warning: 'sizeof' on array function parameter 'b' will return size of 'int *' [-Wsizeof-array-argument]
96 | memset(b, 0, sizeof(b));
| ^
foo.c:78:16: note: declared here
78 | void solve(int b[], int ans[], int res[], int k)
| ~~~~^~~
foo.c:96:28: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
96 | memset(b, 0, sizeof(b));
| ^
foo.c:99:30: warning: 'sizeof' on array function parameter 'ans' will return size of 'int *' [-Wsizeof-array-argument]
99 | memset(ans, 0, sizeof(ans));
| ^
foo.c:78:25: note: declared here
78 | void solve(int b[], int ans[], int res[], int k)
| ~~~~^~~~~
foo.c:99:30: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
99 | memset(ans, 0, sizeof(ans));
| ^
foo.c: In function 'getnum':
foo.c:62:1: warning: control reaches end of non-void function [-Wreturn-type]
62 | }
| ^
[Hydro](https://hydro.ac)提供评测服务