/in/foo.cc:4:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main()
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:13:59: warning: writing into constant object (argument 2) [-Wformat=]
scanf("%s%f%f%c%c%d",name[i].c_str(),&cj,&bp,&gb,&xb,&lw);
^
/in/foo.cc:13:59: warning: format '%f' expects argument of type 'float*', but argument 3 has type 'float (*)[(n + 2)]' [-Wformat=]
/in/foo.cc:13:59: warning: format '%f' expects argument of type 'float*', but argument 4 has type 'float (*)[(n + 2)]' [-Wformat=]
/in/foo.cc:13:59: warning: format '%c' expects argument of type 'char*', but argument 5 has type 'char (*)[(n + 2)]' [-Wformat=]
/in/foo.cc:13:59: warning: format '%c' expects argument of type 'char*', but argument 6 has type 'char (*)[(n + 2)]' [-Wformat=]
/in/foo.cc:13:59: warning: format '%d' expects argument of type 'int*', but argument 7 has type 'int (*)[(n + 2)]' [-Wformat=]