Wrong Answer

foo.cc: In function 'int main()':
foo.cc:18:63: warning: format '%c' expects argument of type 'char*', but argument 4 has type 'int*' [-Wformat=]
 scanf("%d %s %c %f",&s[i].sno,s[i].sname,&s[i].sex,&s[i].score);
                                          ~~~~~~~~~            ^
foo.cc:18:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d %s %c %f",&s[i].sno,s[i].sname,&s[i].sex,&s[i].score);
 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1002 Jack 1 99.00, expect 99. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1149 结构体-学生信息处理1
语言
C++
递交时间
2021-10-31 16:47:10
评测时间
2021-10-31 16:47:10
评测机
分数
0
总耗时
2ms
峰值内存
384.0 KiB