记录详情

Runtime Error

foo.c: In function 'main':
foo.c:24:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
   24 |         scanf("%d%d",i,e);
      |                ~^    ~
      |                 |    |
      |                 |    int
      |                 int *
foo.c:24:19: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
   24 |         scanf("%d%d",i,e);
      |                  ~^    ~
      |                   |    |
      |                   |    int
      |                   int *
foo.c:34:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   34 |           if(tree[d]=1)
      |              ^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 1ms 384.0 KiB

信息

递交者
类型
自测
题目
P1017 校门外的树
语言
C
递交时间
2022-08-17 16:06:01
评测时间
2022-08-17 16:06:01
评测机
分数
0
总耗时
1ms
峰值内存
384.0 KiB