记录详情

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
#2 Runtime Error Segmentation fault 2ms 256.0 KiB
#3 Runtime Error Segmentation fault 1ms 256.0 KiB
#4 Runtime Error Segmentation fault 1ms 384.0 KiB

信息

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