Wrong Answer

foo.cc: In function 'int main()':
foo.cc:10:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
  freopen("students.in","r",stdin);
  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:11:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
  freopen("students.out","w",stdout);
  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:12:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ~~~~~^~~~~~~~~
foo.cc:15:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d %d %d",&s[i].Student_numder,&s[i].Chinese_achievement,&s[i].Maths_achievement);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 0a1,5 > 10002 91 67 > 10004 9 1ms 384.0 KiB
#2 Wrong Answer 0a1,7 > 10002 91 67 > 10004 9 1ms 384.0 KiB
#3 Wrong Answer 0a1,9 > 10008 95 68 > 10002 9 1ms 384.0 KiB
#4 Wrong Answer 0a1,9 > 10008 95 68 > 10002 9 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P2423 学生成绩(students)
比赛
初二数组专练10.29
语言
C++
递交时间
2021-10-29 19:59:28
评测时间
2021-10-29 19:59:28
评测机
分数
0
总耗时
7ms
峰值内存
384.0 KiB