记录详情

Runtime Error

foo.c: In function 'main':
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&w);
  ^~~~~~~~~~~~~~
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ^~~~~~~~~~~~~~
foo.c:10:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&a[i]);//a[i]里是价格
   ^~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 0ms 256.0 KiB
#2 Wrong Answer Read {0}, expect {1}. ["7","9"] 0ms 256.0 KiB
#3 Wrong Answer Read {0}, expect {1}. ["6","7"] 0ms 256.0 KiB
#4 Accepted 0ms 256.0 KiB
#5 Wrong Answer Read {0}, expect {1}. ["9","10"] 0ms 256.0 KiB
#6 Wrong Answer Read {0}, expect {1}. ["4070","4153"] 118ms 312.0 KiB
#7 Runtime Error Segmentation fault 2ms 344.0 KiB
#8 Runtime Error Segmentation fault 2ms 324.0 KiB
#9 Runtime Error Segmentation fault 2ms 408.0 KiB
#10 Runtime Error Segmentation fault 2ms 440.0 KiB

信息

递交者
类型
递交
题目
P1163 纪念品分组
语言
C
递交时间
2021-01-25 14:35:55
评测时间
2021-01-25 14:35:55
评测机
分数
20
总耗时
132ms
峰值内存
440.0 KiB