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

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

Compiler output:
main.c: In function 'main':
main.c:16:26: error: expected ')' before 'm1'
   16 |     printf("%d\n%d\n%d\n" m1, m2, m3);
      |           ~              ^~~
      |                          )
main.c:17:5: error: 'retrun' undeclared (first use in this function)
   17 |     retrun 0;
      |     ^~~~~~
main.c:17:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:11: error: expected ';' before numeric constant
   17 |     retrun 0;
      |           ^~
      |           ;
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C

#include <stdio.h>

int main(){

int n1,n2,n3,
b,c,d,e,f,g,h,i,l;


scanf(%d,&n1);
scanf(%d,&b);

if(n1<b){
n1=n2;
b=n1;
}
else{
b=n2;
}


scanf(%d,&c);
if(n1<c){
n2=n3;
n1=n2;
c=n1;
}
else if(n2<c){
n2=n3;
c=n2;
}
else{
c=n3;
}


scanf(%d,&d);

if(n1<d){
n2=n3;
n1=n2;
d=n1;
}
else if(n2<d){
n2=n3;
d=n2;
}
else if(n3<d){
d=n3;
}


scanf(%d,&e);

if(n1<e){
n2=n3;
n1=n2;
e=n1;
}
else if(n2<e){
n2=n3;
e=n2;
}
else if(n3<e){
e=n3;
}



scanf(%d,&f);
if(n1<f){
n2=n3;
n1=n2;
f=n1;
}
else if(n2<f){
n2=n3;
f=n2;
}
else if(n3<f){
f=n3;
}

scanf(%d,&g);
if(n1<g){
n2=n3;
n1=n2;
g=n1;
}
else if(n2<g){
n2=n3;
g=n2;
}
else if(n3<g){
g=n3;
}

scanf(%d,&h);
if(n1<h){
n2=n3;
n1=n2;
h=n1;
}
else if(n2<h){
n2=n3;
h=n2;
}
else if(n3<h){
h=n3;
}


scanf(%d,&i);
if(n1<i){
n2=n3;
n1=n2;
i=n1;
}
else if(n2<i){
n2=n3;
i=n2;
}
else if(n3<i){
i=n3;
}

scanf(%d,&j);
if(n1<j){
n2=n3;
n1=n2;
j=n1;
}
else if(n2<j){
n2=n3;
j=n2;
}
else if(n3<j){
j=n3;
}




printf(%d,n1);
printf(%d,n2)
printf(%d,n3)

return 0;}

Compiler output:
main.c: In function 'main':
main.c:9:7: error: expected expression before '%' token
    9 | scanf(%d,&n1);
      |       ^
main.c:10:7: error: expected expression before '%' token
   10 | scanf(%d,&b);
      |       ^
main.c:21:7: error: expected expression before '%' token
   21 | scanf(%d,&c);
      |       ^
main.c:36:7: error: expected expression before '%' token
   36 | scanf(%d,&d);
      |       ^
main.c:52:7: error: expected expression before '%' token
   52 | scanf(%d,&e);
      |       ^
main.c:69:7: error: expected expression before '%' token
   69 | scanf(%d,&f);
      |       ^
main.c:83:7: error: expected expression before '%' token
   83 | scanf(%d,&g);
      |       ^
main.c:97:7: error: expected expression before '%' token
   97 | scanf(%d,&h);
      |       ^
main.c:112:7: error: expected expression before '%' token
  112 | scanf(%d,&i);
      |       ^
main.c:126:7: error: expected expression before '%' token
  126 | scanf(%d,&j);
      |       ^
main.c:127:7: error: 'j' undeclared (first use in this function)
  127 | if(n1<j){
      |       ^
main.c:127:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:143:8: error: expected expression before '%' token
  143 | printf(%d,n1);
      |        ^
main.c:144:8: error: expected expression before '%' token
  144 | printf(%d,n2)
      |        ^
main.c:144:14: error: expected ';' before 'printf'
  144 | printf(%d,n2)
      |              ^
      |              ;
  145 | printf(%d,n3)
      | ~~~~~~
Language: C

#include <stdio.h>

int main(){

int n1,n2,n3,
b,c,d,e,f,g,h,i,l;


scanf("%d",&n1);
scanf("%d",&b);

if(n1<b){
n1=n2;
b=n1;
}
else{
b=n2;
}


scanf("%d",&c);
if(n1<c){
n2=n3;
n1=n2;
c=n1;
}
else if(n2<c){
n2=n3;
c=n2;
}
else{
c=n3;
}


scanf("%d",&d);

if(n1<d){
n2=n3;
n1=n2;
d=n1;
}
else if(n2<d){
n2=n3;
d=n2;
}
else if(n3<d){
d=n3;
}


scanf("%d",&e);

if(n1<e){
n2=n3;
n1=n2;
e=n1;
}
else if(n2<e){
n2=n3;
e=n2;
}
else if(n3<e){
e=n3;
}



scanf("%d",&f);
if(n1<f){
n2=n3;
n1=n2;
f=n1;
}
else if(n2<f){
n2=n3;
f=n2;
}
else if(n3<f){
f=n3;
}

scanf("%d",&g);
if(n1<g){
n2=n3;
n1=n2;
g=n1;
}
else if(n2<g){
n2=n3;
g=n2;
}
else if(n3<g){
g=n3;
}

scanf("%d",&h);
if(n1<h){
n2=n3;
n1=n2;
h=n1;
}
else if(n2<h){
n2=n3;
h=n2;
}
else if(n3<h){
h=n3;
}


scanf("%d",&i);
if(n1<i){
n2=n3;
n1=n2;
i=n1;
}
else if(n2<i){
n2=n3;
i=n2;
}
else if(n3<i){
i=n3;
}

scanf("%d",&j);
if(n1<j){
n2=n3;
n1=n2;
j=n1;
}
else if(n2<j){
n2=n3;
j=n2;
}
else if(n3<j){
j=n3;
}




printf("%d",n1);
printf("%d",n2);
printf("%d",n3);

return 0;}

Compiler output:
main.c: In function 'main':
main.c:126:13: error: 'j' undeclared (first use in this function)
  126 | scanf("%d",&j);
      |             ^
main.c:126:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

	return 0;

Compiler output:
main.c: In function 'main':
main.c:5:13: error: 'i' undeclared (first use in this function); did you mean 'id'?
    5 |         for(i=0;i<10;i++){
      |             ^
      |             id
main.c:5:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:25: error: 'd' undeclared (first use in this function); did you mean 'id'?
    6 |             scanf("%d",&d);
      |                         ^
      |                         id
main.c:12:16: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
   12 |            m[3]=m{2];
      |                ^
main.c:12:18: error: expected ';' before '{' token
   12 |            m[3]=m{2];
      |                  ^
      |                  ;
main.c:20:9: error: expected declaration or statement at end of input
   20 |         return 0;
      |         ^~~~~~
Language: C

#include <stdio.h>
????????????
int main() {
????????int data = 0;
????????int bakData = 0;
????????int first = 0;
????????int second = 0;
????????int third = 0;
????????
????????int i;
????????for(i = 0; i<10; i++) {
??????????????????????scanf("%d", &data);
??????????????????????if(bakData < data) {
??????????????????????????????if(first == 0) {
??????????????????????????????????????first = data;
??????????????????????????????} else if(second == 0) {
??????????????????????????????????????second = data;
??????????????????????????????} else if(third == 0) {
??????????????????????????????????????third = data;
??????????????????????????????}
??????????????????????}
??????????????????????bakData = data;
????????}
????????????
????????????????printf("%d", first);
????????????
????????????????printf("%d", second);
????
????????????????printf("%d", third);
??????????
????????return 0;
}

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ????????????
      | ^
Language: C

#include<stdio.h>

int main(){

	int x;
	int i;
	int max1 = 0;
	int max2 = 0;
	int max3 = 0;

	for(i=0;i<9;i++)
	{
		scanf("%d", &x);
		if( max1 >= x)
		{
			max3 = max2;
			max2 = max1;
			max1 = x;
		}
		else
		{
			if( max2 >= x)
			{
				max3 = max2;
				max2 = x;
			}
			else
			{
				if( max3 >= x)
				{
					max3 = x;
				}
			}
		}
	}
	print("%d\n%d\n%d",max1,max2,max3);

    return 0;
}

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

#include <iostream>
#include <algorithm>
 
using namespace std;
 
int main()
{
    vector<int> height(10);
    for (int i = 0; i < 10; i++) {
        cin >> height[i];
    }
    sort(height.begin(), height.end(), greater<int>());
    for (int i = 0; i < 3; i++) {
        cout << height[i] << 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 i;
	int height[10];

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

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

    return 0;
}

int s_sort(int *height)
{
	int i;
	int temp, flag;
	 
	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);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: implicit declaration of function 's_sort' [-Wimplicit-function-declaration]
   13 |         s_sort(height);
      |         ^~~~~~
main.c: In function 's_sort':
main.c:33:26: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
   33 |                     temp = height+i + 1;
      |                          ^
main.c:34:34: error: lvalue required as left operand of assignment
   34 |                     height+i + 1 = height+i;
      |                                  ^
main.c:35:30: error: lvalue required as left operand of assignment
   35 |                     height+i = temp;
      |                              ^
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:24:13: error: expected ';' before ':' token
   24 |     return 0:
      |             ^
      |             ;
Language: C

 {
   int a[10], n[10], max = 0;
    int i, s, j;
    int ans[3];

    for (i = 0; i < 10; i++){
      a[i] = 0;
    }

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


    for (j = 0; j < 3; j++){
      for (i = 0; i < 10; i++){
        if (max < n[i]){
          max = n[i];
          s = i;
        }
      }
//      puts("a");
      ans[j] = max;
      max = 0;
      a[s] = j + 1;
      n[s] = 0;
    }

    for (i = 0; i < 10; i++){
//      printf("n[%d]:%d\n", i, n[i]);
    }
/*
    for (i = 0; i < 3; i++){
      if (a[i] == 1){
        f = n[i];
      }
      else if (a[i] == 2){
        c = n[i];
      }
      else if (a[i] == 3){
        t = n[i];
      }
      else {

      }
    }

    printf("%d\n%d\n%d\n\n", f, c, t);
*/
    for (i = 0; i < 3; i++){
      printf("%d\n", ans[i]);
    }

    return (0);

 }

Compiler output:
main.c:1:2: error: expected identifier or '(' before '{' token
    1 |  {
      |  ^
Language: C

#include <stdio.h>

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

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

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

Compiler output:
main.c: In function 'main':
main.c:30:1: error: expected declaration or statement at end of input
   30 | a=0;
      | ^
Language: C

#include <stdio.h>

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

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

Compiler output:
main.c:22:2: error: stray '#' in program
   22 | }#include <stdio.h>
      |  ^
main.c:22:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   22 | }#include <stdio.h>
      |           ^
Language: C

#include<stdio.h>

int main(){
    int i,j;
    int h[10];
    int max=0;
    int t;
    int n;

    for(i=0;i<10;i++){
        scanf("%d",&h[i]);
    }
    
    for(i=0;i<3;i++){
         for(j=i;j<10;j++){
             if(h[i] > max]){
                 max = h[i];
                 n = i;
             }
             t = h[i];
             h[i] = max;
             h[n] = t;

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

Compiler output:
main.c: In function 'main':
main.c:16:27: error: expected ')' before ']' token
   16 |              if(h[i] > max]){
      |                ~          ^
      |                           )
main.c:16:27: error: expected statement before ']' token
main.c:16:28: error: expected statement before ')' token
   16 |              if(h[i] > max]){
      |                            ^
main.c:31:1: error: expected declaration or statement at end of input
   31 | }
      | ^
Language: C

#include<stdio.h>

int main(){
    int i,j;
    int h[10];
    int max=0;
    int t;
    int n;

    for(i=0;i<10;i++){
        scanf("%d",&h[i]);
    }
    
    for(i=0;i<3;i++){
         for(j=i;j<10;j++){
             if(h[i] > max]){
                 max = h[i];
                 n = i;
             }
             t = h[i];
             h[i] = max;
             h[n] = t;

             max=0;
             n = 0;
          }
    }

}

Compiler output:
main.c: In function 'main':
main.c:16:27: error: expected ')' before ']' token
   16 |              if(h[i] > max]){
      |                ~          ^
      |                           )
main.c:16:27: error: expected statement before ']' token
main.c:16:28: error: expected statement before ')' token
   16 |              if(h[i] > max]){
      |                            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:27: error: expected ')' before ']' token
   16 |              if(h[i] > max]){
      |                ~          ^
      |                           )
main.c:16:27: error: expected statement before ']' token
main.c:16:28: error: expected statement before ')' token
   16 |              if(h[i] > max]){
      |                            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:13: error: too few arguments to function 'getc'
   11 |         n = getc()
      |             ^~~~
In file included from main.c:1:
/usr/include/stdio.h:576:12: note: declared here
  576 | extern int getc (FILE *__stream) __nonnull ((1));
      |            ^~~~
main.c:11:19: error: expected ';' before 'h'
   11 |         n = getc()
      |                   ^
      |                   ;
   12 |         h[i] = n;
      |         ~
Language: C

#include<stdio.h>
#define N 10
int main()
{
int i,j,idx,tmp,data[N];
for(i=0;i<N;i++)
{
scanf("%d",&data[i]);
}

for(i=0;i<3;i++)
{
idx=i;
for(j=i+1;j<N;j++)
{
if(data[j]>data[idx])
idx=j;
}

tmp=data[i];
data[i]=data[idx];
data[idx]=tmp;
}

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

Compiler output:
main.c: In function 'main':
main.c:28:9: error: invalid suffix "；" on integer constant
   28 | }return 0；
      |         ^~~
main.c:28:12: error: expected ';' before '}' token
   28 | }return 0；
      |            ^
      |            ;
   29 | }
      | ~
Language: C

#include<bits/stdc++.h>

using namespace std;

int a[20];

int main() 
{
	for(int i=1;i<=10;++i)
		scanf("%d",&a[i]);
	sort(&a[1],&a[11]);
	printf("%d\n%d\n%d\n",a[10],a[9],a[8]); 
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 <cstdio>
#include <algorithm>

using namespace std;

int a[20];
int main()
{
    for (int i = 1; i <= 10; ++i)
    scanf("%d", &a[i]);
    sort(a+1, a+11);
    printf("%d\n%d\n%d\n", a[10], a[9], a[8]);
    return 0;
}

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

#include<cstdio>
#include<iostream>
#include<cstdlib>
#include<algorithm>
using namespace std;
int main()
{
	int a[10];
	for(int i=0;i<10;i++)cin>>a[i];
	sort(a,a+10);
	cout<<a[9]<<endl<<a[8]<<endl<<a[7]<<endl;
	return 0;
}

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

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

#define NUM_DATA 10
#define SHOW_NUM 3

int BubSort(int x[ ], int n)
{
    int i, j, temp;

    for (i = 0; i < n - 1; i++) {
        for (j = n - 1; j > i; j--) {
            if (x[j - 1] < x[j]) {
                temp = x[j];
                x[j] = x[j - 1];
                x[j - 1]= temp;
            }
        }
    }
}
void ShowData(int x[ ], int n)
{
    int i;

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

void main(void)
{
    int x[LINE_BUF_SIZE];

    for (int i = 0; i < NUM_DATA; i++) {
        int n;
        scanf("%d", &n);
        x[i] = n;
    }

    BubSort(x, NUM_DATA);
    ShowData(x, SHOW_NUM);
}

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

#include<stdio.h>
??
void swap(int *x,int *y){
????????????????int temp;
??
????????????????temp=*x;
????????????????*x=*y;
????????????????*y=temp;
??
}
??
int main(void){
????????????????int i,j,k;
????????????????int height[10];
??
????????????????i=0;
??
????????????????while(scanf("%d",&height[i])==1){
????????????????????????????????i++;
????????????????????????????????if(i==10) break;
????????????????}
??
??
????????????????for(j=0;j<10;j++){
????????????????????????????????if(height[j]<0 || height[j]>10000){
????????????????????????????????????????????????height[j]=0;
????????????????????????????????}
????????????????}
??
??
??
????????????????for(i=0;i<10;i++){
????????????????????????????????for(j=0;j<10;j++){
????????????????????????????????????????????????if(height[i]<height[j]){
????????????????????????????????????????????????swap(&height[i],&height[j]);
????????????????????????????????????????????????}
????????????????????????????????}
????????????????}???????????? /*sort*/
??
????????????????printf("\n");
??
????????????????k=9;
??
??
????????????????while(1){
????????????????????????????????printf("%d\n",height[k]);
????????????????????????????????k--;
????????????????????????????????if(k==6) break;
????????????????}
??
??
??
??
????????????????return 0;
}

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
main.c:11:1: error: expected identifier or '(' before '?' token
   11 | ??
      | ^
Language: C

#include<stdio.h>

int main(){
   int i, j, mountains[10], temp, number=1, error=0;

   for(i=0; i<=9; i++){
      printf("Height of Mountain %d : ", number);
      scanf(" %d", &mountains[i]);
      if((0 > mountains[i]) || (mountains[i] > 10000)){
         error++;
         break;
      }
      number++;
   }

   if(error = 0){
      for(i=0; i<=9; i++){
         for(j=i; j<=9; j++){
            if(mountains[i] < mountains[j]){
               temp = mountains[i];
               mountains[i] = mountains[j];
               mountains[j] = temp;
            }
         }
      }
      
      for(i=0; i<=9; i++){
         printf("%d", mountain[i]);
      }
   }

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:28:23: error: 'mountain' undeclared (first use in this function); did you mean 'mountains'?
   28 |          printf("%d", mountain[i]);
      |                       ^~~~~~~~
      |                       mountains
main.c:28:23: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main(){
    int i,top1,top2,top3,b,c;
    int val[10];
    
    for(i = 0; i < 10; i++){
        scanf("%d", &val[i]);
    }
 top1=val[0];
for(i=0 ; i<10;i++){
if(top1-val[i]>0){
b=a[i]
c=i
}
}
top1=b;
val[c]=0
b=0;

top2=val[0];
for(i=0 ; i<10;i++){
if(top2-val[i]>0){
b=val[i]
c=i
}
}
top2=b;
val[c]=0
b=0;

top3=val[0];
for(i=0 ; i<10;i++){
if(top3-val[i]>0){
b=val[i]
c=i
}
}
top3=b;
printf("%d\n%d\n%d\n",top1,top2,top3);
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:3: error: 'a' undeclared (first use in this function)
   14 | b=a[i]
      |   ^
main.c:14:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:7: error: expected ';' before 'c'
   14 | b=a[i]
      |       ^
      |       ;
   15 | c=i
      | ~      
main.c:19:9: error: expected ';' before 'b'
   19 | val[c]=0
      |         ^
      |         ;
   20 | b=0;
      | ~        
main.c:25:9: error: expected ';' before 'c'
   25 | b=val[i]
      |         ^
      |         ;
   26 | c=i
      | ~        
main.c:30:9: error: expected ';' before 'b'
   30 | val[c]=0
      |         ^
      |         ;
   31 | b=0;
      | ~        
main.c:36:9: error: expected ';' before 'c'
   36 | b=val[i]
      |         ^
      |         ;
   37 | c=i
      | ~
Language: C

int main(){
    int i,top1,top2,top3,b,c;
    int val[10];
    
  val[10]={1819,2003,876,2840,1723,1673,3776,2848,1592,922};
 top1=val[0];
for(i=0 ; i<10;i++){
if(top1-val[i]>0){
b=val[i];
c=i;
}
}
top1=b;
val[c]=0;
b=0;

top2=val[0];
for(i=0 ; i<10;i++){
if(top2-val[i]>0){
b=val[i];
c=i;
}
}
top2=b;
val[c]=0;
b=0;

top3=val[0];
for(i=0 ; i<10;i++){
if(top3-val[i]>0){
b=val[i];
c=i;
}
}
top3=b;
printf("%d\n%d\n%d\n",top1,top2,top3);
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:11: error: expected expression before '{' token
    5 |   val[10]={1819,2003,876,2840,1723,1673,3776,2848,1592,922};
      |           ^
main.c:36:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   36 | printf("%d\n%d\n%d\n",top1,top2,top3);
      | ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:36:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   36 | printf("%d\n%d\n%d\n",top1,top2,top3);
      | ^~~~~~
main.c:36:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

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

for(i=0;i<9;i++){
 for(j=0;j<9-i,j++){
if(val[j]<val[j+1])
t=val[j];
val[j]=val[j+1];
val[j+1]=t;
}
}
}
for(i=0;i<3;i++)
{
printf("%d\n",val[i]);
}
 
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected identifier or '(' before ',' token
    5 | int i,j,,a,val[10];
      |         ^
main.c:7:13: error: 'val' undeclared (first use in this function)
    7 | scanf("%d",&val[i]);
      |             ^~~
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:19: error: expected ';' before ')' token
   11 |  for(j=0;j<9-i,j++){
      |                   ^
      |                   ;
main.c:13:1: error: 't' undeclared (first use in this function)
   13 | t=val[j];
      | ^
main.c: At top level:
main.c:19:1: error: expected identifier or '(' before 'for'
   19 | for(i=0;i<3;i++)
      | ^~~
main.c:19:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   19 | for(i=0;i<3;i++)
      |          ^
main.c:19:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   19 | for(i=0;i<3;i++)
      |              ^~
main.c:24:1: error: expected identifier or '(' before 'return'
   24 | return 0;
      | ^~~~~~
main.c:25:1: error: expected identifier or '(' before '}' token
   25 | }
      | ^
Language: C

#include <stdio.h>

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

for(i=0;i<9;i++){
 for(j=0;j<9-i;j++){
if(val[j]<val[j+1])
t=val[j];
val[j]=val[j+1];
val[j+1]=t;
}
}
}
for(i=0;i<3;i++){
printf("%d\n",val[i]);
}
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected identifier or '(' before ',' token
    4 | int i,j,,a,t
      |         ^
main.c:7:13: error: 'val' undeclared (first use in this function)
    7 | scanf("%d",&val[i]);
      |             ^~~
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:1: error: 't' undeclared (first use in this function)
   13 | t=val[j];
      | ^
main.c: At top level:
main.c:19:1: error: expected identifier or '(' before 'for'
   19 | for(i=0;i<3;i++){
      | ^~~
main.c:19:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   19 | for(i=0;i<3;i++){
      |          ^
main.c:19:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   19 | for(i=0;i<3;i++){
      |              ^~
main.c:22:2: error: expected identifier or '(' before 'return'
   22 |  return 0;
      |  ^~~~~~
main.c:23:1: error: expected identifier or '(' before '}' token
   23 | }
      | ^
Language: C

#include <stdio.h>

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

for(i=0;i<9;i++){
 for(j=0;j<9-i;j++){
if(val[j]<val[j+1])
t=val[j];
val[j]=val[j+1];
val[j+1]=t;
}
}
}
for(i=0;i<3;i++){
printf("%d\n",val[i]);
}
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected identifier or '(' before ',' token
    4 | int i,j,,a,t;
      |         ^
main.c:13:1: error: 't' undeclared (first use in this function)
   13 | t=val[j];
      | ^
main.c:13:1: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:19:1: error: expected identifier or '(' before 'for'
   19 | for(i=0;i<3;i++){
      | ^~~
main.c:19:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   19 | for(i=0;i<3;i++){
      |          ^
main.c:19:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   19 | for(i=0;i<3;i++){
      |              ^~
main.c:22:2: error: expected identifier or '(' before 'return'
   22 |  return 0;
      |  ^~~~~~
main.c:23:1: error: expected identifier or '(' before '}' token
   23 | }
      | ^
Language: C

#include <stdio.h>

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

for(i=0;i<9;i++){
 for(j=0;j<9-i;j++){
if(val[j]<val[j+1]){
t=val[j];
val[j]=val[j+1];
val[j+1]=t;
}
}
}
for(i=0;i<3;i++){
printf("%d\n",val[i]);
}
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected identifier or '(' before ',' token
    4 | int i,j,,a,t;
      |         ^
main.c:13:1: error: 't' undeclared (first use in this function)
   13 | t=val[j];
      | ^
main.c:13:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int comp(int *self, int *other){
    return *other - *self;
}

int main(){
    int i;
    int val[10];
    
    for(i = 0; i < 10; ++i){
        scanf("%d", &val[i]);
    }
    
    qsort(val, 10, sizeof(int), (int(*)(const void*, const void*))comp);
    
    for(i = 0; i < 3; ++i){
        printf("%d\n", val[i]);
    }
    
    return 0;
}?????????

Compiler output:
main.c:23:2: error: expected identifier or '(' before '?' token
   23 | }?????????
      |  ^
Language: C

#include<stdio.h>
int main(void){
  int height[10];
  int i;
  int max1=0;
  int max2=0;
  int max3=0;

for(i=0;i<10;i++){
  scanf("%d",&height[i]);
  if(height[i]>max1){
  	  max2=max1;
      max1=height[i];  
    }else if(height[i]>max2){
      max3=max2;
      max2=height[i];
    }else if(height[i]>max3){
      max3=height[i];
    }
  }
  printf("???????????????????±±?????????%d\n???????????????????±±?????????%d\n???
  ????????????????±±?????????%d\n",max1,max2,max3);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:10: warning: missing terminating " character
   21 |   printf("???????????????????±±?????????%d\n???????????????????±±?????????%d\n???
      |          ^
main.c:21:10: error: missing terminating " character
   21 |   printf("???????????????????±±?????????%d\n???????????????????±±?????????%d\n???
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:22:3: error: expected expression before '?' token
   22 |   ????????????????±±?????????%d\n",max1,max2,max3);
      |   ^
main.c:22:19: error: stray '\302' in program
   22 |   ????????????????<U+00B1><U+00B1>?????????%d\n",max1,max2,max3);
      |                   ^~~~~~~~
main.c:22:20: error: stray '\302' in program
   22 |   ????????????????<U+00B1><U+00B1>?????????%d\n",max1,max2,max3);
      |                           ^~~~~~~~
main.c:22:32: error: stray '\' in program
   22 |   ????????????????±±?????????%d\n",max1,max2,max3);
      |                                ^
main.c:22:34: warning: missing terminating " character
   22 |   ????????????????±±?????????%d\n",max1,max2,max3);
      |                                  ^
main.c:22:34: error: missing terminating " character
   22 |   ????????????????±±?????????%d\n",max1,max2,max3);
      |                                  ^~~~~~~~~~~~~~~~~~
main.c:23:10: error: expected ';' before '}' token
   23 | return 0;
      |          ^
      |          ;
   24 | }
      | ~
Language: C

#include<stdio.h>
int main(void){
  int height[10];
  int i;
  int max1=0;
  int max2=0;
  int max3=0;
  int accept;
for(i=0;i<10;i++){
  for(accept=0;accept<1;accept++){
    scanf("%d",&height[i]);
    if(height[i]<0){
      height[i]=0;
    }else if(height[i]>10000)
      height[i]=10000;
  }
  if(height[i]>=max1){
  	  max2=max1;
      max1=height[i];  
    }else if(height[i]>=max2){
      max3=max2;
      max2=height[i];
    }else if(height[i]>=25
    max3){
      max3=height[i];
    }
  }
  printf("%d\n%d\n%d\n",max1,max2,max3);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:27: error: expected ')' before 'max3'
   23 |     }else if(height[i]>=25
      |             ~             ^
      |                           )
   24 |     max3){
      |     ~~~~
Language: C

#include<stdio.h>

int main(void){
int i;
int height[10];
int temp, flag;
??
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);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected expression before '?' token
    7 | ??
      | ^
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,i,n;

  a=0;
  b=0;
  c=0;

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

Compiler output:
main.c: In function 'main':
main.c:16:12: error: expected ';' before 'else'
   16 | if(b<n) b=n
      |            ^
      |            ;
   17 | else{}
      | ~~~~
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,i,n;

  a=0;
  b=0;
  c=0;

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

Compiler output:
main.c: In function 'main':
main.c:17:12: error: expected ';' before 'else'
   17 | if(b<n) b=n
      |            ^
      |            ;
   18 | else
      | ~~~~        
main.c: At top level:
main.c:23:8: error: expected declaration specifiers or '...' before string constant
   23 | printf("%d\n%d\n%d",a,b,c);
      |        ^~~~~~~~~~~~
main.c:23:21: error: unknown type name 'a'
   23 | printf("%d\n%d\n%d",a,b,c);
      |                     ^
main.c:23:23: error: unknown type name 'b'
   23 | printf("%d\n%d\n%d",a,b,c);
      |                       ^
main.c:23:25: error: unknown type name 'c'
   23 | printf("%d\n%d\n%d",a,b,c);
      |                         ^
main.c:24:1: error: expected identifier or '(' before 'return'
   24 | return 0;
      | ^~~~~~
main.c:25:1: error: expected identifier or '(' before '}' token
   25 | }
      | ^
Language: C

#include<stdio.h>

int main()
{
  int a,b,c,i,n;

  a=0;
  b=0;
  c=0;

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

Compiler output:
main.c:23:8: error: expected declaration specifiers or '...' before string constant
   23 | printf("%d\n%d\n%d",a,b,c);
      |        ^~~~~~~~~~~~
main.c:23:21: error: unknown type name 'a'
   23 | printf("%d\n%d\n%d",a,b,c);
      |                     ^
main.c:23:23: error: unknown type name 'b'
   23 | printf("%d\n%d\n%d",a,b,c);
      |                       ^
main.c:23:25: error: unknown type name 'c'
   23 | printf("%d\n%d\n%d",a,b,c);
      |                         ^
main.c:24:1: error: expected identifier or '(' before 'return'
   24 | return 0;
      | ^~~~~~
main.c:25:1: error: expected identifier or '(' before '}' token
   25 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
	int yama[10],i,j;
	for(i=0;i<10;i++){
		scanf("%d",yamja[i]);
	}
	for(i=0;i<10;i++){
		for(j=0;j<10;j++){
			if(yama[i]>yama[j]){
				a=yama[i];
                                yama[i]=yama[j];
                                yama[j]=a;
}
}
}
for(i=0;i<3;i++){
printf("%d\n",yama[i]);
}

Compiler output:
main.c: In function 'main':
main.c:7:28: error: 'yamja' undeclared (first use in this function); did you mean 'yama'?
    7 |                 scanf("%d",yamja[i]);
      |                            ^~~~~
      |                            yama
main.c:7:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:33: error: 'a' undeclared (first use in this function)
   12 |                                 a=yama[i];
      |                                 ^
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

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

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

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

Compiler output:
main.c:9:9: warning: data definition has no type or storage class
    9 |         i = 0;
      |         ^
main.c:9:9: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:10:9: error: expected identifier or '(' before 'while'
   10 |         while(i < 10){
      |         ^~~~~
main.c:20:16: error: expected declaration specifiers or '...' before string constant
   20 |         printf("%d\n%d\n%d\n",hillsHight[9],hillsHight[8],hillsHight[7]);
      |                ^~~~~~~~~~~~~~
main.c:20:31: error: unknown type name 'hillsHight'
   20 |         printf("%d\n%d\n%d\n",hillsHight[9],hillsHight[8],hillsHight[7]);
      |                               ^~~~~~~~~~
main.c:20:45: error: unknown type name 'hillsHight'
   20 |         printf("%d\n%d\n%d\n",hillsHight[9],hillsHight[8],hillsHight[7]);
      |                                             ^~~~~~~~~~
main.c:20:59: error: unknown type name 'hillsHight'
   20 |         printf("%d\n%d\n%d\n",hillsHight[9],hillsHight[8],hillsHight[7]);
      |                                                           ^~~~~~~~~~
main.c:21:9: error: expected identifier or '(' before 'return'
   21 |         return 0;
      |         ^~~~~~
main.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^
Language: C

#include<stdio.h>
int main()
{
    int n;
    int h1,h2,h3;
    h1=h2=h3=-1;
    while(n--)
    {
        scanf("%d",&n);
        if(h1=<n)
        {
           h3=h2;
           h2=h1;
           h1=n; 
        }
            
        else if(h2=<n)
        {
            h3=h2;
            h2=n;
        }
            
        else if(h3=<n)
            h3=n;
        
    }
    printf("%d\n%d\n%d",h1,h2,h3);
   
}

Compiler output:
main.c: In function 'main':
main.c:10:15: error: expected expression before '<' token
   10 |         if(h1=<n)
      |               ^
main.c:17:20: error: expected expression before '<' token
   17 |         else if(h2=<n)
      |                    ^
main.c:23:20: error: expected expression before '<' token
   23 |         else if(h3=<n)
      |                    ^
Language: C

#include<stdio.h>

int main(){
    int i,height[10]={0};
    int top[3]={0};
    for(i=0;i<10;i++){
        scanf("%d",&height[i]);
        if(top[0]<height[i])top[0]=height[i];
        else if(top[1]<hegith[i])top[1]=height[i];
        else if(top[2]<hegith[i])top[2]=height[i];
    }
    for(i=0;i<3;i++)printf("%d",top[i]);
}

Compiler output:
main.c: In function 'main':
main.c:9:24: error: 'hegith' undeclared (first use in this function); did you mean 'height'?
    9 |         else if(top[1]<hegith[i])top[1]=height[i];
      |                        ^~~~~~
      |                        height
main.c:9:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main()
{
  int i,j,a;
  int v[10];

  for ( i = 0; i < 10; i++) {}
    printf("?±±?????????%d\n", i+1);
    scanf("%d\n",&v[i]);
  }
  for (size_t i = 0; i < 10; i++) {
    for(j=i+1;j<10;++j){
      if(v[i]<v[j]){
      int  temp=v[i];
        v[j]=v[i];
        v[i]=temp;


      }
      for (a = 0;  a< 3;a ++)
        /* code */

      printf("?????????????±±???%d\n",v[a] );
    }

  }





}

Compiler output:
main.c:12:3: error: expected identifier or '(' before 'for'
   12 |   for (size_t i = 0; i < 10; i++) {
      |   ^~~
main.c:12:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   12 |   for (size_t i = 0; i < 10; i++) {
      |                        ^
main.c:12:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   12 |   for (size_t i = 0; i < 10; i++) {
      |                               ^~
main.c:33:1: error: expected identifier or '(' before '}' token
   33 | }
      | ^
Language: C

#include<stdio.h>
#include<cstring>
#include<stdlib.h>
#include<math.h>
#include<iostream>
#include<algorithm>
#include<functional>
#include<string>
#include<vector>
#include<map>
#include<queue>
#include<set>
#include<stack>
#define ll long long
#define scan(a) scanf("%d",&a)
#define mem(a,b) memset(a,b,sizeof(a))
#define sy system("pause")
using namespace std;

const int MOD = 1000000000 + 7;
const int INF = 0x3f3f3f3f;
const int maxn = 300050;
/*--------------------------------------------------------*/

bool cmp(int i, int j){ return i > j; }

int main(){
	int a[100];
	for (int i = 0; i < 10; i++){
		cin >> a[i];
	}
	sort(a, a + 10, cmp);
	cout << a[0] << "\n" << a[1] <<"\n"<< a[2] << "\n";
	//system("pause");
	return 0;
}

/*
1000000000000000000 1000000000000000000

*/

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

#include <stdio.h>

int main(void) {
    int i;
    int hight[9];
    int first = 0,second = 0,third = 0;
    for(i=0 ; i<=9 ; i++){
        scanf("%d\n",&hight[i]);
        if(first < hight[i]){
            third = second ;
            second = first  
            first = hight[i];    
        }
        if(first > hight[i] && second < hight[i]){
            second = firest ;
            second = hight[i];
        }
        if(second > hight[i] && thied < hight[i]){
            third = hight[i];
        }
        }
    printf("%d\n%d\n%d\n",first,second,thrid );
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:27: error: expected ';' before 'first'
   11 |             second = first
      |                           ^
      |                           ;
   12 |             first = hight[i];
      |             ~~~~~          
main.c:15:22: error: 'firest' undeclared (first use in this function); did you mean 'first'?
   15 |             second = firest ;
      |                      ^~~~~~
      |                      first
main.c:15:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:33: error: 'thied' undeclared (first use in this function); did you mean 'third'?
   18 |         if(second > hight[i] && thied < hight[i]){
      |                                 ^~~~~
      |                                 third
main.c:22:40: error: 'thrid' undeclared (first use in this function); did you mean 'third'?
   22 |     printf("%d\n%d\n%d\n",first,second,thrid );
      |                                        ^~~~~
      |                                        third
Language: C

#include <stdio.h>

int main(void) {
    int i;
    int hight[9];
    int first = 0,second = 0,third = 0;
    for(i=0 ; i<=9 ; i++){
        scanf("%d\n",&hight[i]);
        if(first < hight[i]){
            third = second;
            second = first;
            first = hight[i];    
        }
        if(first > hight[i] && second < hight[i]){
            second = firest;
            second = hight[i];
        }
        if(second > hight[i] && thied < hight[i]){
            third = hight[i];
        }
        }
    printf("%d\n%d\n%d\n",first,second,thrid );
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:22: error: 'firest' undeclared (first use in this function); did you mean 'first'?
   15 |             second = firest;
      |                      ^~~~~~
      |                      first
main.c:15:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:33: error: 'thied' undeclared (first use in this function); did you mean 'third'?
   18 |         if(second > hight[i] && thied < hight[i]){
      |                                 ^~~~~
      |                                 third
main.c:22:40: error: 'thrid' undeclared (first use in this function); did you mean 'third'?
   22 |     printf("%d\n%d\n%d\n",first,second,thrid );
      |                                        ^~~~~
      |                                        third
Language: C

#include <stdio.h>

int main(void) {
    int i;
    int hight[9];
    int first = 0,second = 0,third = 0;
    for(i=0 ; i<=9 ; i++){
        scanf("%d\n",&hight[i]);
        if(first < hight[i]){
            third = second;
            second = first;
            first = hight[i];    
        }
        if(first > hight[i] && second < hight[i]){
            third = second;
            second = hight[i];
        }
        if(second > hight[i] && thied < hight[i]){
            third = hight[i];
        }
        }
    printf("%d\n%d\n%d\n",first,second,thrid );
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:33: error: 'thied' undeclared (first use in this function); did you mean 'third'?
   18 |         if(second > hight[i] && thied < hight[i]){
      |                                 ^~~~~
      |                                 third
main.c:18:33: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:40: error: 'thrid' undeclared (first use in this function); did you mean 'third'?
   22 |     printf("%d\n%d\n%d\n",first,second,thrid );
      |                                        ^~~~~
      |                                        third
Language: C

#include<stdio.h>

int main(void){
 int i;
 int top1 = 0, top2 = 0, top3 = 0;
 int height[];
 
 for(i = 0; i < 10; i++){
  printf("?±±?????????"); scanf("%d", &height[i]);
  if(height[i] > top1){
   top3 = top2;
   top2 = top1;
   top1 = height[i];
  }else if(height[i] > top2){
   top3 = top2;
   top2 = height[i];
  }else if(height[i] > top3){
   top = height[i];
  }
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:6: error: array size missing in 'height'
    6 |  int height[];
      |      ^~~~~~
main.c:18:4: error: 'top' undeclared (first use in this function); did you mean 'top3'?
   18 |    top = height[i];
      |    ^~~
      |    top3
main.c:18:4: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void){
 int i, height;
 int top[3] = {0};
 
 for(i = 0; i < 10; i++){
  printf("?±±?????????"); scanf("%d", &height);
  if(height > top[0]){
   top[2] = top[1];
   top[1] = top[0];
   top[0] = height;
  }else if(height > top[1]){
   top[2] = top[1];
   top[1] = height;
  }else if(height > top[2]){
   top[2] = height;
  }
 }
 for(i= 0; i < 3 i++){
  printf("%d????????????????±±?????????%d\n", i + 1, top[i]);
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:17: error: expected ';' before 'i'
   20 |  for(i= 0; i < 3 i++){
      |                 ^~
      |                 ;