Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1149 结构体-学生信息处理1
语言
C++
递交时间
2022-03-31 16:00:26
评测时间
2022-03-31 16:01:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes