/in/foo.cc:6:12: error: flexible array member 'st::name' not at end of 'struct st'
char name[];
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:15:89: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[]' [-Wformat=]
scanf("%s %d %d %c %c %d\n",&q[i].name,&q[i].a,&q[i].b,q[i].s,q[i].w,&q[i].d);
^
/in/foo.cc:15:89: warning: format '%c' expects argument of type 'char*', but argument 5 has type 'int' [-Wformat=]
/in/foo.cc:15:89: warning: format '%c' expects argument of type 'char*', but argument 6 has type 'int' [-Wformat=]