/in/foo.cc: In function 'int main()':
/in/foo.cc:11:48: 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 &d %d %c %c %d",name,&a,&b,&c,&d,&e);
^
/in/foo.cc:11:48: warning: format '%c' expects argument of type 'char*', but argument 4 has type 'int*' [-Wformat=]
/in/foo.cc:11:48: warning: format '%d' expects argument of type 'int*', but argument 6 has type 'char*' [-Wformat=]
/in/foo.cc:11:48: warning: too many arguments for format [-Wformat-extra-args]
/in/foo.cc:23:35: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::__cxx11::string* {aka std::__cxx11::basic_string<char>*}' [-Wformat=]
printf("%s\n%d\n%d\n",max,sum,tol);
^
/in/foo.cc:23:36: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%s\n%d\n%d\n",max,sum,tol);
^