Language: C

#include<stdio.h>
#include<string.h>

struct node{
  int me;
  struct node *parent;
  struct node *left;
  struct node *right;
};

struct not *Tree,*END;
int number;


void imput(void){
  char str[50];
  int n;
  int i;
  char str1[50]="insert";
  char str2[50]="print";
  scanf("%d",&number);
  for(i=0;i<number;i++){
    scanf("%s",str);
    if(strcmp(str,str1)==1){
      scanf("%d",&n);
      insert(n);
    }


    else if(strcmp(str,str2)==1){
	Inorder(Tree);
	printf("\n");
	Preorder(Tree);
	printf("\n");
      }
  }

}


  void insert(int n){

    struct node *a=Tree;
    struct node *b=END;
    struct node *c;


    c->me=c;
    c->left=END;
    c->right=END;

    while(b!=END){

      b=a;
      if(c->me <a->me){
	a=a->left;
	

      }else
	{a=a->right;
      }

      c->parent=b;
      if(b==END){
	Tree=c;
      }else {
	if(c->me < b->me){
	  b->left=c;
	}else{
	  b->right=c;
	}
      }
    }
  }


  void Inorder(struct node *a){
    if(a==END)return;
    Inorder(a->left);
    printf("%d ",a->me);
    Inorder(a->right);
    
  }


  void Preorder(struct node *a){
    if(a==END)return;
    printf("%d",a->me);
    Preorder(a->left);
    Preorder(a->right);
  }

  int main(void){
    input();

    return 0;
  }



Compiler output:
main.c: In function 'imput':
main.c:26:7: error: implicit declaration of function 'insert' [-Wimplicit-function-declaration]
   26 |       insert(n);
      |       ^~~~~~
main.c:31:9: error: implicit declaration of function 'Inorder' [-Wimplicit-function-declaration]
   31 |         Inorder(Tree);
      |         ^~~~~~~
main.c:33:9: error: implicit declaration of function 'Preorder' [-Wimplicit-function-declaration]
   33 |         Preorder(Tree);
      |         ^~~~~~~~
main.c: At top level:
main.c:41:8: warning: conflicting types for 'insert'; have 'void(int)'
   41 |   void insert(int n){
      |        ^~~~~~
main.c:26:7: note: previous implicit declaration of 'insert' with type 'void(int)'
   26 |       insert(n);
      |       ^~~~~~
main.c: In function 'insert':
main.c:43:20: error: initialization of 'struct node *' from incompatible pointer type 'struct not *' [-Wincompatible-pointer-types]
   43 |     struct node *a=Tree;
      |                    ^~~~
main.c:44:20: error: initialization of 'struct node *' from incompatible pointer type 'struct not *' [-Wincompatible-pointer-types]
   44 |     struct node *b=END;
      |                    ^~~
main.c:48:10: error: assignment to 'int' from 'struct node *' makes integer from pointer without a cast [-Wint-conversion]
   48 |     c->me=c;
      |          ^
main.c:49:12: error: assignment to 'struct node *' from incompatible pointer type 'struct not *' [-Wincompatible-pointer-types]
   49 |     c->left=END;
      |            ^
main.c:50:13: error: assignment to 'struct node *' from incompatible pointer type 'struct not *' [-Wincompatible-pointer-types]
   50 |     c->right=END;
      |             ^
main.c:52:12: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
   52 |     while(b!=END){
      |            ^~
main.c:64:11: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
   64 |       if(b==END){
      |           ^~
main.c:65:13: error: assignment to 'struct not *' from incompatible pointer type 'struct node *' [-Wincompatible-pointer-types]
   65 |         Tree=c;
      |             ^
main.c: At top level:
main.c:77:8: warning: conflicting types for 'Inorder'; have 'void(struct node *)'
   77 |   void Inorder(struct node *a){
      |        ^~~~~~~
main.c:31:9: note: previous implicit declaration of 'Inorder' with type 'void(struct node *)'
   31 |         Inorder(Tree);
      |         ^~~~~~~
main.c: In function 'Inorder':
main.c:78:9: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
   78 |     if(a==END)return;
      |         ^~
main.c: At top level:
main.c:86:8: warning: conflicting types for 'Preorder'; have 'void(struct node *)'
   86 |   void Preorder(struct node *a){
      |        ^~~~~~~~
main.c:33:9: note: previous implicit declaration of 'Preorder' with type 'void(struct node *)'
   33 |         Preorder(Tree);
      |         ^~~~~~~~
main.c: In function 'Preorder':
main.c:87:9: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
   87 |     if(a==END)return;
      |         ^~
main.c: In function 'main':
main.c:94:5: error: implicit declaration of function 'input'; did you mean 'imput'? [-Wimplicit-function-declaration]
   94 |     input();
      |     ^~~~~
      |     imput