criyle/codenet-compile-errors huggingface dataset:
Language: C

int main(){
int i,j,x,a[10],b[10];
for (i=1;i<=10;i++) {
scanf("%d\n",&a[i]);
}
x=1;
for (j=i;j<=10;j++){
for (i=1;i<=10;i++){
if (a[i]==x) {b[j]=a[i];}
} x++;
}
for (i=8;i<=10;i++) {
printf("%d\n",b[i]);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 | scanf("%d\n",&a[i]);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:4:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%d\n",&a[i]);
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 | printf("%d\n",b[i]);
      | ^~~~~~
main.c:13:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C

#include <stdio.h>

int main(){
int i,j,x,a[10],b[10];
for (i=1;i<=10;i++) {
scanf("%d\n",&a[i]);
}
x=1;
for (j=i;j<=10;j++){
for (i=1;i<=10;i++){
if (a[i]==x) {b[j]=a[i];}
} x++;
}
for (i=8;i<=10;i++) {
printf("%d\n",b[i]);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include<stdio.h>
int main(){
	int a,i,j;
	int a[10];
	for(i=0;i<10;i++){
		scanf("%d",&a[i]);
	}
	for(i=0;i<9;i++){
			for(j=0;j<9-i;j++){
				if(a[j]<a[j+1]){
					int temp =a[j];
					a[j]=a[j+1];
					a[j+1]=temp;
				}
			}
	}
					for(i=0;i<3;i++){
						printf("%d\n",a[i]);
					}
						return 0;

Compiler output:
main.c: In function 'main':
main.c:4:13: error: conflicting types for 'a'; have 'int[10]'
    4 |         int a[10];
      |             ^
main.c:3:13: note: previous declaration of 'a' with type 'int'
    3 |         int a,i,j;
      |             ^
main.c:20:49: error: expected declaration or statement at end of input
   20 |                                                 return 0;
      |                                                 ^~~~~~
Language: C

include <stdio.h>

int main(void)
{
  int a[10],i,N1,N2,N3;

  N1=0;
  N2=0;
  N3=0;
  for(i = 0;i < 9; i++){
    scanf("%d\n", &a[i]);
    if(a[i] > N1){
      N3=N2;
      N2=N1;
      N1=a[i];
    }
    else if(a[i] > N2){
      N3=N2;
      N2=a[i];
    }
    else if(a[i] > N3){
      N3=a[i];
    }
  }
  printf("%d\n%d\n%d\n", N1,N2,N3);
  return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include <stdio.h>
int main(){
    int a[10],i,max[3],tmp;
    for(i=0;i<10;i++){
        scanf("%d",&a[i]);
        if(x>=0 && x<=10000){
            i--;
        }
    }
    max[0]=a[0];
    max[1]=a[1];
    max[2]=a[2];
    for(i=3;i<10;i++){
        if(max[2]<a[i]){
            tmp=a[i];
            a[i]=max[2];
            max[2]=tmp;
            if(max[1]<max[2]){
                tmp=max[2];
                max[2]=max[1];
                max[1]=tmp;
                if(max[0]<max[1]){
                    tmp=max[0];
                    max[0]=max[1];
                    max[1]=tmp;
                }
            }
        }
    }
    printf("%d\n%d\n%d\n",max[0],max[1],max[2]);
}

Compiler output:
main.c: In function 'main':
main.c:6:12: error: 'x' undeclared (first use in this function)
    6 |         if(x>=0 && x<=10000){
      |            ^
main.c:6:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

int main(){
    int a[10],i,max[3],tmp;
    for(i=0;i<10;i++){
        scanf("%d",&a[i]);
        if(x<=0 && x>=10000){
            i--;
        }
    }
    max[0]=a[0];
    max[1]=a[1];
    max[2]=a[2];
    for(i=3;i<10;i++){
        if(max[2]<a[i]){
            tmp=a[i];
            a[i]=max[2];
            max[2]=tmp;
            if(max[1]<max[2]){
                tmp=max[2];
                max[2]=max[1];
                max[1]=tmp;
                if(max[0]<max[1]){
                    tmp=max[0];
                    max[0]=max[1];
                    max[1]=tmp;
                }
            }
        }
    }
    printf("%d\n%d\n%d\n",max[0],max[1],max[2]);
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |         scanf("%d",&a[i]);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:4:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |         scanf("%d",&a[i]);
      |         ^~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:12: error: 'x' undeclared (first use in this function)
    5 |         if(x<=0 && x>=10000){
      |            ^
main.c:5:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:29:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   29 |     printf("%d\n%d\n%d\n",max[0],max[1],max[2]);
      |     ^~~~~~
main.c:29:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:29:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:29:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
#define NUMBER 10

int main(void){
        int i,j,temp,num[NUMBER],count=0;

        for(i = 0;i < NUMBER;i++){
                scanf("%d",&num[i]);
        }
        for(i = 0;i < NUMBER;i++){
                for(j = 0;j < (NUMBER-1)-i;j++){
                        if(num[j] > num[j+1]){
                                temp = num[j];
                                num[j] = num[j+1];
                                num[j+1] = temp;
                        }
                }
        }

        for(i = 0;i < NUMBER/2;i++){
                temp = num[i];
                num[i] = num[(NUMBER-1)-i];
                num[N(UMBER-1)-i] = temp;
        }

        for(j = 0;j < 3;j++){
                printf("%d\n",num[j]);
        }

        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:21: error: implicit declaration of function 'N' [-Wimplicit-function-declaration]
   23 |                 num[N(UMBER-1)-i] = temp;
      |                     ^
main.c:23:23: error: 'UMBER' undeclared (first use in this function); did you mean 'NUMBER'?
   23 |                 num[N(UMBER-1)-i] = temp;
      |                       ^~~~~
      |                       NUMBER
main.c:23:23: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int comp( const void *c1, const void *c2 );
int main(void){
	int a[10],i;
for(i=0;i<10;i++){
	scanf("%d",&a[i]);
}
qsort( a, 10, sizeof(int),comp);

printf("%d\n%d\n%d\n",a[9],a[8],a[7]);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:1: error: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
    8 | qsort( a, 10, sizeof(int),comp);
      | ^~~~~
Language: C

#include<stdio.h>

int main(){
int h1 = 0,h2 = 0, h3 = 0,s,input;

     for(s = 0; s < 10; s++){
      if(h1 < input){
         h3 = h2;
         h2 = h1;
         h1 = input;
      } else { 
      if(h2 < input){
         h3 = h2;
         h2 = input;
      } else { 
      if(h3 < input){
         h3 = input;
        }
       }
      }
     printf("%d\n%d\n%d\n",h1,h2,h3);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
Language: C

#include<stdio.h>

int main(){
int h1 = 0,h2 = 0, h3 = 0,s,input;
     for(s = 0; s < 10; s++){
      scanf("%d\n",input);
      if(h1 < input){
         h3 = h2;
         h2 = h1;
         h1 = input;
      } else { 
      if(h2 < input){
         h3 = h2;
         h2 = input;
      } else { 
      if(h3 < input){
         h3 = input;
        }
       }
      }
     printf("%d\n%d\n%d\n",h1,h2,h3);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
Language: C

#include<stdio.h>

int main(void){
int h1 = 0,h2 = 0, h3 = 0,s,input;
     for(s = 0; s < 10; s++){
      scanf("%d\n",input);
      if(h1 < input){
         h3 = h2;
         h2 = h1;
         h1 = input;
      } else { 
      if(h2 < input){
         h3 = h2;
         h2 = input;
      } else { 
      if(h3 < input){
         h3 = input;
        }
       }
      }
     printf("%d\n%d\n%d\n",h1,h2,h3);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
Language: C

#include<stdio.h>

int main(void){
int h1 = 0,h2 = 0, h3 = 0,s,input;
     for(s = 0; s =< 10; s++){
      scanf("%d\n",input);
      if(h1 < input){
         h3 = h2;
         h2 = h1;
         h1 = input;
      } else { 
      if(h2 < input){
         h3 = h2;
         h2 = input;
      } else { 
      if(h3 < input){
         h3 = input;
        }
       }
      }
    }
     printf("%d\n%d\n%d\n",h1,h2,h3);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:20: error: expected expression before '<' token
    5 |      for(s = 0; s =< 10; s++){
      |                    ^
Language: C

#include<stdio.h>
int main (void){
    int x1=0,x2=0,x3=0,input,s;
    for(s=0;s<10;s++){
        scanf("%d\n",&input);
        if(x1 < input){
            x3 = x2;
            x2 = x1;
            x1 = input;
        }else{
            if(x2 < input){
                x3 = x2;
                x2 = input;
            }else{
                if(x3 < input){
                    x3 = input;
                }
            }
        }
    }
    printf("%d\n%d\n%d\n",x1,x2,x3);
    return(0);

Compiler output:
main.c: In function 'main':
main.c:22:5: error: expected declaration or statement at end of input
   22 |     return(0);
      |     ^~~~~~
Language: C

#include<stdio.h>
int main(void){
    int a[3]={0},i,x;
    for(i=1;i<=10;i++;){
        scanf("%d",&x);
        if(a[0]<=x){
            a[2]=a[1];
            a[1]=a[0];
            a[0]=x;
        }
       else if(a[1]<=x){
            a[2]=a[1];
            a[1]=x;
        }
        else if(a[2]<=x){
            a[2]=x;
        }
    }
    printf("%d\n%d\n%d\n",a[0],a[1],a[2]);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:22: error: expected ')' before ';' token
    4 |     for(i=1;i<=10;i++;){
      |        ~             ^
      |                      )
Language: C

#include <stdio.h>

int main(void){

int m[10];
int i;

for(i=0; i<10; i++)
scanf("%d", &m[i]);

int m1, m2, m3;

m1=m[0];

for(i=1; i<10 i++){

if(m1<m[i])
m1=m[i];

}

if(m1==m[0])
m2=m[1];
else
m2=m[0];

for(i=0; i<10; i++){

if(m2<m[i] && m[i]<m1)
m2=m[i];

}

if(m1!=m[0] && m2!=m[0])
m3=m[0];
else if(m1!=m[1] && m2!=m[1])
m3=m[1];
else 
m3=m[2];

for(i=0; i<10; i++){

if(m3<m[i] && m[i]<m2)
m3=m[i]

}

printf("%d\n", m1);
printf("%d\n", m2);
printf("%d\n", m3);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:15:14: error: expected ';' before 'i'
   15 | for(i=1; i<10 i++){
      |              ^~
      |              ;
main.c:44:8: error: expected ';' before '}' token
   44 | m3=m[i]
      |        ^
      |        ;
   45 | 
   46 | }
      | ~
Language: C

#include <stdio.h>
int main(){
  int max=0, mid=0, min=0;
  int h=0;
  int i=0
  for(i=0;i<10;i++){
    scanf("%d", &h);
    if(0>h || h>10000){
      printf("error\n");
      return 0;
    }
    if(max<h){
      min=mid;
      mid=max;
      max=h;
    }
    else if(mid<h){
      min=mid;
      mid=h;
    }
    else if(min<h) min=h;
  }
  printf("\n");
  printf("%d\n%d\n%d\n", max, mid, min);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: expected ',' or ';' before 'for'
    6 |   for(i=0;i<10;i++){
      |   ^~~
main.c:6:19: error: expected ';' before ')' token
    6 |   for(i=0;i<10;i++){
      |                   ^
      |                   ;
main.c:6:19: error: expected statement before ')' token
Language: C

#include <stdio.h>
int main(){
  int max=0;
  int mid=0;
  int min=0;
  int h=0;
  int i=0
  for(i=0;i<10;i++){
    scanf("%d", &h);
    if(0>h || h>10000){
      printf("error\n");
      return 0;
    }
    if(max<h){
      min=mid;
      mid=max;
      max=h;
    }
    else if(mid<h){
      min=mid;
      mid=h;
    }
    else if(min<h) min=h;
  }
  printf("\n");
  printf("%d\n%d\n%d\n", max, mid, min);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: expected ',' or ';' before 'for'
    8 |   for(i=0;i<10;i++){
      |   ^~~
main.c:8:19: error: expected ';' before ')' token
    8 |   for(i=0;i<10;i++){
      |                   ^
      |                   ;
main.c:8:19: error: expected statement before ')' token
Language: C

#include<stdio.h>



int main(void){
		int i;
		int j;
		int k;
		int m=10;
		int p;
		int n[10] = { 0 };
		for (p = 0; p < 10; p++)
		scanf_s("%d", &n[p]);
		if (n[9] < 0){
			return 0;
		}
		if (n[9] > 10000){
			return 0;
		}
		else{
			for (i = 0; i < m; i++){
				for (j = i + 1; j < m; j++){
					if (n[i]> n[j]){
						k = n[j];
						n[j] = n[i];
						n[i] = k;
					}
				}
			}
			
		}

		printf("%d %d %d", n[9], n[8], n[7]);
		
	return 0;

	}

Compiler output:
main.c: In function 'main':
main.c:13:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   13 |                 scanf_s("%d", &n[p]);
      |                 ^~~~~~~
      |                 scanf
Language: C

#include	<stdio.h>

int main(void)
{
	int indat[10];
	int max;
	int i, j;

	for (i = 0; i < 10; i++){
		scanf_s("%d", &indat[i]);
	}

	for (i = 0; i < 3; i++){
		max = 0;
		for (j = 0; j < 10; j++){
			if (indat[j] > indat[max]){
				max = j;
			}
		}
		printf("%d\n", indat[max]);
		indat[max] = 0;
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   10 |                 scanf_s("%d", &indat[i]);
      |                 ^~~~~~~
      |                 scanf
Language: C

#include <stdio.h>

int main(){
    int a[3];
    int b;
    int i, j, k;
    
    for(i = 0; i < 3; i++){
        a[i] = 0;
    }
    
    for(i = 0; i < 10; i++){
        scanf("%d", &b);
        for(j = 0; j < 3; j++){
            if(a[j] < b){
                for(k = j; k < 2; k++){
                    a[k+1] a[k];
                }
                a[j] = b;
                break;
            }
        }
    }
    
    for(i = 0; i < 3; i++){
        printf("%d\n", a[i]);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:27: error: expected ';' before 'a'
   17 |                     a[k+1] a[k];
      |                           ^~
      |                           ;
Language: C

#include<stdio.h>

int main(){
  int ans[3];
  int tmp;
  for(i=1;i<=10;i++){
    int height;
    scanf("%d",&height);
    if(height[i-1] <= height[i]){
    tmp = height[i-1]
    height[i] = tmp;
    }

  for(i=0;i<=3;i++){
    printf("%d\n",height[i]);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: 'i' undeclared (first use in this function)
    6 |   for(i=1;i<=10;i++){
      |       ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:22: error: expected ';' before 'height'
   10 |     tmp = height[i-1]
      |                      ^
      |                      ;
   11 |     height[i] = tmp;
      |     ~~~~~~            
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C

#include<stdio.h>

int main(){
  int ans[3];
  int tmp;
  int i;
  for(i=1;i<=10;i++){
    int height;
    scanf("%d",&height);
    if(height[i-1] <= height[i]){
    tmp = height[i-1]
    height[i] = tmp;
    }

  for(i=0;i<=3;i++){
    printf("%d\n",height[i]);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:14: error: subscripted value is neither array nor pointer nor vector
   10 |     if(height[i-1] <= height[i]){
      |              ^
main.c:10:29: error: subscripted value is neither array nor pointer nor vector
   10 |     if(height[i-1] <= height[i]){
      |                             ^
main.c:11:17: error: subscripted value is neither array nor pointer nor vector
   11 |     tmp = height[i-1]
      |                 ^
main.c:11:22: error: expected ';' before 'height'
   11 |     tmp = height[i-1]
      |                      ^
      |                      ;
   12 |     height[i] = tmp;
      |     ~~~~~~            
main.c:16:25: error: subscripted value is neither array nor pointer nor vector
   16 |     printf("%d\n",height[i]);
      |                         ^
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

#include<stdio.h>

int main(){
  int ans[3];
  int tmp;
  int i;
  for(i=1;i<=10;i++){
    int height;
    scanf("%d",&height);
    if(height[i-1] <= height[i]){
    tmp = height[i-1];
    height[i] = tmp;
    }

  for(i=0;i<=3;i++){
    printf("%d\n",height[i]);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:14: error: subscripted value is neither array nor pointer nor vector
   10 |     if(height[i-1] <= height[i]){
      |              ^
main.c:10:29: error: subscripted value is neither array nor pointer nor vector
   10 |     if(height[i-1] <= height[i]){
      |                             ^
main.c:11:17: error: subscripted value is neither array nor pointer nor vector
   11 |     tmp = height[i-1];
      |                 ^
main.c:12:11: error: subscripted value is neither array nor pointer nor vector
   12 |     height[i] = tmp;
      |           ^
main.c:16:25: error: subscripted value is neither array nor pointer nor vector
   16 |     printf("%d\n",height[i]);
      |                         ^
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

#include <stdio.h>

void swap(int, int);

int main(void) {
	int i, j;
	int height[10];
	
	for (i = 0; i <= 9; i++)
		scanf("%d", &height[i]);
	
	for (i = 1; i <= 9; i++)
		for (j = i; j <= 9; j++)
			if (height[j - 1] <= height[j])
				swap(height[j - 1], height[j]);

	for (i = 0; i < 3; i++)
		printf("%d", height[i]);
	return 0;
}

void swap(int *a, int *b) {
	int c;
	c = a;
	a = b;
	b = c;
}

Compiler output:
main.c:22:6: error: conflicting types for 'swap'; have 'void(int *, int *)'
   22 | void swap(int *a, int *b) {
      |      ^~~~
main.c:3:6: note: previous declaration of 'swap' with type 'void(int,  int)'
    3 | void swap(int, int);
      |      ^~~~
main.c: In function 'swap':
main.c:24:11: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
   24 |         c = a;
      |           ^
main.c:26:11: error: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   26 |         b = c;
      |           ^
Language: C

#include <stdio.h>

void swap(int, int);

int main(void) {
	int i, j;
	int height[10];
	
	for (i = 0; i <= 9; i++)
		scanf("%d", &height[i]);
	
	for (i = 1; i <= 9; i++)
		for (j = i; j <= 9; j++)
			if (height[j - 1] <= height[j])
				swap(height[j - 1], height[j]);

	for (i = 0; i < 3; i++)
		printf("%d", height[i]);
	return 0;
}

void swap(int *a, int *b) {
	int c;
	c = *a;
	*a = *b;
	*b = c;
}

Compiler output:
main.c:22:6: error: conflicting types for 'swap'; have 'void(int *, int *)'
   22 | void swap(int *a, int *b) {
      |      ^~~~
main.c:3:6: note: previous declaration of 'swap' with type 'void(int,  int)'
    3 | void swap(int, int);
      |      ^~~~
Language: C

#include <stdio.h>

void swap(int, int);

int main(void) {
	int i, j;
	int height[10];
	
	for (i = 0; i <= 9; i++)
		scanf("%d", &height[i]);
	
	for (i = 1; i <= 9; i++)
		for (j = i; j <= 9; j++)
			if (height[j - 1] <= height[j])
				swap(&height[j - 1], &height[j]);

	for (i = 0; i < 3; i++)
		printf("%d\n", height[i]);
	return 0;
}

void swap(int *a, int *b) {
	int c;
	c = *a;
	*a = *b;
	*b = c;
}

Compiler output:
main.c: In function 'main':
main.c:15:38: error: passing argument 1 of 'swap' makes integer from pointer without a cast [-Wint-conversion]
   15 |                                 swap(&height[j - 1], &height[j]);
      |                                      ^~~~~~~~~~~~~~
      |                                      |
      |                                      int *
main.c:3:11: note: expected 'int' but argument is of type 'int *'
    3 | void swap(int, int);
      |           ^~~
main.c:15:54: error: passing argument 2 of 'swap' makes integer from pointer without a cast [-Wint-conversion]
   15 |                                 swap(&height[j - 1], &height[j]);
      |                                                      ^~~~~~~~~~
      |                                                      |
      |                                                      int *
main.c:3:16: note: expected 'int' but argument is of type 'int *'
    3 | void swap(int, int);
      |                ^~~
main.c: At top level:
main.c:22:6: error: conflicting types for 'swap'; have 'void(int *, int *)'
   22 | void swap(int *a, int *b) {
      |      ^~~~
main.c:3:6: note: previous declaration of 'swap' with type 'void(int,  int)'
    3 | void swap(int, int);
      |      ^~~~
Language: C

#include <stdio.h>
int main (void)
{
int a[10]={}
int i;
for(i=0;i<9;i++)
scanf("%d",&a[i]);

int k,j;
for(i=0;i<8;i++)
for(k=0;k<8;k++)
if(a[k]<a[k+1]){
j=a[k];
a[k]=a[k+1];
a[k+1]=j;
}

for(i=0;i<2;i++){
printf("%d",a[i]);
putchar('\n');
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected ',' or ';' before 'int'
    5 | int i;
      | ^~~
main.c:6:5: error: 'i' undeclared (first use in this function)
    6 | for(i=0;i<9;i++)
      |     ^
main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
int a[10],i,a,b,c;

for(i=0;i<10;i++){
scanf("%d",&a[i]);
}

for(i=0;i<9;i++){
if(a[i]>a[i+1]) a=a[i];
else a=a[i+1];
}

for(i=0;i<9;i++){
if(a[i]>a[i+1] && a[i]<a) b=a[i];
else b=a[i+1];
}

for(i=0;i<9;i++){
if(a[i]>a[i+1] && a[i]<b) c=a[i];
else c=a[i+1];
}

printf("%d\n",a);
printf("%d\n",b);
printf("%d\n",c);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:3:13: error: conflicting types for 'a'; have 'int'
    3 | int a[10],i,a,b,c;
      |             ^
main.c:3:5: note: previous declaration of 'a' with type 'int[10]'
    3 | int a[10],i,a,b,c;
      |     ^
Language: C

#include <stdio.h>

int main()
{
	int a,b,c,t1=0,t2=0,t3=0,i;
	
	scanf("%d %d",b,c);
	if(b>=c) t1=b; t2=c;
	else t1=c; t2=b;
	
	for(i=3;i<=10;i++)
	{
		scanf("%d",&a);
		if(a>t1) t1=a;
		else if(a<t1 && a>t2) t2=a;
		else if(a<t1 && a<t2 && a>t3) t3=a;
	}
	
	printf("%d\n%d\n%d\n",t1,t2,t3);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'else' without a previous 'if'
    9 |         else t1=c; t2=b;
      |         ^~~~
Language: C

#include <stdio.h>
int main (void){
  int max[3]={0};
  int cont,i;
  for(i=0;i<10;i++){
    scanf("%d",&cont);
    if(max[0]<cont){
      max[2]=max[1];
      max[1]=max[0];
      max[0]=cont;
    }
    else if(max[1]<cont){
      max[2]=max[1];
      max[1]=cont;
    }
    else if(max[2]<cont)
      max[2]=cont;
  }
  for(i=0;i<3;i++)
    printf("%d\n",max[i]);
  return (0);

Compiler output:
main.c: In function 'main':
main.c:21:3: error: expected declaration or statement at end of input
   21 |   return (0);
      |   ^~~~~~
Language: C

include<stdio.h>
void main(){

printf("山の高さ１（整数）\n");
printf("山の高さ２（整数）\n");
printf("山の高さ３（整数）\n");
printf("山の高さ４（整数）\n");
printf("山の高さ５（整数）\n");
printf("山の高さ６（整数）\n");
printf("山の高さ７（整数）\n");
printf("山の高さ８（整数）\n");
printf("山の高さ９（整数）\n");
printf("山の高さ１０（整数）\n");

int a[],max1,max2,max3;
for(i=0;i<10;i++){
scanf("%d",&a[i]);
}

max1=a[0];
max2=a[1];
max3=a[2];

for(j=1;j<10;j++){
if(max1<a[j]){
	max3=max2;
	max2=max1;
	max1=a[j];
}
}

printf("%d",max1);
printf("%d",max2);
printf("%d",max3);

return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include<stdio.h>

int main(){
	int i,j,k,x;
	for(i=1;1<=10;i++){
		int height of mountain i;
		scanf("%d",&height of mountain i);
	}
	for(k=1;k<=3;k++){
		for(j=1;j<=9;j++){
		if(height of mountain j>height of mountain j+1){
		x=height of mountain j+1
		height of mountain j+1=height of mountain j;
		height of mountain j=x
		}
		}
	}
	printf("%d\n",height of mountain 10);
	printf("%d\n",height of mountain 9);
	printf("%d\n",height of mountain 8);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'of'
    6 |                 int height of mountain i;
      |                            ^~
main.c:6:28: error: unknown type name 'of'
main.c:6:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'i'
    6 |                 int height of mountain i;
      |                                        ^
main.c:7:29: error: 'height' undeclared (first use in this function)
    7 |                 scanf("%d",&height of mountain i);
      |                             ^~~~~~
main.c:7:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:35: error: expected ')' before 'of'
    7 |                 scanf("%d",&height of mountain i);
      |                      ~            ^~~
      |                                   )
main.c:11:26: error: expected ')' before 'of'
   11 |                 if(height of mountain j>height of mountain j+1){
      |                   ~      ^~~
      |                          )
main.c:12:25: error: expected ';' before 'of'
   12 |                 x=height of mountain j+1
      |                         ^~~
      |                         ;
main.c:14:23: error: expected ';' before 'of'
   14 |                 height of mountain j=x
      |                       ^~~
      |                       ;
main.c:18:29: error: expected ')' before 'of'
   18 |         printf("%d\n",height of mountain 10);
      |               ~             ^~~
      |                             )
main.c:19:29: error: expected ')' before 'of'
   19 |         printf("%d\n",height of mountain 9);
      |               ~             ^~~
      |                             )
main.c:20:29: error: expected ')' before 'of'
   20 |         printf("%d\n",height of mountain 8);
      |               ~             ^~~
      |                             )
Language: C

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <math.h>


/**------------ SUB ROUTIONE -------------*/
/**------------ SUB ROUTIONE -------------*/
int main()
{
	int i,k,wk;
	char inp[96];
	int dt[10];

	int work[10];

	/**--init --**/

	/**--input--**/
	for (i=0 ; i<10 ; i++) {
		gets(inp);
		sscanf_s(inp,"%d",&(dt[i]));
	}

	/**-- CALC --**/
	memcpy(work,dt,sizeof(work));
	for (i=0 ; i<9 ; i++) {
		for (k=0 ; k<9 ; k++) {
			if (work[k] > work[k+1]) {
				wk = work[k];
				work[k] = work[k+1];
				work[k+1] = wk;
			}
		}
	}

	for (i=9 ; i>6 ; i--) {
		printf("%d\n",work[i]);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:17: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   22 |                 gets(inp);
      |                 ^~~~
      |                 fgets
main.c:23:17: error: implicit declaration of function 'sscanf_s'; did you mean 'sscanf'? [-Wimplicit-function-declaration]
   23 |                 sscanf_s(inp,"%d",&(dt[i]));
      |                 ^~~~~~~~
      |                 sscanf
Language: C

#include <stdio.h>
#include <stdlib.h>

int comp(const void* a, const void* b){
	return *(int*)a - *(int*)b;
}

int main(){
	int i, hei[10]
	for(i=0;i<10;i++){
		scanf("%d", &hei[i]);
	}

	qsort(hei, 10, sizeof(int), compare);

	for(i=0;i<3;i++){
		printf("%d\n", hei[i]);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
   10 |         for(i=0;i<10;i++){
      |         ^~~
main.c:10:25: error: expected ';' before ')' token
   10 |         for(i=0;i<10;i++){
      |                         ^
      |                         ;
main.c:10:25: error: expected statement before ')' token
main.c:11:30: error: 'hei' undeclared (first use in this function)
   11 |                 scanf("%d", &hei[i]);
      |                              ^~~
main.c:11:30: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:37: error: 'compare' undeclared (first use in this function); did you mean 'comp'?
   14 |         qsort(hei, 10, sizeof(int), compare);
      |                                     ^~~~~~~
      |                                     comp
Language: C

#include <stdio.h>
#include <stdlib.h>

int comp(const void* a, const void* b){
	return *(int*)a - *(int*)b;
}

int main(){
	int i, hei[10];
	for(i=0;i<10;i++){
		scanf("%d", &hei[i]);
	}

	qsort(hei, 10, sizeof(int), compare);

	for(i=0;i<3;i++){
		printf("%d\n", hei[i]);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:37: error: 'compare' undeclared (first use in this function); did you mean 'comp'?
   14 |         qsort(hei, 10, sizeof(int), compare);
      |                                     ^~~~~~~
      |                                     comp
main.c:14:37: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <stdlib.h>
#define MAXN 10
typedef struct DNode
{
  int data;
  DNode *next;	
}llist;
void creatlist(llist*&head,int a[],int n)
{
	llist *pre,*q;
	head=(llist *)malloc(sizeof(llist));
	pre=head;
	for(int i=1;i<=n;i++)
	{
	 q=(llist *)malloc(sizeof(llist));
	 q->data=a[i];
     pre->next=q;
     pre=q; 
	}
	pre->next=NULL;
}
void swapi(llist*&L)
{
 llist *q,*p;
 q=L->next;
 p=L->next->next;
 q->next=NULL;
 L->next=p;
 q->next=p->next;
 p->next=q;  	
}

bool sorti(llist*&L)
{
  llist *p,*q;
  p=L->next;
  q=L;
  int count=0,c2;
  while(p->next!=NULL)
  {
   count++;
   p=p->next;	
  }
  c2=count;
  if(L->next->next==NULL&&L->next==NULL)
  return 0;
  else
  {
  	while(count--)
  	{
  		c2=count+1;
 	  while(c2--)
 	  {
  	 	if(q->next->data<q->next->next->data)
  	 	swapi(q);
		q=q->next; 	
  	  }
  	   q=L;
    }
  }	
}
int main()
{
    int a[MAXN];
    llist *p;
    for(int i=1;i<=MAXN;i++)
    scanf("%d",&a[i]);
    creatlist(p,a,MAXN);
    sorti(p);
    for(int i=1;i<=3;i++)
    {
      p=p->next;
   	  printf("%d\n",p->data);
    }  
	return 0;
}

Compiler output:
main.c:7:3: error: unknown type name 'DNode'
    7 |   DNode *next;
      |   ^~~~~
main.c:9:22: error: expected ';', ',' or ')' before '&' token
    9 | void creatlist(llist*&head,int a[],int n)
      |                      ^
main.c:23:18: error: expected ';', ',' or ')' before '&' token
   23 | void swapi(llist*&L)
      |                  ^
main.c:34:1: error: unknown type name 'bool'
   34 | bool sorti(llist*&L)
      | ^~~~
main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include <stdlib.h>
  +++ |+#include <stdbool.h>
    3 | #define MAXN 10
main.c:34:18: error: expected ';', ',' or ')' before '&' token
   34 | bool sorti(llist*&L)
      |                  ^
main.c: In function 'main':
main.c:69:5: error: implicit declaration of function 'creatlist' [-Wimplicit-function-declaration]
   69 |     creatlist(p,a,MAXN);
      |     ^~~~~~~~~
main.c:70:5: error: implicit declaration of function 'sorti' [-Wimplicit-function-declaration]
   70 |     sorti(p);
      |     ^~~~~
main.c:73:8: error: assignment to 'llist *' {aka 'struct DNode *'} from incompatible pointer type 'int *' [-Wincompatible-pointer-types]
   73 |       p=p->next;
      |        ^
Language: C

#include <stdio.h>

// Sample Input
// 1819
// 2003
// 876
// 2840
// 1723
// 1673
// 3776
// 2848
// 1592
// 922
// Output for the Sample Input
// 3776
// 2848
// 2840

int main(){
	int i = 0, j, num[10], dumy;

	while(i < 10;){

		scanf("%d",&num[i]);

		for(j = i + 1; j < 10; j++){
			if(num[i] > num[j]){
				dumy = num[i];
				num[i] = num[j];
				num[j] = dumy;
			}
		}
		i++;
	}
	for(i = 0; i < 10; i++){
		printf("%d\n", num[i]);
	}

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:21: error: expected ')' before ';' token
   22 |         while(i < 10;){
      |              ~      ^
      |                     )
Language: C

#include <stdio.h>

// Sample Input
// 1819
// 2003
// 876
// 2840
// 1723
// 1673
// 3776
// 2848
// 1592
// 922
// Output for the Sample Input
// 3776
// 2848
// 2840

int main(){
	int i = 0, j, num[10], dumy;

	while(i < 10;){

		scanf("%d",&num[i]);

		for(j = i + 1; j < 10; j++){
			if(num[i] > num[j]){
				dumy = num[i];
				num[i] = num[j];
				num[j] = dumy;
			}
		}
		i++;
	}
	for(i = 0; i < 3; i++){
		printf("%d\n", num[i]);
	}

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:21: error: expected ')' before ';' token
   22 |         while(i < 10;){
      |              ~      ^
      |                     )
Language: C

#include<stdio.h>
int main(){
int element;
int height[10000];
for(int i = 0;;i++){
scanf("%d",&height[i]);
if(height[i]!=) {
element=i;
break;
}

}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:15: error: expected expression before ')' token
    7 | if(height[i]!=) {
      |               ^
Language: C

void main ()
{ 

    int number (10);
    int i, j, a, n;
    

    printf("Enter the value \n");
    scanf("%d",&n);

printf("Enter the numbers \n");
for(i=0;i<n;i++)
scanf("%d", &number[i]);

for(i=0;i<n;i++)
{ for (j=i+1;j<n;j++)
{if (number [i] <number [j])
{ a= number[i]= number[j];
number[j]=a;
}}}
printf("the numbers arranged in decending"
for(i=0;i<n;i++)
{
printf("%d",number[i]);
}}

Compiler output:
main.c: In function 'main':
main.c:4:17: error: expected declaration specifiers or '...' before numeric constant
    4 |     int number (10);
      |                 ^~
main.c:8:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |     printf("Enter the value \n");
      |     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | void main ()
main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |     printf("Enter the value \n");
      |     ^~~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 |     scanf("%d",&n);
      |     ^~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:14: error: 'number' undeclared (first use in this function)
   13 | scanf("%d", &number[i]);
      |              ^~~~~~
main.c:13:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:43: error: expected ')' before 'for'
   21 | printf("the numbers arranged in decending"
      |       ~                                   ^
      |                                           )
   22 | for(i=0;i<n;i++)
      | ~~~                                        
main.c:25:2: error: expected ';' before '}' token
   25 | }}
      |  ^
      |  ;
Language: C

#include <stdio.h>

int main(){
  /*int a,b;
  
  for(a=1;a<=9;a++){
    for(b=1;b<=9;b++){
    printf("%dx%d=%d\n",a,b,a*b);
    }
  }*/
  int mtop [10]={100,200,300,400,500,600,700,800,900,1000};
  */  mtop[0]=1000*/
  
    

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:4: error: expected expression before '/' token
   12 |   */  mtop[0]=1000*/
      |    ^
Language: C

#include<stdio.h>
#include<stlib.h>

int main()
{
  log long int num1,num2;
  while(scanf("%d %d",num1,num2)!=EOF){
  num=num1*num2;
  while(num1 !=num2)
  if(num1>num2)
  num1=num1-num2;
  else
  num2=num2-num1;
  }
  printf("%d %d",num1,num2);

}

Compiler output:
main.c:2:9: fatal error: stlib.h: No such file or directory
    2 | #include<stlib.h>
      |         ^~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
int main()

{
    int i,c,a[11],temp;
    for(c=0;c<10;c++) scanf("%d",&a[c]);

    for(i=0;i< 9; i++){
        for(j=0; j< 9-i;j++){
            if(a[j]>a[j+1]){
                temp=a[j+1];
                a[j+1]=a[j];
                a[j]=temp;
            }
        }
    }

    printf("%d\n%d\n%d",a[9],a[8],a[7]);
    return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:13: error: 'j' undeclared (first use in this function)
    9 |         for(j=0; j< 9-i;j++){
      |             ^
main.c:9:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main()
{
    int i,c,j,a[11],temp;
    for(c=0;c<10;c++)scanf("%d",&a[c]);
    for(i=0;i<9;i++){
            for(j=0;j<9 -i;j++){
                    if(a[j]>a[j+1]){
            temp=a[j+1];
            a[j+1]=a[j];
            a[j]=temp;
            }
    }
}

        printf("%d\n%d\n%d\'n",a[9],a[8],a[7]);
}
return 0;
}

Compiler output:
main.c:18:1: error: expected identifier or '(' before 'return'
   18 | return 0;
      | ^~~~~~
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
Language: C

#include <iostream>

using namespace std;

int main() {
    int height1 = 0;
    int height2 = 0;
    int height3 = 0;
    int x;
    while (cin >> x){
        if (x>=height1){
            height1 = x;
        }
        else{
            if (x>=height2){
                height2 = x;
            }
            else{
                if (x>=height3){
                    height3 = x;
                }
            }
        }
    }
    cout << height1 << endl << height2 << endl << height3 << endl;
    return 0;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>

int main()
{
    int a1[10],i,j,x;

    for(i=0;i<10;i++)
        scanf("%d"&a[i]);

    for(i=9;i>0;i--)
        for(j=0;j<i;j++)
        {
            if(a1[j]<a1[j+1])
            {
                x=a1[j];
                a1[j]=a1[j+1];
                a1[j+1]=x;
            }
        }
    printf("%d\n%d\n%d\n",a1[0],a1[1],a1[2]);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:20: error: 'a' undeclared (first use in this function)
    8 |         scanf("%d"&a[i]);
      |                    ^
main.c:8:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

int height[10];

void scan(){
  for(int i = 0; i < 10; i++){
    scanf("%d", &height[i]);
  }
}

void sorting(){
    for(int numb = 0; numb < 9; numb++){
        for(int num = 0; num < 9-numb; num++){
            if(height[num] < height[num+1]){
                int stock = height[num];
                height[num] = height[num+1];
                height[num+1] = stock;
            }
        }
    }
}

int main(){
  scan();
  sorting();
  for(int a = 0; a < 3; a++){
    printf("Height%d: %d\n", a, height[a]); 
  }
  return 0;
}

Compiler output:
main.c: In function 'scan':
main.c:5:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |     scanf("%d", &height[i]);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int height[10];
main.c:5:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |     scanf("%d", &height[i]);
      |     ^~~~~
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c: In function 'main':
main.c:25:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   25 |     printf("Height%d: %d\n", a, height[a]);
      |     ^~~~~~
main.c:25:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:25:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:25:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int main(){
    int i,j,kazu;
    int max=0,max1=0,max2=0;
    int x[10];
    
    for(j=0;j<10;j++){
        scanf("%d",&kazu);
        x[i]=kazu;
    }
    for(i=0;i<9;i++){
        if(i=0){
            max=x[i];
            max1=x[i];
            max2=x[i];
        }else{
            if(max<x[i]){
                max=x[i];
            }else if(max1<x[i]){
                max1=x[i];
            }else if(max2<x[i]){
                max2=x[i];
            }
        }
    printf("%d\n",max);
    printf("%d\n",max1);
    printf("%d\n",max2);
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:31:1: error: expected declaration or statement at end of input
   31 | }
      | ^
Language: C

#include<stdio.h>

int main(){
    int i,j,kazu;
    int max=0,max1=0,max2=0;
    int x[10]={0};
    
    for(j=0;j<10;j++){
        scanf("%d",&kazu);
        x[i]=kazu;
    }
    for(i=0;i<9;i++){
        if(i=0){
            max=x[i];
            max1=x[i];
            max2=x[i];
        }else{
            if(max<x[i]){
                max=x[i];
            }else if(max1<x[i]){
                max1=x[i];
            }else if(max2<x[i]){
                max2=x[i];
            }
        }
    printf("%d\n",max);
    printf("%d\n",max1);
    printf("%d\n",max2);
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:31:1: error: expected declaration or statement at end of input
   31 | }
      | ^
Language: C

#include<stdio.h>

int main(){
    int i,kazu;
    int max=0,max1=0,max2=0;
    int x[10]={0};
    
    for(i=0;i<10;i++){
        scanf("%d",&kazu);
        x[j]=kazu;
        
        if(i=0){
            max=x[i];
            max1=x[i];
            max2=x[i];
        }else{
            if(max<x[i]){
                max=x[i];
            }else if(max1<x[i]){
                max1=x[i];
            }else if(max2<x[i]){
                max2=x[i];
            }
        }
    }
    printf("%d\n",max);
    printf("%d\n",max1);
    printf("%d\n",max2);
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:11: error: 'j' undeclared (first use in this function)
   10 |         x[j]=kazu;
      |           ^
main.c:10:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void){

    int mountain[10] = {0};
    int i=0;
    int j=0;
    int k=0;
    int count=0;
    int m1=0;
    int m2=0;
    int m3=0;
    
    for(i=0; i<10; i++){
        scanf("%d", &j);
        mountain[i] = j;
    }
    
    for(i=0; i<10; i++){
        j=mountain[i];
        while(k<10){
            if(j =< mountain[k]){
                count++;
            }
            k++;
        }
        if(count==1){
            m1=j;
        }
        else if(count==2){
            m2=j;
        }
        else if(count==3){
            m3=j;
        }
        k=0;
        count=0;
        j=0;
    }
    printf("%d\n", m1);
    printf("%d\n", m2);
    printf("%d\n", m3);
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:19: error: expected expression before '<' token
   22 |             if(j =< mountain[k]){
      |                   ^
Language: C

#include <stdio.h>

int main(void){

    int mountain[10] = {0};
    int i=0;
    int j=0;
    int count=0;
    int m1=0;
    int m2=0;
    
    for(i=0; i<10; i++){
        scanf("%d", &j);
        mountain[i] = j;
    }
    
    do{
      count = 0;
      for(i=0; i<9; i++){
         m1 = mountain[i];
         m2 = mountain[i+1];
         
         if(m1 < m2){
            mountain[i] = m2;
            mountain[i+1] = m1;
            count++;
         }
      
      }
    }while(conut != 0)
    
    printf("%d\n", mountain[0]);
    printf("%d\n", mountain[1]);
    printf("%d\n", mountain[2]);
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:30:12: error: 'conut' undeclared (first use in this function); did you mean 'count'?
   30 |     }while(conut != 0)
      |            ^~~~~
      |            count
main.c:30:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:30:23: error: expected ';' before 'printf'
   30 |     }while(conut != 0)
      |                       ^
      |                       ;
   31 | 
   32 |     printf("%d\n", mountain[0]);
      |     ~~~~~~
Language: C

#include <stdio.h>

int main(void){

    int mountain[10] = {0};
    int i=0;
    int j=0;
    int count=0;
    int m1=0;
    int m2=0;
    
    for(i=0; i<10; i++){
        scanf("%d", &j);
        mountain[i] = j;
    }
    
    do{
      count = 0;
      for(i=0; i<9; i++){
         m1 = mountain[i];
         m2 = mountain[i+1];
         
         if(m1 < m2){
            mountain[i] = m2;
            mountain[i+1] = m1;
            count++;
         }
      
      }
    }while(count != 0)
    
    printf("%d\n", mountain[0]);
    printf("%d\n", mountain[1]);
    printf("%d\n", mountain[2]);
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:30:23: error: expected ';' before 'printf'
   30 |     }while(count != 0)
      |                       ^
      |                       ;
   31 | 
   32 |     printf("%d\n", mountain[0]);
      |     ~~~~~~
Language: C

#include<stdio.h>

int main(){
    int i,kazu,judge1,judge2;
    int max=0,max1=0,max2=0;
    int x[10];
    
    for(i=0;i<10;i++){
        scanf("%d",&kazu);
        x[i]=kazu;
    }
    
    do{
      count = 0;
      for(i=0; i<9; i++){
         judge1 = x[i];
         judge2 = x[i+1];
          
         if(judge1 < judge2){
            x[i] = judge2;
            x[i+1] = judge1;
            count++;
         }
       
      }
    }while(count != 0);
    
    printf("%d\n",max);
    printf("%d\n",max1);
    printf("%d\n",max2);
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:7: error: 'count' undeclared (first use in this function)
   14 |       count = 0;
      |       ^~~~~
main.c:14:7: note: each undeclared identifier is reported only once for each function it appears in