/ Vijos /

记录详情

Runtime Error

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

信息

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