记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:15: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:16: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:17:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ~~~~~^~~~~~~~~
foo.cc:19:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&s[i].Student_number);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:21:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&s[i].Chinese_achievement);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:22:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&s[i].Maths_achievement);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:23:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&s[i].English_achievement);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:24:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&s[i].Physics_achievement);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:25:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&s[i].Chemistry_achievement);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 0a1,19 > 12 > 10017 stu17 97 7ms 6.531 MiB
#2 Wrong Answer 0a1,21 > 34 > 10027 stu27 79 7ms 6.5 MiB
#3 Wrong Answer 0a1,21 > 66 > 10045 stu45 97 7ms 6.504 MiB
#4 Wrong Answer 0a1,21 > 343 > 10160 stu160 9 7ms 6.492 MiB
#5 Wrong Answer 0a1,21 > 661 > 10873 stu873 9 7ms 6.512 MiB

信息

递交者
类型
递交
题目
P1015 学生信息记录
语言
C++
递交时间
2021-10-10 18:36:24
评测时间
2021-10-10 18:36:24
评测机
分数
0
总耗时
36ms
峰值内存
6.531 MiB