记录详情

Runtime Error

foo.c: In function 'main':
foo.c:8:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
    8 |  scanf("%d",a[i]);
      |         ~^  ~~~~
      |          |   |
      |          |   int
      |          int *
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    8 |  scanf("%d",a[i]);
      |  ^~~~~~~~~~~~~~~~
foo.c:8:2: warning: 'a[0]' is used uninitialized in this function [-Wuninitialized]
    8 |  scanf("%d",a[i]);
      |  ^~~~~~~~~~~~~~~~
foo.c:8:2: warning: 'a[1]' is used uninitialized in this function [-Wuninitialized]
foo.c:8:2: warning: 'a[2]' is used uninitialized in this function [-Wuninitialized]
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 256.0 KiB

信息

递交者
类型
自测
题目
P2649 1.1.2输出第二个整数
语言
C
递交时间
2022-01-12 16:07:33
评测时间
2022-01-12 16:07:33
评测机
分数
0
总耗时
2ms
峰值内存
256.0 KiB