记录详情

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]
  scanf("%d",&n);
  ~~~~~^~~~~~~~~
foo.cc:22:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for(int i=1;i<=n;i++)scanf("%d",a+i);
                       ~~~~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 96ms 396.0 KiB
#2 Runtime Error Segmentation fault 1ms 384.0 KiB
#3 Wrong Answer Read {0}, expect {1}. ["50166521","419012005"] 77ms 424.0 KiB
#4 Runtime Error Segmentation fault 1ms 416.0 KiB
#5 Runtime Error Segmentation fault 1ms 384.0 KiB
#6 Runtime Error Segmentation fault 1ms 364.0 KiB
#7 Runtime Error Segmentation fault 1ms 384.0 KiB
#8 Runtime Error Segmentation fault 2ms 384.0 KiB
#9 Runtime Error Segmentation fault 2ms 384.0 KiB
#10 Runtime Error Segmentation fault 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1015 子序列
语言
C++
递交时间
2021-02-04 16:00:39
评测时间
2021-02-04 17:20:48
评测机
分数
10
总耗时
189ms
峰值内存
424.0 KiB