记录详情

Runtime Error

foo.c: In function 'main':
foo.c:6:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    6 |  for(i=0;i<=20;i++)
      |  ^~~
foo.c:8:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    8 |          printf("%d",zhuan(x[i]));
      |          ^~~~~~
foo.c:8:29: warning: passing argument 1 of 'zhuan' makes pointer from integer without a cast [-Wint-conversion]
    8 |          printf("%d",zhuan(x[i]));
      |                            ~^~~
      |                             |
      |                             int
foo.c:2:16: note: expected 'int *' but argument is of type 'int'
    2 | int  zhuan(int a[]);
      |            ~~~~^~~
foo.c:8:29: warning: array subscript 21 is above array bounds of 'int[20]' [-Warray-bounds]
    8 |          printf("%d",zhuan(x[i]));
      |                            ~^~~
foo.c:5:6: note: while referencing 'x'
    5 | {int x[20],i;
      |      ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 512.0 KiB
#2 Runtime Error Segmentation fault 3ms 256.0 KiB
#3 Runtime Error Segmentation fault 2ms 384.0 KiB
#4 Runtime Error Segmentation fault 1ms 384.0 KiB
#5 Runtime Error Segmentation fault 3ms 256.0 KiB

信息

递交者
类型
递交
题目
P1081 xf1-4进制转换2
比赛
2022年迎新赛(第二场)
语言
C
递交时间
2022-08-27 17:48:10
评测时间
2022-08-27 17:48:10
评测机
分数
0
总耗时
12ms
峰值内存
512.0 KiB