foo.cc: In function 'void calc_1(int*, int, int*)':
foo.cc:62:16: 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]
62 | memset(c,0,sizeof(c));
| ^~~~~~~~~
foo.cc: In function 'void calc_2(int*, int, int*)':
foo.cc:77:16: 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]
77 | memset(c,0,sizeof(c));
| ^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务