Language: C

    return 0;
}
void insert(char str[]){
  long long key = 0;
  int h_1,h_2,i=0;
  key = getKey(str);
  h_1 = h1(key);
  h_2 = h2(key);
  if(find(str) == 0) strcpy(H[h_1],str);
  else {
    i++;
    h_1 = (h_1+ i * h_2) % M;
    strcpy(H[h_1],str);
  } 
}

int main(){
    int i, n, h;
    char str[L], com[9];
    for ( i = 0; i < M; i++ ) H[i][0] = '\0';
    
    scanf("%d", &n);
    
    for ( i = 0; i < n; i++ ){
	scanf("%s %s", com, str);
	
	if ( com[0] == 'i' ){
	    insert(str);
	}
	else {
	    if (find(str)==1){
		printf("yes\n");
	    } else {
		printf("no\n");
	    }
	}
    }

    return 0;
}

Compiler output:
main.c:1:5: error: expected identifier or '(' before 'return'
    1 |     return 0;
      |     ^~~~~~
main.c:2:1: error: expected identifier or '(' before '}' token
    2 | }
      | ^
main.c: In function 'insert':
main.c:6:9: error: implicit declaration of function 'getKey' [-Wimplicit-function-declaration]
    6 |   key = getKey(str);
      |         ^~~~~~
main.c:7:9: error: implicit declaration of function 'h1' [-Wimplicit-function-declaration]
    7 |   h_1 = h1(key);
      |         ^~
main.c:8:9: error: implicit declaration of function 'h2' [-Wimplicit-function-declaration]
    8 |   h_2 = h2(key);
      |         ^~
main.c:9:6: error: implicit declaration of function 'find' [-Wimplicit-function-declaration]
    9 |   if(find(str) == 0) strcpy(H[h_1],str);
      |      ^~~~
main.c:9:22: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
    9 |   if(find(str) == 0) strcpy(H[h_1],str);
      |                      ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strcpy'
  +++ |+#include <string.h>
    1 |     return 0;
main.c:9:22: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch]
    9 |   if(find(str) == 0) strcpy(H[h_1],str);
      |                      ^~~~~~
main.c:9:22: note: include '<string.h>' or provide a declaration of 'strcpy'
main.c:9:29: error: 'H' undeclared (first use in this function)
    9 |   if(find(str) == 0) strcpy(H[h_1],str);
      |                             ^
main.c:9:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:28: error: 'M' undeclared (first use in this function)
   12 |     h_1 = (h_1+ i * h_2) % M;
      |                            ^
main.c:13:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch]
   13 |     strcpy(H[h_1],str);
      |     ^~~~~~
main.c:13:5: note: include '<string.h>' or provide a declaration of 'strcpy'
main.c: In function 'main':
main.c:19:14: error: 'L' undeclared (first use in this function)
   19 |     char str[L], com[9];
      |              ^
main.c:20:22: error: 'M' undeclared (first use in this function)
   20 |     for ( i = 0; i < M; i++ ) H[i][0] = '\0';
      |                      ^
main.c:20:31: error: 'H' undeclared (first use in this function)
   20 |     for ( i = 0; i < M; i++ ) H[i][0] = '\0';
      |                               ^
main.c:22:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   22 |     scanf("%d", &n);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 |     return 0;
main.c:22:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   22 |     scanf("%d", &n);
      |     ^~~~~
main.c:22:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:32:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   32 |                 printf("yes\n");
      |                 ^~~~~~
main.c:32:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:32:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:32:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:34:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   34 |                 printf("no\n");
      |                 ^~~~~~
main.c:34:17: note: include '<stdio.h>' or provide a declaration of 'printf'