/in/foo.cc: In function 'void init(int*)':
/in/foo.cc:9:21: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[102]' [-Wformat=]
scanf("%d %s",&n,&s);
^
/in/foo.cc:10:21: warning: 'sizeof' on array function parameter 'a' will return size of 'int*' [-Wsizeof-array-argument]
memset(a,0,sizeof(a));
^
/in/foo.cc:7:17: note: declared here
void init(int a[]){
^
/in/foo.cc:10:19: 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]
memset(a,0,sizeof(a));
^
/in/foo.cc: In function 'void plus(int*)':
/in/foo.cc:25:6: warning: unused variable 'k' [-Wunused-variable]
int k;
^