/in/foo.cc:12:16: error: 'int std [20001]' redeclared as different kind of symbol
};int std[20001];
^
<built-in>: note: previous declaration 'namespace std { }'
/in/foo.cc: In function 'int main()':
/in/foo.cc:29:20: error: expected primary-expression before '[' token
scanf("%s/n",&std[i].xh);
^
/in/foo.cc:31:13: error: expected primary-expression before '[' token
cin>>std[i].cj[j];
^
/in/foo.cc:37:7: error: expected primary-expression before '[' token
std[i].sum+=std[i].cj[j];
^
/in/foo.cc:37:19: error: expected primary-expression before '[' token
std[i].sum+=std[i].cj[j];
^
/in/foo.cc:40:10: error: expected primary-expression before '+' token
sort(std+1,std+1+n,comp);
^
/in/foo.cc:40:16: error: expected primary-expression before '+' token
sort(std+1,std+1+n,comp);
^
/in/foo.cc:43:18: error: expected primary-expression before '[' token
printf("%s",std[i].xh);
^
/in/foo.cc:46:17: error: expected primary-expression before '[' token
cout<<" "<<std[i].cj[j]<<" ";
^
/in/foo.cc:48:18: error: expected primary-expression before '[' token
cout<<std[i].sum<<endl;
^
/in/foo.cc: In function 'bool comp(st, st)':
/in/foo.cc:23:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^