记录详情

Compile Error

/in/foo.c: In function 'cut':
/in/foo.c:15:6: error: 'haed' undeclared (first use in this function)
    *(haed+i)=0;
      ^~~~
/in/foo.c:15:6: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:18:19: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  for(int i=0;i<all,i++)
                   ^
/in/foo.c:18:23: error: expected ';' before ')' token
  for(int i=0;i<all,i++)
                       ^
/in/foo.c:20:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   while(tree[i]=1)
   ^~~~~
/in/foo.c:8:10: warning: unused variable 'head' [-Wunused-variable]
     int* head=&tree[0];
          ^~~~

信息

递交者
类型
自测
题目
P1007 校门外的树
语言
C
递交时间
2023-08-20 22:00:40
评测时间
2023-08-20 22:00:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes