/in/foo.cc: In function 'int main()':
/in/foo.cc:16:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
for(; scanf("%d",a[i].hao)!=EOF; i++) {
^
/in/foo.cc:19:16: error: expected ')' before ';' token
sort(a+1,a+1+i;cmpn);
^
/in/foo.cc:19:21: error: expected ';' before ')' token
sort(a+1,a+1+i;cmpn);
^
/in/foo.cc:19:22: warning: statement is a reference, not call, to function 'cmpn' [-Waddress]
sort(a+1,a+1+i;cmpn);
^
/in/foo.cc:19:22: warning: statement has no effect [-Wunused-value]