Wrong Answer

foo.cc: In function 'int main()':
foo.cc:34:79: warning: format '%c' expects argument of type 'int', but argument 3 has type 'char*' [-Wformat=]
   printf("%-8d%-8c%-8d%-8f",s1[i].num,s1[i].name,s1[i].sex?'M':'F',s1[i].score);
                                                                               ^
foo.cc:18:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%s%d%f",&s1[i].num,s1[i].name,&s1[i].sex,&s1[i].score);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 1ms 412.0 KiB

信息

递交者
类型
递交
题目
P1151 结构体-学生信息处理3
语言
C++
递交时间
2021-11-20 17:43:27
评测时间
2021-11-20 17:43:27
评测机
分数
0
总耗时
1ms
峰值内存
412.0 KiB