记录详情

Runtime Error

foo.c: In function 'main':
foo.c:9:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
    9 |         scanf("%d",a[i]);
      |                ~^  ~~~~
      |                 |   |
      |                 |   int
      |                 int *
foo.c:9:9: warning: '*a[<unknown>]' is used uninitialized [-Wuninitialized]
    9 |         scanf("%d",a[i]);
      |         ^~~~~~~~~~~~~~~~
foo.c:12:23: warning: '*a[<unknown>]' may be used uninitialized [-Wmaybe-uninitialized]
   12 |                 a[i]=a[n-i+1];
      |                      ~^~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 1ms 384.0 KiB
#2 Runtime Error Segmentation fault 1ms 384.0 KiB
#3 Runtime Error Segmentation fault 1ms 512.0 KiB
#4 Runtime Error Segmentation fault 1ms 512.0 KiB
#5 Runtime Error Segmentation fault 1ms 344.0 KiB

信息

递交者
类型
递交
题目
P1059 G7-2 数组部分元素逆序存放
语言
C
递交时间
2022-09-30 10:43:34
评测时间
2022-09-30 10:43:34
评测机
分数
0
总耗时
8ms
峰值内存
512.0 KiB