Language: C

#include <stdio.h>
#include <stdlib.h>
int fact1(int aa,int bb,int cc,int dd,int ee,int kk,int ff,int gg,int hh){
  int jj,gg,hh;
  for(int i=0;i<5;i++){
    if(i=0){
      hh=aa;
      if(|hh-gg|>kk){
        ff=ff+1;
      }
    }
    else if(i=1){
      hh=bb;
      if(i=0){
      hh=aa;
      if(|hh-gg|>kk){
        ff=ff+1;
      }
    }
    else if(i=2){
      hh=cc;
      if(i=0){
      hh=aa;
      if(|hh-gg|>kk){
        ff=ff+1;
      }
    }
    else if(i=3){
      hh=dd;if(i=0){
      hh=aa;
      if(|hh-gg|>kk){
        ff=ff+1;
      }
      
    }
    else if(i=4){
      hh=ee;
      if(i=0){
      hh=aa;
      if(|hh-gg|>kk){
        ff=ff+1;
      }
    }
  }
return ff;
}
int fact2(int aa,int bb,int cc,int dd,int ee,int kk){
  int ff,gg,hh;
  for(int i=0;i<5;i++){
    if(i=0){
      gg=aa;
      if(fact1(aa,bb,cc,dd,ee,,ff,gg,hh)!=0)
        ff=ff+1;
    }
    else if(i=1){
      gg=bb;
       if(fact1(aa,bb,cc,dd,ee,,ff,gg,hh)!=0)
        ff=ff+1;
    }
    else if(i=2){
      gg=cc;
       if(fact1(aa,bb,cc,dd,ee,,ff,gg,hh)!=0)
        ff=ff+1;
    }
    else if(i=3){
      gg=dd;
       if(fact1(aa,bb,cc,dd,ee,,ff,gg,hh)!=0)
        ff=ff+1;
    }
    else if(i=4){
      gg=ee;
       if(fact1(aa,bb,cc,dd,ee,,ff,gg,hh)!=0)
        ff=ff+1;
    }
  }
return ff;
}
int main(void){
  int a,b,c,d,e,k,f;
  scanf("%d%d%d%d%d",&a,&b,&c,&d,&e,&k);
    f=fact();
    if(f=o){
      printf("yay!");
    }
    else{
      printf(":(");
    }
    return 0;
  }
  
  
  

Compiler output:
main.c: In function 'fact1':
main.c:4:10: error: 'gg' redeclared as different kind of symbol
    4 |   int jj,gg,hh;
      |          ^~
main.c:3:64: note: previous definition of 'gg' with type 'int'
    3 | int fact1(int aa,int bb,int cc,int dd,int ee,int kk,int ff,int gg,int hh){
      |                                                            ~~~~^~
main.c:4:13: error: 'hh' redeclared as different kind of symbol
    4 |   int jj,gg,hh;
      |             ^~
main.c:3:71: note: previous definition of 'hh' with type 'int'
    3 | int fact1(int aa,int bb,int cc,int dd,int ee,int kk,int ff,int gg,int hh){
      |                                                                   ~~~~^~
main.c:8:10: error: expected expression before '|' token
    8 |       if(|hh-gg|>kk){
      |          ^
main.c:16:10: error: expected expression before '|' token
   16 |       if(|hh-gg|>kk){
      |          ^
main.c:24:10: error: expected expression before '|' token
   24 |       if(|hh-gg|>kk){
      |          ^
main.c:31:10: error: expected expression before '|' token
   31 |       if(|hh-gg|>kk){
      |          ^
main.c:40:10: error: expected expression before '|' token
   40 |       if(|hh-gg|>kk){
      |          ^
main.c: In function 'fact2':
main.c:52:31: error: expected expression before ',' token
   52 |       if(fact1(aa,bb,cc,dd,ee,,ff,gg,hh)!=0)
      |                               ^
main.c:57:32: error: expected expression before ',' token
   57 |        if(fact1(aa,bb,cc,dd,ee,,ff,gg,hh)!=0)
      |                                ^
main.c:62:32: error: expected expression before ',' token
   62 |        if(fact1(aa,bb,cc,dd,ee,,ff,gg,hh)!=0)
      |                                ^
main.c:67:32: error: expected expression before ',' token
   67 |        if(fact1(aa,bb,cc,dd,ee,,ff,gg,hh)!=0)
      |                                ^
main.c:72:32: error: expected expression before ',' token
   72 |        if(fact1(aa,bb,cc,dd,ee,,ff,gg,hh)!=0)
      |                                ^
main.c: In function 'main':
main.c:81:7: error: implicit declaration of function 'fact'; did you mean 'fact2'? [-Wimplicit-function-declaration]
   81 |     f=fact();
      |       ^~~~
      |       fact2
main.c:82:10: error: 'o' undeclared (first use in this function)
   82 |     if(f=o){
      |          ^
main.c:82:10: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'fact1':
main.c:89:3: error: expected declaration or statement at end of input
   89 |   }
      |   ^
main.c:89:3: error: expected declaration or statement at end of input
main.c:89:3: error: expected declaration or statement at end of input
main.c:89:3: error: expected declaration or statement at end of input