记录详情

Runtime Error

foo.c: In function 'main':
foo.c:15:12: warning: passing argument 1 of 'Output' makes integer from pointer without a cast [-Wint-conversion]
   15 |     Output(a, n);
      |            ^
      |            |
      |            int *
foo.c:3:17: note: expected 'int' but argument is of type 'int *'
    3 | void Output(int n, int a[])
      |             ~~~~^
foo.c:15:15: warning: passing argument 2 of 'Output' makes pointer from integer without a cast [-Wint-conversion]
   15 |     Output(a, n);
      |               ^
      |               |
      |               int
foo.c:3:24: note: expected 'int *' but argument is of type 'int'
    3 | void Output(int n, int a[])
      |                    ~~~~^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 0a1 > 1 3 2 5 4 2ms 284.0 KiB
#2 Wrong Answer 0a1 > 1 3 2 5 4 1 3 2 5 4 2ms 388.0 KiB
#3 Runtime Error Segmentation fault 2ms 412.0 KiB
#4 Wrong Answer 0a1 > 1 3 2 5 4 7 6 8 1 3 2 5 2ms 200.0 KiB
#5 Runtime Error Segmentation fault 2ms 284.0 KiB

信息

递交者
类型
递交
题目
A7-1 数组的输出函数
语言
C
递交时间
2023-12-12 14:20:14
评测时间
2023-12-12 14:20:14
评测机
分数
0
总耗时
11ms
峰值内存
412.0 KiB