Wrong Answer

foo.cc: In function 'int main()':
foo.cc:40:73: warning: ' ' flag used with '%c' gnu_printf format [-Wformat=]
       printf("%-8d %-8s% -8c %-8.0f\n",s[i].num,s[i].name,"F",s[i].score);
                                                                         ^
foo.cc:40:73: warning: format '%c' expects argument of type 'int', but argument 4 has type 'const char*' [-Wformat=]
foo.cc:44:70: warning: format '%c' expects argument of type 'int', but argument 4 has type 'const char*' [-Wformat=]
    printf("%-8d %-8s %-8c %-8.0f\n",s[i].num,s[i].name,"M",s[i].score);
                                                                      ^
foo.cc:20:11: 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)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 2ms 404.0 KiB

信息

递交者
类型
递交
题目
P1151 结构体-学生信息处理3
语言
C++
递交时间
2021-11-07 18:25:42
评测时间
2021-11-07 18:25:42
评测机
分数
0
总耗时
2ms
峰值内存
404.0 KiB