Wrong Answer

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

信息

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