/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:20:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   20 |  scanf("%d",&n);
      |  ~~~~~^~~~~~~~~
foo.cc:25:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   25 |   scanf("%s",stu[i].name);
      |   ~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:27:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   27 |   scanf("%d",&stu[i].finalScore);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:29:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   29 |   scanf("%d",&stu[i].classScore);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:31:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   31 |   scanf(" %c",&stu[i].work);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:33:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   33 |   scanf(" %c",&stu[i].west);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:35:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   35 |   scanf("%d",&stu[i].paper);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 376.0 KiB
#2 Runtime Error Aborted 2ms 384.0 KiB
#3 Runtime Error Segmentation fault 2ms 384.0 KiB
#4 Runtime Error Segmentation fault 2ms 384.0 KiB
#5 Runtime Error Segmentation fault 3ms 384.0 KiB
#6 Runtime Error Aborted 3ms 384.0 KiB
#7 Runtime Error Aborted 2ms 500.0 KiB
#8 Runtime Error Segmentation fault 2ms 384.0 KiB
#9 Runtime Error Aborted 3ms 500.0 KiB
#10 Runtime Error Segmentation fault 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2022-01-19 20:51:15
评测时间
2022-01-19 20:51:15
评测机
分数
0
总耗时
28ms
峰值内存
500.0 KiB