Language: C

#include <stdio.h>
#include <stdlib.h>
????
typedef struct{
????????int k;
????????int l;
????????int r;
} Tree;
????
void insert(int, int);
void chu(int);
void sen(int);
void find(int,int);
Tree t[500001];
int get;
int main()
{
????????char s[8];
????????int m;
????????int num,find;
????????int i;
????
????????scanf("%d", &m);
????
????????int count=0;
????????for(i=0; i<m; i++){
????????????????scanf("%s", &s);
????????????????if(s[0]=='i'){ 
????????????????????scanf("%d", &num); 
????????????????????insert(count, num); 
????????????????????count++; 
????????????????}
		if(s[0]=='f'){
????????????????????scanf("%d",&find);
		  find(find,0);

????????????????}
????????????????if(s[0]=='p'){
????????????????????if(count>0) chu(0);
????????????????????????printf("\n");
????????????????????????if(count>0) sen(0);
????????????????????????printf("\n");
????????????????}
????????}
????????????
????????return 0;
????
}
????
void chu(int p){
????????if(t[p].l>=0) chu( t[p].l);
????????printf(" %d", t[p].k);
????????if(t[p].r>=0) chu( t[p].r);
}
????
void sen(int p){
????????printf(" %d", t[p].k);
????????if(t[p].l>=0) sen(t[p].l);
????????if(t[p].r>=0) sen(t[p].r);
}
????
void insert(int count, int z){
????????int x=0, y;
????????if(count<1) x=-1;
????
????????t[count].k = z;
????????t[count].l = -1;
????????t[count].r = -1;
????
????????while(x>=0){
????????????????y = x; 
????????????????if(z < t[x].k)x = t[x].l; 
????????????????else x = t[x].r; 
????????}
????
????????if(count<1){}
????????else if(z < t[y].k)t[y].l = count; 
????????else t[y].r = count; 
??????????
}

void find(int num,int c){
	if (c==-1){
		printf("no\n" );
	}
	else if (t[c].k==num){
		printf("yes\n");
	}
	else if (t[c].k > num && t[c].l != -1){
		find(num,t[c].l);
	}
	else {
		find(num,t[c].r);
	}
}

Compiler output:
main.c:3:1: error: expected identifier or '(' before '?' token
    3 | ????
      | ^
main.c:8:3: warning: data definition has no type or storage class
    8 | } Tree;
      |   ^~~~
main.c:8:3: error: type defaults to 'int' in declaration of 'Tree' [-Wimplicit-int]
main.c:9:1: error: expected identifier or '(' before '?' token
    9 | ????
      | ^
main.c:14:1: error: unknown type name 'Tree'
   14 | Tree t[500001];
      | ^~~~
main.c: In function 'main':
main.c:18:1: error: expected expression before '?' token
   18 | ????????char s[8];
      | ^
main.c:19:1: error: expected expression before '?' token
   19 | ????????int m;
      | ^
main.c:20:1: error: expected expression before '?' token
   20 | ????????int num,find;
      | ^
main.c:21:1: error: expected expression before '?' token
   21 | ????????int i;
      | ^
main.c:22:1: error: expected expression before '?' token
   22 | ????
      | ^
main.c:23:22: error: 'm' undeclared (first use in this function)
   23 | ????????scanf("%d", &m);
      |                      ^
main.c:23:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:1: error: expected expression before '?' token
   24 | ????
      | ^
main.c:26:1: error: expected expression before '?' token
   26 | ????????for(i=0; i<m; i++){
      | ^
main.c:47:1: error: expected expression before '?' token
   47 | ????
      | ^
main.c: At top level:
main.c:49:1: error: expected identifier or '(' before '?' token
   49 | ????
      | ^
main.c:55:1: error: expected identifier or '(' before '?' token
   55 | ????
      | ^
main.c:61:1: error: expected identifier or '(' before '?' token
   61 | ????
      | ^
main.c: In function 'find':
main.c:86:22: error: request for member 'k' in something not a structure or union
   86 |         else if (t[c].k==num){
      |                      ^
main.c:89:22: error: request for member 'k' in something not a structure or union
   89 |         else if (t[c].k > num && t[c].l != -1){
      |                      ^
main.c:89:38: error: request for member 'l' in something not a structure or union
   89 |         else if (t[c].k > num && t[c].l != -1){
      |                                      ^
main.c:90:30: error: request for member 'l' in something not a structure or union
   90 |                 find(num,t[c].l);
      |                              ^
main.c:93:30: error: request for member 'r' in something not a structure or union
   93 |                 find(num,t[c].r);
      |                              ^