foo.cc: In function 'int main()':
foo.cc:18:19: error: 'N' was not declared in this scope
18 | struct student s[N];
| ^
foo.cc:21:26: error: 's' was not declared in this scope
21 | { scanf("%d %s %d %f",&s[i].num,s[i].name,&s[i].sex,&s[i].score);
| ^
foo.cc:26:8: error: 's' was not declared in this scope
26 | if(s[i].sex==0 && s[i].score>s[sex0].score )
| ^
foo.cc:30:9: error: 's' was not declared in this scope
30 | if(s[i].sex==1 && s[i].score>s[sex1].score )
| ^
foo.cc:36:16: error: 's' was not declared in this scope
36 | printf("%.1f",s[sex1].score);
| ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务