Runtime Error

foo.cc: In function 'int main(int, const char**)':
foo.cc:7:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ~~~~~^~~~~~~~~
foo.cc:9:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&a[i]);
   ~~~~~^~~~~~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 404.0 KiB
#2 Accepted 2ms 400.0 KiB
#3 Accepted 2ms 488.0 KiB
#4 Accepted 8ms 512.0 KiB
#5 Accepted 21ms 960.0 KiB
#6 Accepted 26ms 1.379 MiB
#7 Accepted 21ms 1.137 MiB
#8 Accepted 47ms 2.422 MiB
#9 Accepted 46ms 2.543 MiB
#10 Runtime Error Segmentation fault 23ms 2.898 MiB

信息

递交者
类型
递交
题目
P1015 统计数字
语言
C++
递交时间
2021-09-22 11:34:34
评测时间
2021-10-07 20:23:29
评测机
分数
90
总耗时
199ms
峰值内存
2.898 MiB