/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];
^~~~