/in/foo.cc: In function 'int main()':
/in/foo.cc:36:38: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[7]' [-Wformat=]
scanf(" %c %s %s",&c1,&c_2,&c_3);
^
/in/foo.cc:36:38: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'char (*)[7]' [-Wformat=]
/in/foo.cc:58:7: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
else c2='n';
^~~~
/in/foo.cc:59:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
for(k=1;k<=xnum;k++)
^~~
/in/foo.cc:73:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(c3!='n' && c2<c3 || c2=='n' && !flag)
~~~~~~~~^~~~~~~~
/in/foo.cc:13:15: warning: unused variable 'cs' [-Wunused-variable]
int h,j,c=0,cs=0,k,proc=0,w=0;
^~