Compile Error

foo.cc:12:2: error: expected ';' after struct definition
 }
  ^
  ;
foo.cc: In function 'int main()':
foo.cc:37:58: warning: format '%c' expects argument of type 'int', but argument 4 has type 'double' [-Wformat=]
 printf("%-8d%-8s%-8c%-8f\n",s[i].num,s[i].name,s[i].score);
                                                ~~~~~~~~~~^
foo.cc:37:58: warning: format '%f' expects a matching 'double' argument [-Wformat=]
foo.cc:22:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d%s%d%f",&s[i].num,s[i].name,&s[i].sex,&s[i].score);
 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1102 A、B之间超级素数的数量及总和
语言
C++
递交时间
2021-11-13 16:20:35
评测时间
2021-11-13 16:20:35
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes