/in/foo.cc: In function 'int main()':
/in/foo.cc:10:39: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
for(i=1;i<=n;i++) scanf("%s",&name[i]);
^
/in/foo.cc:14:21: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
scanf("%s",&np[i]);
^
/in/foo.cc:20:18: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
scanf("%s",&o);
^
/in/foo.cc:24:57: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
for(i=1;i<=n;i++) printf("%s %d\n",name[i],a[name[i]].g);
^
/in/foo.cc:6:12: warning: unused variable 'k' [-Wunused-variable]
int n,i,j,k,sum,l,q;
^