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

#include<stdio.h>

int main() {
    int f=0, s=0, t=0, n, i;

    for (i=0; i<10; i++){
        scanf("%d", &n);
        if(f<n){
            t = s;
            s = f;
            f = n;
        }else if(s<n){
            t = s;
            s = n;
        }else if(t<n)}
            t = n;
        }
     printf("%d\n%d\n%d\n", f, s, t);
     return 0;
}
   

Compiler output:
main.c: In function 'main':
main.c:15:22: error: expected expression before '}' token
   15 |         }else if(t<n)}
      |                      ^
main.c: At top level:
main.c:18:13: error: expected declaration specifiers or '...' before string constant
   18 |      printf("%d\n%d\n%d\n", f, s, t);
      |             ^~~~~~~~~~~~~~
main.c:18:29: error: unknown type name 'f'
   18 |      printf("%d\n%d\n%d\n", f, s, t);
      |                             ^
main.c:18:32: error: unknown type name 's'
   18 |      printf("%d\n%d\n%d\n", f, s, t);
      |                                ^
main.c:18:35: error: unknown type name 't'
   18 |      printf("%d\n%d\n%d\n", f, s, t);
      |                                   ^
main.c:19:6: error: expected identifier or '(' before 'return'
   19 |      return 0;
      |      ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

#include<stdio.h>

int main() {
    int f=0, s=0, t=0, n, i;

    for (i=0; i<10; i++){
        scanf("%d", &n);
        if(f<n){
            t = s;
            s = f;
            f = n;
        }else if(s<n){
            t = s;
            s = n;
        }else if(t<n){
            t = n;
        }
     printf("%d\n%d\n%d\n", f, s, t);
     return 0;
}
   

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

#include <stdio.h>

int main (void){

  int i, k;
  int m1 , m2 , m3;
  int height[10];

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

  m1=height[0];
  m2=height[0];
  m3=height[0];

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

    if(m1<height[i]){

      m1=height[i];
      k=i;
    }
  }   height[k]=0;

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

    if(m2<height[i]){

      m2=height[i];
      k=i;
    }
  }   height[k]=0;

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

    if(m3<height[i]){

      m3=height[i];
      k=i;
    }
  }   height[k]=0;

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

  retrun 0;

}

Compiler output:
main.c: In function 'main':
main.c:46:3: error: 'retrun' undeclared (first use in this function)
   46 |   retrun 0;
      |   ^~~~~~
main.c:46:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:46:9: error: expected ';' before numeric constant
   46 |   retrun 0;
      |         ^~
      |         ;
Language: C

#include <stdio.h>

int main (void){

  int i, k;
  int m1 , m2 , m3;
  int height[10];

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

  m1=height[0];
  m2=height[0];
  m3=height[0];

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

    if(m1<height[i]){

      m1=height[i];
      k=i;
    }
  }   height[k]=0;

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

    if(m2<height[i]){

      m2=height[i];
      k=i;
    }
  }   height[k]=0;

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

    if(m3<height[i]){

      m3=height[i];
      k=i;
    }
  }   

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

  retrun 0;

}

Compiler output:
main.c: In function 'main':
main.c:46:3: error: 'retrun' undeclared (first use in this function)
   46 |   retrun 0;
      |   ^~~~~~
main.c:46:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:46:9: error: expected ';' before numeric constant
   46 |   retrun 0;
      |         ^~
      |         ;
Language: C

#include <stdio.h>

int main (void){

  int i, k, j;
  int m1 , m2 , m3;
  int height[10];

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

  m=height[0];

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

    if(m<height[i]){

      m=height[i];
      k=i;
    }
  }   height[k]=0;
      printf("%d",m);
}

  
    return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:3: error: 'm' undeclared (first use in this function); did you mean 'm3'?
   13 |   m=height[0];
      |   ^
      |   m3
main.c:13:3: 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,j,n;
    for(i=0;i<10;i++){
        scanf("%d",&a[i]);
    }
    for(i=0;i<10;i++)
    {
        for(j=0;j<10;j++)
        {
            if(a[i]>a[j])
            {
                n=a[i];
                a[i]=a[j];
                a[j]=n;
            }

        }
    }

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

Compiler output:
main.c: In function 'main':
main.c:25:9: error: implicit declaration of function 'prntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   25 |         prntf("%d\n",a[i]);
      |         ^~~~~
      |         printf
Language: C

#include <stdio.h>

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

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

#include<stdio.h>
int main(void)
{
	int i = 0;
	int height[10] ={NULL};
	int temp, flag=0;

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


	do {
		flag = 0;
		for (i = 0; i < 9; i++) {
			if (height[i] > height[i + 1]) {
				flag = 1;
				temp = height[i + 1];
				height[i + 1] = height[i];
				height[i] = temp;
			}
		}
	} while (flag);
	printf("%d\n%d\n%d\n", height[9], height[8], height[7]);

	return 0;

Compiler output:
main.c: In function 'main':
main.c:5:26: error: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
    5 |         int height[10] ={NULL};
      |                          ^~~~
main.c:5:26: note: (near initialization for 'height[0]')
main.c:26:9: error: expected declaration or statement at end of input
   26 |         return 0;
      |         ^~~~~~
Language: C

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

Compiler output:
main.c:1:17: error: missing terminating > character
    1 | #include <stdio.
      |                 ^
main.c:1:10: fatal error: stdio.: No such file or directory
    1 | #include <stdio.
      |          ^
compilation terminated.
Language: C

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

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

#include<stdio.h>

int main(){
  int i;
  int mon[9];
  for(i=0;i<10;i++){
    scanf("%d\n",mon[0]);
  }
  for(i=0; i< 10; i++){
    for(j=10-1; j>i; j--){
      if(mon[j] < mon[j-1]){
        temp = mon[j];
        mon[j] = mon[j-1];
        mon[j-1] = temp;
      }
    }
  }
  for(i=0;i<3;i++){
    printf("%d\n",mon[i]);
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:9: error: 'j' undeclared (first use in this function)
   10 |     for(j=10-1; j>i; j--){
      |         ^
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: 'temp' undeclared (first use in this function)
   12 |         temp = mon[j];
      |         ^~~~
Language: C

#include<stdio.h>

int main(){
  int i,j;
  int mon[9];
  for(i=0;i<10;i++){
    scanf("%d\n",mon[0]);
  }
  for(i=0; i< 10; i++){
    for(j=10-1; j>i; j--){
      if(mon[j] < mon[j-1]){
        temp = mon[j];
        mon[j] = mon[j-1];
        mon[j-1] = temp;
      }
    }
  }
  for(i=0;i<3;i++){
    printf("%d\n",mon[i]);
  }

  return 0;
}

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

#include<stdio.h>

int main(){
    int a=0,b=0,c=0,i=0;
    int tmp[9]={1819,
2003,
876,
2840,
1723,
1673,
3776,
2848,
1592,
922}
   
    for(i=0;i<10;i++){
        
        if(tmp[i]>a){
           a=tmp[i];
        }
        if(tmp[i]>b){
           b=tmp[i];
        }
        if(tmp[i]>c){
           c=tmp[i];
        }
    }
    printf("%d\n",a);
    printf("%d\n",b);
    printf("%d\n",c);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:1: warning: excess elements in array initializer
   14 | 922}
      | ^~~
main.c:14:1: note: (near initialization for 'tmp')
main.c:16:5: error: expected ',' or ';' before 'for'
   16 |     for(i=0;i<10;i++){
      |     ^~~
main.c:16:21: error: expected ';' before ')' token
   16 |     for(i=0;i<10;i++){
      |                     ^
      |                     ;
main.c:16:21: error: expected statement before ')' token
Language: C

#include<stdio.h>

int main(void){

int i,j,x,data[10];
     
    for(i=0;i<10;i++)
    {
        scanf("%d",&data[i]);
    }
     
    for(i=0;i<9;i++)
    {
        for(j=0;j<9-i;j++)
        {
            if(data[j]<data[j+1])
            {
                x=data[j];
                data[j]=data[j+1];
                data[j+1]=x;
            }
        }
    }
    for(i=0;i<3;i++)
    {
        printf("%d\n",data[i]);
    }
rerurn 0;
}

Compiler output:
main.c: In function 'main':
main.c:28:1: error: 'rerurn' undeclared (first use in this function)
   28 | rerurn 0;
      | ^~~~~~
main.c:28:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:28:7: error: expected ';' before numeric constant
   28 | rerurn 0;
      |       ^~
      |       ;
Language: C

#include<stdio.h>

int main(){

int a[] = {1819,2003,876,2840,
1723,1673,3776,2848,1592,922};
int i, max=0, max2=0, max3=0;

max=max2=max3=a[0];

for(i=1; i<10; i++){
if (max < a[i]) {
 max = a[i];
}
if(max < max2 <a[i]){
 max2 = a[i];
}
if(max2 < max3 <a[i]){
 max3 = a[i];
}
printf("%d\n", max);
printf("%d\n", max2);
printf("%d\n", max3);
    return 0;
}

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

include<stdio.h>
  
int main(){
  int data[10];
  int i,j,temp;

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

  for(i=0;i<10;i++){
    for(j=i+1;j<10;j++){
      if(a[j]>a[i]){
         temp = data[i];
         data[i] = data[j];
         data[j] = temp;
      }
    }
  }
  
  for(i=0;i<3;i++){
  	printf("%d\n",a[i]);
  }
  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 data[10];
  int i,j,temp;

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

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

  for(i=0;i<3;i++){
  	printf("%d\n",data[i]);
  }
  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 a[]={1819, 2003, 876, 2840,1723,1673,3776,2848,1592,922}, i, fast, sec, third;
fast=2,sec=1,third=0;
for(i=0;i<10;i++){
}
for(i=0;i<10;i++){
if(fast<h[i]){
        fast=h[i];
    }else if(fast<h[i] || third<h[i]){
        sec=h[i];
    }else if(sec>h[i]){
        third=h[i];
    }

}
printf("%d\n",fast);
printf("%d\n",sec);
printf("%d\n",third);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'h' undeclared (first use in this function)
    9 | if(fast<h[i]){
      |         ^
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C


#include <stdio.h>


int main(void) { 
    int x,y,z,i,input; //??£?¨?
    for(i=0;i<10,i++){
       scanf("%d\n",&input);  //????????\???
       if(x<input){
           y=z;
           z=x;
           x=input;
     }else{
          if(y<input){
            z=y;
            y=input;
    }else{
          if(z<input){
            z=input;
          }
       }
     }
   } 
   printf("%d\n%d\n%d\n",x,y,z);


    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:21: error: expected ';' before ')' token
    7 |     for(i=0;i<10,i++){
      |                     ^
      |                     ;
Language: C

#include<stdio.h>

int main(){

int i, a[10] = {1819,2003,876,2840,1723,
1673,3776,2848,1592,922};

int i, j;

int dumy;


for(i=0; i<10; i++){
 for(j=i+1; l<10; j++){
  if(a[i] > a[j]){
   dumy=a[i]
   a[i]=a[j];
   a[j]=a[i];
}
}
}

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: redeclaration of 'i' with no linkage
    8 | int i, j;
      |     ^
main.c:5:5: note: previous declaration of 'i' with type 'int'
    5 | int i, a[10] = {1819,2003,876,2840,1723,
      |     ^
main.c:14:13: error: 'l' undeclared (first use in this function)
   14 |  for(j=i+1; l<10; j++){
      |             ^
main.c:14:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:13: error: expected ';' before 'a'
   16 |    dumy=a[i]
      |             ^
      |             ;
   17 |    a[i]=a[j];
      |    ~
Language: C

#include<stdio.h>

int main(){

int i, a[10] = {1819,2003,876,2840,1723,
1673,3776,2848,1592,922};

int  j;

int dumy;


for(i=0; i<10; i++){
 for(j=i+1; l<10; j++){
  if(a[i] < a[j]){
   dumy=a[i]
   a[i]=a[j];
   a[j]=a[i];
}
}
}

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:13: error: 'l' undeclared (first use in this function)
   14 |  for(j=i+1; l<10; j++){
      |             ^
main.c:14:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:13: error: expected ';' before 'a'
   16 |    dumy=a[i]
      |             ^
      |             ;
   17 |    a[i]=a[j];
      |    ~
Language: C

#include<stdio.h>

int i, j, dumy, a[10] = {1819,2003,876,2840,1723,
1673,3776,2848,1592,922};
for(i=0; i<10; i++){
for(j=i+1; j<10; j++){
if(a[i] < a[j]){
dumy=a[i];
a[i]=a[j];
a[j]=dumy;
}
}
}

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

Compiler output:
main.c:5:1: error: expected identifier or '(' before 'for'
    5 | for(i=0; i<10; i++){
      | ^~~
main.c:5:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    5 | for(i=0; i<10; i++){
      |           ^
main.c:5:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    5 | for(i=0; i<10; i++){
      |                 ^~
main.c:15:1: error: expected identifier or '(' before 'for'
   15 | for(i=0; i<3; i++){
      | ^~~
main.c:15:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   15 | for(i=0; i<3; i++){
      |           ^
main.c:15:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   15 | for(i=0; i<3; i++){
      |                ^~
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 <stdio.h>

int main(){
  
  int n[10];
  int i;
  int a;

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

    scanf("%d",a[i]);
    
  }

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

    if(n[i] > n[i+1]){
      a = n[i];
    }else{
      a = n[i+1];
    }
    
  }

  printf("%d\n",a);
  printf("%d\n",n[i+1]);
  printf("%d\n",n[i+2]);
  
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:11:17: error: subscripted value is neither array nor pointer nor vector
   11 |     scanf("%d",a[i]);
      |                 ^
Language: C

#include <stdio.h>

int main(void){
  int high[10];
  int i,max1=0,max2=0,max3=0;

  for(i=0;i<10;i++){
	scanf("%d",high[i]);
  }
	if(max3<high[i]){
	  	if(max2<high[i]){

		  if(max<high[i]){
			max3 = max2;
			max2 = max;
			max = high[i];
		  }

		  else{
			max3 = max2;
			max2 = high[i];
		  }
		  
		}

		else{
		  max3 = high[i];
	}
		
  }

	printf("%d\n%d\n%d\n",max,max2,max3);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:22: error: 'max' undeclared (first use in this function); did you mean 'max3'?
   13 |                   if(max<high[i]){
      |                      ^~~
      |                      max3
main.c:13:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

#include<conio.h>

void qsort(int arr[9], int fst, int last);

int main()

{
	
	int arr[9];
	
	int i;
	
	for (i = 0; i < 10; i++)
		
		scanf("%d", &arr[i]);
	
	qsort(arr, 0, 9);
	
	for (i = 0; i < 3; i++)
		
		printf("%d\n", arr[i]);
		
	return 0;
}

void qsort(int arr[9], int fst, int last)

{
	
	int i, j, pivot, tmp;
	
	if (fst < last)
	
	{
		
		pivot = fst;
		
		i = fst;
		
		j = last;
		
		while (i < j)
		
		{
			
			while (arr[i] >= arr[pivot] && i < last)
				
				i++;
			
			while (arr[j] < arr[pivot])
				
				j--;
			
			if (i < j)
			
			{
			
				tmp = arr[i];
				
				arr[i] = arr[j];
				
				arr[j] = tmp;
			
			}
		}
		
		tmp = arr[pivot];
		
		arr[pivot] = arr[j];
		
		arr[j] = tmp;
		
		qsort(arr, fst, j - 1);
		
		qsort(arr, j + 1, last);
	}
	
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){


  long long int a[10], i;
  for(i=0; i<10; i++)   cin>>a[i];
  sort(a, a+10, std::greater<int>());
  cout<<a[0]<<endl;
  cout<<a[1]<<endl;
cout<<a[2]<<endl;

    return 0;

}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>

int main(){
    int i, a[], temp;
    int first=0, second=0, third=0;

    for(i=0; i<10; i++) {
        scanf("%d", &a[i]);
        if(first < a[i]) {
              third=second;
              second=first;
              first=a[i];
        } else if(second < a[i]) {
              third=second;
              second=a[i];
        } else if(third < a[i]) {
              third=a[i];
        }
    }
    printf("%d\n%d\n%d\n", first, second, third);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:12: error: array size missing in 'a'
    4 |     int i, a[], temp;
      |            ^
Language: C

#include<stiod.h>
int main()
{
int a[10], max[3] = {0}, i, j;
for(i = 0; i < 10; i++){
   scanf( "%d", a[i] );
   for(j = 0; j < 3; j++){
      if(max[j] < a[i]) {
         max[j] = a[i];
         break;
      }
   }
}
for(i = 0; i < 3; i++)
printf( "%d", max[i] );
return 0;
}

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

#include <stdio.h>
int main()
{
    long int a[10];
    long int  m=0,n=0,k=0;
    int i;
    for(i=0;i<10;i++)
    {
        scanf("%ld",&a[i]);
        if(a[i]>m)m=a[i];
    }
    for(i=0;i<10;i++)
            if(a[i]>=n&&a[i]<=m)n=a[i];
    for(i=0;i<10;i++)
        if(a[i]>=k&&a[i]=<n)k=a[i];
    printf("%ld\n%ld\n%ld",m,n,k);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:26: error: expected expression before '<' token
   15 |         if(a[i]>=k&&a[i]=<n)k=a[i];
      |                          ^
Language: C

#include <stdio.h>

int main(){
	int hei[11],i,j,temp;

	for(i=0;i<10;i++){
		scanf("%d",hei);
	}
	for(i=0;i<10;i++){
		for(j=i+1;j<10;j++){
			if(hei[i]<hei[j]){
				temp=hei[i];
				hei[i]=hei[j];
				hei[j]=temp;
			}
		}
	}
	for(i=0;i<2;i++){
	printf("%d\n",hei[i])
	}
return(0);

}

Compiler output:
main.c: In function 'main':
main.c:19:30: error: expected ';' before '}' token
   19 |         printf("%d\n",hei[i])
      |                              ^
      |                              ;
   20 |         }
      |         ~
Language: C

#include <stdio.h>

int main(){
	int hei[11],i,j,temp;

	for(i=0;i<10;i++){
		scanf("%d",&hei[i]);
	}
	for(i=0;i<10;i++){
		for(j=i+1;j<10;j++){
			if(hei[i]<hei[j]){
				temp=hei[i];
				hei[i]=hei[j];
				hei[j]=temp;
			}
		}
	}
	for(i=0;i<2;i++){
	printf("%d\n",hei[i])
	}
return(0);

}

Compiler output:
main.c: In function 'main':
main.c:19:30: error: expected ';' before '}' token
   19 |         printf("%d\n",hei[i])
      |                              ^
      |                              ;
   20 |         }
      |         ~
Language: C

#include <stdio.h>

int main(){
	int hei[11],i,j,temp;

	for(i=0;i<10;i++){
		scanf("%d",&hei[i]);
	}
	for(i=0;i<10;i++){
		for(j=i+1;j<10;j++){
			if(hei[i]<hei[j]){
				temp=hei[i];
				hei[i]=hei[j];
				hei[j]=temp;
			}
		}
	}
	for(i=0;i<3;i++){
	printf("%d\n",hei[i])
	}
return(0);

}

Compiler output:
main.c: In function 'main':
main.c:19:30: error: expected ';' before '}' token
   19 |         printf("%d\n",hei[i])
      |                              ^
      |                              ;
   20 |         }
      |         ~
Language: C

#include <stdio.h>

int main(){
	int hei[10],i,j,temp;

	for(i=0;i<10;i++){
		scanf("%d",&hei[i]);
	}
	for(i=0;i<10;i++){
		for(j=i+1;j<9;j++){
			if(hei[i]<hei[j]){
				temp=hei[i];
				hei[i]=hei[j];
				hei[j]=temp;
			}
		}
	}
	for(i=0;i<3;i++){
	printf("%d\n",hei[i])
	}
return(0);

}

Compiler output:
main.c: In function 'main':
main.c:19:30: error: expected ';' before '}' token
   19 |         printf("%d\n",hei[i])
      |                              ^
      |                              ;
   20 |         }
      |         ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:17: error: expected expression before ')' token
    9 |   for(i=0;i<3;++){
      |                 ^
Language: C

#include <stdio.h>
int main(void)
{
	int i, j, hill[10], temp;

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

	for (i = 0; i < 9; i++) {
		for (j = i; j < 10; j++) {
			if (hill[i] < hill[j]) {
				temp = hill[i];
				hill[i] = hill[j];
				hill[j] = temp;
			}
		}
	}

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'fo'; did you mean 'feof'? [-Wimplicit-function-declaration]
    6 |         fo(i = 0; i < 10; i++)
      |         ^~
      |         feof
main.c:6:17: error: expected ')' before ';' token
    6 |         fo(i = 0; i < 10; i++)
      |           ~     ^
      |                 )
main.c:6:31: error: expected ';' before 'scanf'
    6 |         fo(i = 0; i < 10; i++)
      |                               ^
      |                               ;
    7 |                 scanf("%d"&hill[i]);
      |                 ~~~~~
Language: C

int main()
{
	int i;
	int rank1 = 0, rank2 = 0, rank3 = 0;
	int mountain[10] = {0};
	for (i = 0; i < 10; i++) {
		scanf_s("%d", &mountain[i]);
	}

	for (i = 0; i < 10; i++) {
		if (mountain[i] > rank1) 
		{
			rank1 = mountain[i]
		}
		else if (mountain[i] > rank2)
		{
			rank2 = mountain[i]
		}
		else if (mountain[i] > rank3) 
		{
			rank3 = mountain[i];
		}
	
	}

		printf("%d %d %d", rank1, rank2, rank3);
	
	


    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
    7 |                 scanf_s("%d", &mountain[i]);
      |                 ^~~~~~~
main.c:13:44: error: expected ';' before '}' token
   13 |                         rank1 = mountain[i]
      |                                            ^
      |                                            ;
   14 |                 }
      |                 ~                           
main.c:17:44: error: expected ';' before '}' token
   17 |                         rank2 = mountain[i]
      |                                            ^
      |                                            ;
   18 |                 }
      |                 ~                           
main.c:26:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   26 |                 printf("%d %d %d", rank1, rank2, rank3);
      |                 ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:26:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   26 |                 printf("%d %d %d", rank1, rank2, rank3);
      |                 ^~~~~~
main.c:26:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main()
{
	int i,j;
	int rank1 = 0;
	int mountain[10] = {0};
	for (i = 0; i < 10; i++) {
		scanf_s("%d", &mountain[i]);
	}



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

			if (mountain[j] > mountain[i])
			{
				rank1 = mountain[i];
				mountain[i] = mountain[j];
				mountain[j] = rank1;
			}
		}
	}

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

		}
	
	


    return 0;
}

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

#include<stdio>

int main(){

int buf[10],i,j;

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

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

}


for(i=0;i<9;i++){
for(j=0;j<9-i;j++){

if(buf[i]

}
}


return 0;
}

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

#include<stdio>

int main(){

int buf[10],i,j,n;

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

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

}


for(i=0;i<9;i++){
for(j=0;j<9-i;j++){

if(buf[j]>buf[j+1]){
n=buf[j];
buf[j]=buf[j+1];
buf[j+1]=n;

}

}
}


printf("%d\n%d\n%d",buf[0],buf[1],buf[2]);

return 0;
}

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

#include<stdio.h>

int main(){

/*
int buf[10],i,j,n;

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

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

}
*/

for(i=0;i<9;i++){
for(j=0;j<9-i;j++){

if(buf[j]>buf[j+1]){
n=buf[j];
buf[j]=buf[j+1];
buf[j+1]=n;

}

}
}
buf[0]=1;

printf("%d\n%d\n%d\n",buf[0],buf[1],buf[2]);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:5: error: 'i' undeclared (first use in this function)
   15 | for(i=0;i<9;i++){
      |     ^
main.c:15:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:5: error: 'j' undeclared (first use in this function)
   16 | for(j=0;j<9-i;j++){
      |     ^
main.c:18:4: error: 'buf' undeclared (first use in this function)
   18 | if(buf[j]>buf[j+1]){
      |    ^~~
main.c:19:1: error: 'n' undeclared (first use in this function)
   19 | n=buf[j];
      | ^
Language: C

int main(void) {
	int i,h;
	int height[3];

	for(i=0; scanf("%d",&h) != EOF; i++) {
		if(h >= height[0]) h = height[0];
		else if(h >= height[1]) h = height[1];
		else if(h >= height[2]) h = height[2];
	}

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:18: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         for(i=0; scanf("%d",&h) != EOF; i++) {
      |                  ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void) {
main.c:5:18: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         for(i=0; scanf("%d",&h) != EOF; i++) {
      |                  ^~~~~
main.c:5:18: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:36: error: 'EOF' undeclared (first use in this function)
    5 |         for(i=0; scanf("%d",&h) != EOF; i++) {
      |                                    ^~~
main.c:5:36: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:5:36: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:28: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |         for(i=0; i<3; i++) printf("%d", height[i]);
      |                            ^~~~~~
main.c:11:28: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:28: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:28: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int main(){

int buf[10],i,j,n;

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

for(i=0;i<9;i++){
for(j=0;j<9-i;j++){

if(buf[j]<buf[j+1]){
bn=uf[j];
buf[j]=buf[j+1];
buf[j+1]=n;
}


}
}

printf("%d\n",buf[0);
printf("%d\n",buf[1);
printf("%d\n",buf[2);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:15:1: error: 'bn' undeclared (first use in this function); did you mean 'n'?
   15 | bn=uf[j];
      | ^~
      | n
main.c:15:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:4: error: 'uf' undeclared (first use in this function); did you mean 'buf'?
   15 | bn=uf[j];
      |    ^~
      |    buf
main.c:24:20: error: expected ']' before ')' token
   24 | printf("%d\n",buf[0);
      |                    ^
      |                    ]
main.c:25:20: error: expected ']' before ')' token
   25 | printf("%d\n",buf[1);
      |                    ^
      |                    ]
main.c:26:20: error: expected ']' before ')' token
   26 | printf("%d\n",buf[2);
      |                    ^
      |                    ]
Language: C

#include<stdio.h>

int main(){

int buf[10],i,j,n;

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

for(i=0;i<9;i++){
for(j=0;j<9-i;j++){

if(buf[j]<buf[j+1]){
n=uf[j];
buf[j]=buf[j+1];
buf[j+1]=n;
}


}
}

printf("%d\n",buf[0);
printf("%d\n",buf[1);
printf("%d\n",buf[2);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:15:3: error: 'uf' undeclared (first use in this function); did you mean 'buf'?
   15 | n=uf[j];
      |   ^~
      |   buf
main.c:15:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:20: error: expected ']' before ')' token
   24 | printf("%d\n",buf[0);
      |                    ^
      |                    ]
main.c:25:20: error: expected ']' before ')' token
   25 | printf("%d\n",buf[1);
      |                    ^
      |                    ]
main.c:26:20: error: expected ']' before ')' token
   26 | printf("%d\n",buf[2);
      |                    ^
      |                    ]
Language: C

#include<stdio.h>

int main(){

int buf[10],i,j,n;

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

for(i=0;i<9;i++){
for(j=0;j<9-i;j++){

if(buf[j]<buf[j+1]){
n=buf[j];
buf[j]=buf[j+1];
buf[j+1]=n;
}


}
}

printf("%d\n",buf[0);
printf("%d\n",buf[1);
printf("%d\n",buf[2);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:24:20: error: expected ']' before ')' token
   24 | printf("%d\n",buf[0);
      |                    ^
      |                    ]
main.c:25:20: error: expected ']' before ')' token
   25 | printf("%d\n",buf[1);
      |                    ^
      |                    ]
main.c:26:20: error: expected ']' before ')' token
   26 | printf("%d\n",buf[2);
      |                    ^
      |                    ]
Language: C

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

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

#include<stdio.h>
int main(void)
{
	int a,b,max= 0,max2=0,max3=0;
	for(a 1;a<=10;a++){
		scanf("%d",&b);
		if(b>max) {
			max=b;
		}
		else if(b>max2){
			max2=b;
		}
		else if(b>max3){
			max3=b;
		}
	}
		printf("%d\n %d\n %d\n",max,max2,max3);
		return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:14: error: expected ';' before numeric constant
    5 |         for(a 1;a<=10;a++){
      |              ^~
      |              ;
Language: C

#include<stdio.h>
int main(void)
{
     int a,b,max=0,max2=0,max3=0;
     for(a=1;a<=10;a++){
          scanf("%d",&a);
          if(b>max){[
               max=b;
          }
          else if(b>max2){
          max2=b;
          }
          else if(b>max3){
          max3=b;
          }
     }
     printf("%d\n %d\n %d\n",max,max2,max3);
     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:21: error: expected expression before '[' token
    7 |           if(b>max){[
      |                     ^
main.c:8:22: error: expected ';' before '}' token
    8 |                max=b;
      |                      ^
      |                      ;
    9 |           }
      |           ~
Language: C

#include<stdio.h>
int main(void)
{
     int a,b,max=0,max2=0,max3=0;
     for(a=1;a<=10;a++){
          scanf("%d",&a);
          if(b>max){
               ???max=b;
          }
          else if(b>max2){
          ?????????max2=b;
          }
          else if(b>max3){
          ?????????max3=b;
          }
     }
     printf("%d\n %d\n %d\n",max,max2,max3);
     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:16: error: expected expression before '?' token
    8 |                ???max=b;
      |                ^
main.c:11:11: error: expected expression before '?' token
   11 |           ?????????max2=b;
      |           ^
main.c:14:11: error: expected expression before '?' token
   14 |           ?????????max3=b;
      |           ^
Language: C

using System;

class AOJ{
  public static void Main(string[] args)
  {
    int[] n = new int[10];

    for(int i=0; i<10; i++)
      n[i] = int.Parse(str[i]);

    Array.Sort(n);

    for(int i=0; i<3; i++)
      Console.WriteLine(n[9-i]);
  }
}

Compiler output:
main.c:1:1: error: unknown type name 'using'
    1 | using System;
      | ^~~~~
main.c:3:1: error: unknown type name 'class'
    3 | class AOJ{
      | ^~~~~
main.c:3:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | class AOJ{
      |          ^
Language: C

#include<stdio.h>

int main(){

int t[10],i,j,tmp;

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


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

    }

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


    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:17: error: 'temp' undeclared (first use in this function); did you mean 'tmp'?
   14 |                 temp = t[j];
      |                 ^~~~
      |                 tmp
main.c:14:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){

int t[10],i,j,tmp;

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


    for (i = 0; i < 8; i++) {
        for (j = 8; j > i; j--) {
            if (t[j - 1] > t[j]) {  
                tmp = t[j];        
                t[j] = t[j - 1];
                t[j - 1]= temp;
            }
        }	

    }

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


    return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:16:27: error: 'temp' undeclared (first use in this function); did you mean 'tmp'?
   16 |                 t[j - 1]= temp;
      |                           ^~~~
      |                           tmp
main.c:16:27: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

void ShowData(int x[], int n);
void Swap(int x[], int i, int j);
void QSort(int x[], int left, int right);
void Input(int x[], int n);

int main()
{
	int hight[10] = {0};
	int i;
	Input(hight, 10);
	QSort(hight, 0, 9);
	
	for (i = 9; i >= 7; i--) {
		printf("%d\n", hight[i]);
	}

	return 0;
}

// ?????????????????¨???
void ShowData(int x[], int n)
{
	int i;
	for (i = 0; i < n; i++) {
		printf("%d ", x[i]);
	}
	printf("\n");
}

// ?????????????´??????????
void Swap(int x[], int i, int j)
{
	int temp;

	temp = x[i];
	x[i] = x[j];
	x[j] = temp;
}

// ?????????????????????
void QSort(int x[], int left, int right)
{
	int i, j;
	int pivot;
	
	i = left;
	j = right;

	pivot = x[(left + right) / 2];

	while (1) {
		while (x[i] < pivot) {
			i++;
		}
		while (x[j] > pivot) {
			j--;
		}
		if (i >= j) {
			break;
		}
		Swap(x, i, j);
		i++;
		j--;
	}

	if (left < i - 1)              /* ?????????????????? 2 ??\???????´????????????° */
		QSort(x, left, i - 1);     /* ??????????????? Q ??????????????? */
	if (j + 1 <  right)            /* ?????????????????? 2 ??\???????´????????????° */
		QSort(x, j + 1, right);    /* ??????????????? Q ??????????????? */
}

// ??\???
void Input(int x[], int n)
{
	int i;
	for (i = 0; i < n; i++) {
		scanf_s("%d", &x[i]);
	}
}

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

int main(void){

int i,j,max[3],dummy;

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

  scanf("%d",&n);

for(j=0;j<3;j++){
 if(n>max[j]){
   dummy=max[j];
   max[j]=n;
   n=dummy;
  }
 }
}

for(i=0;i<3i++){
printf("%d",max[j]);
}

}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   scanf("%d",&n);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |   scanf("%d",&n);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:15: error: 'n' undeclared (first use in this function)
    7 |   scanf("%d",&n);
      |               ^
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:13: error: lvalue required as increment operand
   18 | for(i=0;i<3i++){
      |             ^~
main.c:18:15: error: expected ';' before ')' token
   18 | for(i=0;i<3i++){
      |               ^
      |               ;
main.c:19:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   19 | printf("%d",max[j]);
      | ^~~~~~
main.c:19:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:19:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:19:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int main(){
	int i,j;
	int height[10];
	for(i=0;i<=9;i++)
		scanf("%d",&height[i]);
	for(i=0;i<=9;i++){
		int nam;
		for(j=1;j<=9;j++){
			if(height[i]<=height[j]){
				num=height[i];
				height[i]=height[j];
				heigth[j]=num;
			}
		}
	}
	for(i=0;i<=2;i++)
		printf("%d\n",height[i]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:33: error: 'num' undeclared (first use in this function); did you mean 'nam'?
   12 |                                 num=height[i];
      |                                 ^~~
      |                                 nam
main.c:12:33: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:33: error: 'heigth' undeclared (first use in this function); did you mean 'height'?
   14 |                                 heigth[j]=num;
      |                                 ^~~~~~
      |                                 height
Language: C

#include<stdio.h>

int main(){
	int i,j;
	int height[10];
	for(i=0;i<=9;i++)
		scanf("%d",&height[i]);
	for(i=0;i<=9;i++){
		int num;
		for(j=1;j<=9;j++){
			if(height[i]<=height[j]){
				num=height[i];
				height[i]=height[j];
				heigth[j]=num;
			}
		}
	}
	for(i=0;i<=2;i++)
		printf("%d\n",height[i]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:33: error: 'heigth' undeclared (first use in this function); did you mean 'height'?
   14 |                                 heigth[j]=num;
      |                                 ^~~~~~
      |                                 height
main.c:14:33: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main()
{
printf("hieght of muntain 1\n");
printf("hieght of montain 2\n");
printf("hieght of mountain 3\n);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:8: warning: missing terminating " character
    6 | printf("hieght of mountain 3\n);
      |        ^
main.c:6:8: error: missing terminating " character
    6 | printf("hieght of mountain 3\n);
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~
main.c:8:1: error: expected expression before 'return'
    8 | return 0;
      | ^~~~~~
main.c:8:10: error: expected ';' before '}' token
    8 | return 0;
      |          ^
      |          ;
    9 | }
      | ~
Language: C

# include <iostream>
# include <algorithm>
using namespace std;
int main()
{
  int h[10];
  for(int i=0;i<10;i++)
  {
    cin >> h[i];
  }

  sort(h,h+10);
  reverse(h,h+10);
  for(int i=0;i<3;i++)
  {
    cout << h[i] << endl;
  }

  return 0;
}

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

#include<stdio.h>

int main(void){
	int i,j,exc;
	int Yama[10],Rank[];

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

	for(i=0;i<=8;i++){
		for(j=i+1;j<=9;j++){
			if(Yama[i]<Yama[j]){
				exc=Yama[i];
				Yama[i]=Yama[j];
				Yama[j]=exc;
			}
		}
	}

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

Compiler output:
main.c: In function 'main':
main.c:5:22: error: array size missing in 'Rank'
    5 |         int Yama[10],Rank[];
      |                      ^~~~
Language: C

#include<stdio.h>
#define DATE 10
int main() {

int i,date[DATE],top[3]={0,0,0};

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

for(i=0;i<DATE;i++){
if(date[i]>=top[0]){
top[2]=top[1];
top[1]=top[0];
top[0]=date[i];
} else if(dtae[i]>=top[1]){
top[2]=top[1];
top[1]=date[i];
} else if(date[i]>=top[2]){
top[2]=date[i];
}
}

printf("%d\n%d\n%d\n",top[0],top[1],top[2]);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:11: error: 'dtae' undeclared (first use in this function); did you mean 'date'?
   16 | } else if(dtae[i]>=top[1]){
      |           ^~~~
      |           date
main.c:16:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void)
{
	int m1, m2, m3, a ,i;
	m1=m2=m3=0;
	for(i=1; i<11; i++){
	printf("?±±?????????%d???",i);
	scanf("%d", &a);
	if(m1<a){
		m3=m2;
		m2=m1;
		m1=a;
	}else if(m2<a){
		m3=m2;
		m2=a;
		}else if(m3<a){
			m3=a;
			}
		}	
		}
	}
	printf("%d\n%d\n%d\n", m1,m2,m3);
	return 0;
}	

Compiler output:
main.c:21:9: error: expected identifier or '(' before '}' token
   21 |         }
      |         ^
main.c:22:16: error: expected declaration specifiers or '...' before string constant
   22 |         printf("%d\n%d\n%d\n", m1,m2,m3);
      |                ^~~~~~~~~~~~~~
main.c:22:32: error: unknown type name 'm1'
   22 |         printf("%d\n%d\n%d\n", m1,m2,m3);
      |                                ^~
main.c:22:35: error: unknown type name 'm2'
   22 |         printf("%d\n%d\n%d\n", m1,m2,m3);
      |                                   ^~
main.c:22:38: error: unknown type name 'm3'
   22 |         printf("%d\n%d\n%d\n", m1,m2,m3);
      |                                      ^~
main.c:23:9: error: expected identifier or '(' before 'return'
   23 |         return 0;
      |         ^~~~~~
main.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^
Language: C

#include <stdio.h>
int main(void) {
	int i j;
	double max,x[10];
	for(j=0;j<10;j++);{
		scanf("%lf",&x[j]);
	}
	for(i=1;i<10;i++){
		for(j=i+1;j<10;j++){
			if(x[i]<x[j]){
				a=x[i];	
				x[i]=x[j];
				x[j]=a;
			}
			}
	}
	for(i=1;i<4;i++){
	printf("%d",x{i});
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'j'
    3 |         int i j;
      |               ^
main.c:3:15: error: 'j' undeclared (first use in this function)
main.c:3:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:13: error: 'i' undeclared (first use in this function)
    8 |         for(i=1;i<10;i++){
      |             ^
main.c:11:33: error: 'a' undeclared (first use in this function)
   11 |                                 a=x[i];
      |                                 ^
main.c:18:22: error: expected ')' before '{' token
   18 |         printf("%d",x{i});
      |               ~      ^
      |                      )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'j'
    3 |         int i j;
      |               ^
main.c:3:15: error: 'j' undeclared (first use in this function)
main.c:3:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:13: error: 'i' undeclared (first use in this function)
    8 |         for(i=1;i<10;i++){
      |             ^
main.c:11:33: error: 'a' undeclared (first use in this function)
   11 |                                 a=x[i];
      |                                 ^
main.c:18:24: error: expected ')' before '{' token
   18 |         printf("%d\n",x{i});
      |               ~        ^
      |                        )
Language: C

#include<stdio.h>
int main(void){
	int a,b;
	a=1;
	for(b = 1; b <= 9 ; b++){
		printf("%d x %d = %d\n", a, b, a*b);
	}
	a=2;
	for(b = 1; b <= 9 ; b++){
		printf("%d x %d = %d\n", a, b, a*b);
	}
	a=3;
	for(b = 1; b <= 9 ; b++){
		printf("%d x %d = %d\n", a, b, a*b);

Compiler output:
main.c: In function 'main':
main.c:14:17: error: expected declaration or statement at end of input
   14 |                 printf("%d x %d = %d\n", a, b, a*b);
      |                 ^~~~~~
main.c:14:17: error: expected declaration or statement at end of input