/in/foo.cc: In function 'int main()':
/in/foo.cc:24:22: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=]
scanf("%s\n",name[y]);
^
/in/foo.cc:25:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
scanf("%d\n",sum[y]);
^
/in/foo.cc:26:19: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
scanf("%d",sumall);
^
/in/foo.cc:9:12: warning: 'n' is used uninitialized in this function [-Wuninitialized]
for (i=1;i<=n;i++)
~^~~