foo.cc: In function 'int iset(int*, int, int*, int, int*)':
foo.cc:16:13: warning: unused variable 'i' [-Wunused-variable]
16 | int i=0,k=0;
| ^
foo.cc: In function 'int cp(int*, int, int*)':
foo.cc:26:1: warning: no return statement in function returning non-void [-Wreturn-type]
26 | }
| ^
foo.cc: In function 'int main()':
foo.cc:43:15: warning: 'memset' used with constant zero length parameter; this could be due to transposed parameters [-Wmemset-transposed-args]
43 | memset(h,sizeof(h),0);
| ~~~~~~^~~~~~~~~~~~~~~