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

a[],i;
c(int*a){a=*1[&a]-*a;}
main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||return(!printf("%d\n%d\n%d\n",*a,a[1],a[2]));}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a[],i;
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:5: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
    1 | a[],i;
      |     ^
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | c(int*a){a=*1[&a]-*a;}
      | ^
main.c: In function 'c':
main.c:2:11: error: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    2 | c(int*a){a=*1[&a]-*a;}
      |           ^
main.c: At top level:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||return(!printf("%d\n%d\n%d\n",*a,a[1],a[2]));}
      | ^~~~
main.c: In function 'main':
main.c:3:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||return(!printf("%d\n%d\n%d\n",*a,a[1],a[2]));}
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a[],i;
main.c:3:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||return(!printf("%d\n%d\n%d\n",*a,a[1],a[2]));}
      |         ^~~~~
main.c:3:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:35: error: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
    3 | main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||return(!printf("%d\n%d\n%d\n",*a,a[1],a[2]));}
      |                                   ^~~~~
main.c:3:53: error: expected expression before 'return'
    3 | main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||return(!printf("%d\n%d\n%d\n",*a,a[1],a[2]));}
      |                                                     ^~~~~~
main.c: At top level:
main.c:1:1: warning: array 'a' assumed to have one element
    1 | a[],i;
      | ^
Language: C

a[],i;
c(int*a){a=*1[&a]-*a;}
main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||(!printf("%d\n%d\n%d\n",*a,a[1],a[2]),return 0);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a[],i;
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:5: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
    1 | a[],i;
      |     ^
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | c(int*a){a=*1[&a]-*a;}
      | ^
main.c: In function 'c':
main.c:2:11: error: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    2 | c(int*a){a=*1[&a]-*a;}
      |           ^
main.c: At top level:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||(!printf("%d\n%d\n%d\n",*a,a[1],a[2]),return 0);}
      | ^~~~
main.c: In function 'main':
main.c:3:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||(!printf("%d\n%d\n%d\n",*a,a[1],a[2]),return 0);}
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a[],i;
main.c:3:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||(!printf("%d\n%d\n%d\n",*a,a[1],a[2]),return 0);}
      |         ^~~~~
main.c:3:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:35: error: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
    3 | main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||(!printf("%d\n%d\n%d\n",*a,a[1],a[2]),return 0);}
      |                                   ^~~~~
main.c:3:55: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    3 | main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||(!printf("%d\n%d\n%d\n",*a,a[1],a[2]),return 0);}
      |                                                       ^~~~~~
main.c:3:55: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:3:55: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:3:55: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:3:91: error: expected expression before 'return'
    3 | main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||(!printf("%d\n%d\n%d\n",*a,a[1],a[2]),return 0);}
      |                                                                                           ^~~~~~
main.c: At top level:
main.c:1:1: warning: array 'a' assumed to have one element
    1 | a[],i;
      | ^
Language: C

a[],i;
c(int*a){a=*1[&a]-*a;}
main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||(!printf("%d\n%d\n%d\n",*a,a[1],a[2]);return 0);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a[],i;
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:5: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
    1 | a[],i;
      |     ^
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | c(int*a){a=*1[&a]-*a;}
      | ^
main.c: In function 'c':
main.c:2:11: error: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    2 | c(int*a){a=*1[&a]-*a;}
      |           ^
main.c: At top level:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||(!printf("%d\n%d\n%d\n",*a,a[1],a[2]);return 0);}
      | ^~~~
main.c: In function 'main':
main.c:3:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||(!printf("%d\n%d\n%d\n",*a,a[1],a[2]);return 0);}
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a[],i;
main.c:3:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||(!printf("%d\n%d\n%d\n",*a,a[1],a[2]);return 0);}
      |         ^~~~~
main.c:3:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:35: error: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
    3 | main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||(!printf("%d\n%d\n%d\n",*a,a[1],a[2]);return 0);}
      |                                   ^~~~~
main.c:3:55: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    3 | main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||(!printf("%d\n%d\n%d\n",*a,a[1],a[2]);return 0);}
      |                                                       ^~~~~~
main.c:3:55: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:3:55: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:3:55: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:3:90: error: expected ')' before ';' token
    3 | main(){~scanf("%d",a+(i++))&&main(qsort(a,10,4,c))||(!printf("%d\n%d\n%d\n",*a,a[1],a[2]);return 0);}
      |                                                     ~                                    ^
      |                                                                                          )
main.c: At top level:
main.c:1:1: warning: array 'a' assumed to have one element
    1 | a[],i;
      | ^
Language: C

*a;main(){
for(;~scanf("%d",a--););qsort(a,10,4,"YXZQQQ\x8b\x00+\x02\xc3");i=!printf("%d\n%d\n%d\n",a[9],a[8],a[7]);	
}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | *a;main(){
      | ^
main.c:1:2: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
    1 | *a;main(){
      |  ^
main.c:1:4: error: return type defaults to 'int' [-Wimplicit-int]
    1 | *a;main(){
      |    ^~~~
main.c: In function 'main':
main.c:2:7: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    2 | for(;~scanf("%d",a--););qsort(a,10,4,"YXZQQQ\x8b\x00+\x02\xc3");i=!printf("%d\n%d\n%d\n",a[9],a[8],a[7]);
      |       ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | *a;main(){
main.c:2:7: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    2 | for(;~scanf("%d",a--););qsort(a,10,4,"YXZQQQ\x8b\x00+\x02\xc3");i=!printf("%d\n%d\n%d\n",a[9],a[8],a[7]);
      |       ^~~~~
main.c:2:7: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:25: error: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
    2 | for(;~scanf("%d",a--););qsort(a,10,4,"YXZQQQ\x8b\x00+\x02\xc3");i=!printf("%d\n%d\n%d\n",a[9],a[8],a[7]);
      |                         ^~~~~
main.c:2:65: error: 'i' undeclared (first use in this function)
    2 | for(;~scanf("%d",a--););qsort(a,10,4,"YXZQQQ\x8b\x00+\x02\xc3");i=!printf("%d\n%d\n%d\n",a[9],a[8],a[7]);
      |                                                                 ^
main.c:2:65: note: each undeclared identifier is reported only once for each function it appears in
main.c:2:68: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    2 | for(;~scanf("%d",a--););qsort(a,10,4,"YXZQQQ\x8b\x00+\x02\xc3");i=!printf("%d\n%d\n%d\n",a[9],a[8],a[7]);
      |                                                                    ^~~~~~
main.c:2:68: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:68: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:2:68: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

*a;main(){
for(;~scanf("%d",a--););qsort(a+1,10,4,"YXZQQQ\x8b\x00+\x02\xc3");i=!printf("%d\n%d\n%d\n",a[9],a[8],a[7]);	
}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | *a;main(){
      | ^
main.c:1:2: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
    1 | *a;main(){
      |  ^
main.c:1:4: error: return type defaults to 'int' [-Wimplicit-int]
    1 | *a;main(){
      |    ^~~~
main.c: In function 'main':
main.c:2:7: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    2 | for(;~scanf("%d",a--););qsort(a+1,10,4,"YXZQQQ\x8b\x00+\x02\xc3");i=!printf("%d\n%d\n%d\n",a[9],a[8],a[7]);
      |       ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | *a;main(){
main.c:2:7: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    2 | for(;~scanf("%d",a--););qsort(a+1,10,4,"YXZQQQ\x8b\x00+\x02\xc3");i=!printf("%d\n%d\n%d\n",a[9],a[8],a[7]);
      |       ^~~~~
main.c:2:7: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:25: error: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
    2 | for(;~scanf("%d",a--););qsort(a+1,10,4,"YXZQQQ\x8b\x00+\x02\xc3");i=!printf("%d\n%d\n%d\n",a[9],a[8],a[7]);
      |                         ^~~~~
main.c:2:67: error: 'i' undeclared (first use in this function)
    2 | for(;~scanf("%d",a--););qsort(a+1,10,4,"YXZQQQ\x8b\x00+\x02\xc3");i=!printf("%d\n%d\n%d\n",a[9],a[8],a[7]);
      |                                                                   ^
main.c:2:67: note: each undeclared identifier is reported only once for each function it appears in
main.c:2:70: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    2 | for(;~scanf("%d",a--););qsort(a+1,10,4,"YXZQQQ\x8b\x00+\x02\xc3");i=!printf("%d\n%d\n%d\n",a[9],a[8],a[7]);
      |                                                                      ^~~~~~
main.c:2:70: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:70: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:2:70: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

d,a[];c(int*z){d=*z-*1[&z];}main(){for(;~scanf("%d",a);qsort(a,4,4,c));for(d=4;--d;printf("%d\n",a[d])); 
return a[3]==10000&&d[2]==9999;}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | d,a[];c(int*z){d=*z-*1[&z];}main(){for(;~scanf("%d",a);qsort(a,4,4,c));for(d=4;--d;printf("%d\n",a[d]));
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
    1 | d,a[];c(int*z){d=*z-*1[&z];}main(){for(;~scanf("%d",a);qsort(a,4,4,c));for(d=4;--d;printf("%d\n",a[d]));
      |   ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | d,a[];c(int*z){d=*z-*1[&z];}main(){for(;~scanf("%d",a);qsort(a,4,4,c));for(d=4;--d;printf("%d\n",a[d]));
      |       ^
main.c:1:29: error: return type defaults to 'int' [-Wimplicit-int]
    1 | d,a[];c(int*z){d=*z-*1[&z];}main(){for(;~scanf("%d",a);qsort(a,4,4,c));for(d=4;--d;printf("%d\n",a[d]));
      |                             ^~~~
main.c: In function 'main':
main.c:1:42: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | d,a[];c(int*z){d=*z-*1[&z];}main(){for(;~scanf("%d",a);qsort(a,4,4,c));for(d=4;--d;printf("%d\n",a[d]));
      |                                          ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | d,a[];c(int*z){d=*z-*1[&z];}main(){for(;~scanf("%d",a);qsort(a,4,4,c));for(d=4;--d;printf("%d\n",a[d]));
main.c:1:42: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | d,a[];c(int*z){d=*z-*1[&z];}main(){for(;~scanf("%d",a);qsort(a,4,4,c));for(d=4;--d;printf("%d\n",a[d]));
      |                                          ^~~~~
main.c:1:42: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:56: error: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
    1 | d,a[];c(int*z){d=*z-*1[&z];}main(){for(;~scanf("%d",a);qsort(a,4,4,c));for(d=4;--d;printf("%d\n",a[d]));
      |                                                        ^~~~~
main.c:1:84: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | d,a[];c(int*z){d=*z-*1[&z];}main(){for(;~scanf("%d",a);qsort(a,4,4,c));for(d=4;--d;printf("%d\n",a[d]));
      |                                                                                    ^~~~~~
main.c:1:84: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:84: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:84: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:22: error: subscripted value is neither array nor pointer nor vector
    2 | return a[3]==10000&&d[2]==9999;}
      |                      ^
main.c: At top level:
main.c:1:3: warning: array 'a' assumed to have one element
    1 | d,a[];c(int*z){d=*z-*1[&z];}main(){for(;~scanf("%d",a);qsort(a,4,4,c));for(d=4;--d;printf("%d\n",a[d]));
      |   ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:24: error: expected ';' before '}' token
    7 |       scanf("%d",&m[i])
      |                        ^
      |                        ;
    8 |     }
      |     ~
Language: C

#include<stdio.h>
int main()
{
int a,b,c,d,e,f,g,h,i,j;
printf("type the heights of the mountains");
scanf("%d,%d,%d,%d,%d,%d,%d,%d,%d,%d &a,&b,&c,&d,&e,&f,&g,&h,&i,&j);
if(c>a && c>b && c>d && c>e && c>f && c>g && c>h && c>i && c>j)
printf("%the heighest mountain is: d", c);
else if(b>a && b>d && b>e && b>f && b>g && b>h && b>i && b>j)
printf("%the second heighest mountain is: d", b);
else if(a>d && a>e && a>f && a>g && a>h && a>i && a>j)
printf("%the third heighest mountain is: d", a);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: warning: missing terminating " character
    6 | scanf("%d,%d,%d,%d,%d,%d,%d,%d,%d,%d &a,&b,&c,&d,&e,&f,&g,&h,&i,&j);
      |       ^
main.c:6:7: error: missing terminating " character
    6 | scanf("%d,%d,%d,%d,%d,%d,%d,%d,%d,%d &a,&b,&c,&d,&e,&f,&g,&h,&i,&j);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:7:1: error: expected expression before 'if'
    7 | if(c>a && c>b && c>d && c>e && c>f && c>g && c>h && c>i && c>j)
      | ^~
main.c:13:10: error: expected ';' before '}' token
   13 | return 0;
      |          ^
      |          ;
   14 | }
      | ~
Language: C

#include <stdio.h>

int main (int argc, char* argv[])
{
  int i, j, temp, height[10];

  for (i=0; i<10; i++) {
    scanf("%d", height[i]);
  }
  
  for (i=10; 0<i; i--) {
    for (j=0; j<i; j++) {
      if (height[j+1] < height[j]) {
	temp = height[j];
	heghit[j] = height[j+1];
	height[j+1] = temp;
      }
    }
  }

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

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

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

Compiler output:
main.c: In function 'main':
main.c:8:13: error: 'h' undeclared (first use in this function)
    8 |         for(h = 10; h > 0; ){
      |             ^
main.c:8:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

include <stdio.h>

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

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

#include<iostream>  
#define element 10  
  
using namespace std;  
  
int height[element];  
int number;  
int main()  
{  
 for(int i=0;i<element;++i)  
 {  
  cin >> height[i];  
 }  
 for(int i=0;i<element;++i)  
 {  
  for(int j=i;j<element;++j)  
  {  
   if(height[i]<height[j])  
   {  
    number = height[i];  
    height[i] = height[j];  
    height[j] = number;  
   }  
  }  
 }  
 printf("\n%d\n%d\n%d\n",height[0],height[1],height[2]);  
 return 0;  
}  

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

#include<iostream>
#include<vector>
#include<algorithm>
#include<functional>
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>());
	cout <<height[0]<<endl<<height[1]<<endl<<height[2]<<endl;
	return 0;
}

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

#include<stdio.h>

int main(void){
int i,l,ans[3],t,in;
for(i=0;i<10;i++){
scanf(" %d",&in);
for(l=0;l<3;l++){
if(in>ans[l]){
t=ans[l];
ans[l]=in;
in=t;
}
}

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

return 0;
}

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

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

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

#include<stdio.h>

int main(){
	int h[10];
	int i, j;
	int M, idx;
	char buf[8];
	
	for(j = 0; j < 10; j++) {
		gets(buf);
		h[j] = strtol(buf, NULL, 10);
	}

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

Compiler output:
main.c: In function 'main':
main.c:10:17: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   10 |                 gets(buf);
      |                 ^~~~
      |                 fgets
main.c:11:24: error: implicit declaration of function 'strtol' [-Wimplicit-function-declaration]
   11 |                 h[j] = strtol(buf, NULL, 10);
      |                        ^~~~~~
Language: C

#include<stdio.h>
int main(){
int mountain[10];
 scanf("%d%d%d%d%d%d%d%d%d%d",&mountain[0],&mountain[1],&mountain[2],&mountain[3],&mountain[4],&mountain[5],&mountain[6],&mountain[7],&mountain[8],&mountain[9]);
int high[10]
for(i=0;i<=9;i++){
  for(j=i+1;j<=10;i++){
    if (mountain[i]<mountain[j]){
      high[i] = mountain[i];
        mountain[i] = mountain[j];
          mountain[j] = high[i];
            }
              }
                }
                  printf("mountain[0]")\n
                    printf("mountain[1]")\n
                      printf("mountain[2]")\n
                        return 0;
                          }

Compiler output:
main.c: In function 'main':
main.c:6:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
    6 | for(i=0;i<=9;i++){
      | ^~~
main.c:6:5: error: 'i' undeclared (first use in this function)
    6 | for(i=0;i<=9;i++){
      |     ^
main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:7: error: 'j' undeclared (first use in this function)
    7 |   for(j=i+1;j<=10;i++){
      |       ^
main.c:9:7: error: 'high' undeclared (first use in this function)
    9 |       high[i] = mountain[i];
      |       ^~~~
main.c:15:40: error: stray '\' in program
   15 |                   printf("mountain[0]")\n
      |                                        ^
main.c:15:40: error: expected ';' before 'n'
   15 |                   printf("mountain[0]")\n
      |                                        ^~
      |                                        ;
main.c:16:42: error: stray '\' in program
   16 |                     printf("mountain[1]")\n
      |                                          ^
main.c:17:44: error: stray '\' in program
   17 |                       printf("mountain[2]")\n
      |                                            ^
Language: C

#include<stdio.h>
int main(){
int a;
int mountain[10];
 scanf("%d%d%d%d%d%d%d%d%d%d",&mountain[0],&mountain[1],&mountain[2],&mountain[3],&mountain[4],&mountain[5],&mountain[6],&mountain[7],&mountain[8],&mountain[9]);
for(i=0;i<=9;i++){
  for(j=i+1;j<=10;j++){
    if (mountain[i]<mountain[j]){
      a = mountain[i];
        mountain[i] = mountain[j];
        mountain[j] = high[i]
            }
              }
                }
                  printf("mountain[0]")\n
                    printf("mountain[1]")\n
                      printf("mountain[2]")\n
                        return 0;
                          }

Compiler output:
main.c: In function 'main':
main.c:6:5: error: 'i' undeclared (first use in this function)
    6 | for(i=0;i<=9;i++){
      |     ^
main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:7: error: 'j' undeclared (first use in this function)
    7 |   for(j=i+1;j<=10;j++){
      |       ^
main.c:11:23: error: 'high' undeclared (first use in this function)
   11 |         mountain[j] = high[i]
      |                       ^~~~
main.c:11:30: error: expected ';' before '}' token
   11 |         mountain[j] = high[i]
      |                              ^
      |                              ;
   12 |             }
      |             ~                 
main.c:15:40: error: stray '\' in program
   15 |                   printf("mountain[0]")\n
      |                                        ^
main.c:15:40: error: expected ';' before 'n'
   15 |                   printf("mountain[0]")\n
      |                                        ^~
      |                                        ;
main.c:16:42: error: stray '\' in program
   16 |                     printf("mountain[1]")\n
      |                                          ^
main.c:17:44: error: stray '\' in program
   17 |                       printf("mountain[2]")\n
      |                                            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:40: error: stray '\' in program
   14 |                   printf("mountain[0]")\n
      |                                        ^
main.c:14:40: error: expected ';' before 'n'
   14 |                   printf("mountain[0]")\n
      |                                        ^~
      |                                        ;
main.c:15:42: error: stray '\' in program
   15 |                     printf("mountain[1]")\n
      |                                          ^
main.c:16:44: error: stray '\' in program
   16 |                       printf("mountain[2]")\n
      |                                            ^
main.c:18:27: error: expected declaration or statement at end of input
   18 |                           }
      |                           ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:15:40: error: stray '\' in program
   15 |                   printf("mountain[0]")\n
      |                                        ^
main.c:15:40: error: expected ';' before 'n'
   15 |                   printf("mountain[0]")\n
      |                                        ^~
      |                                        ;
main.c:16:42: error: stray '\' in program
   16 |                     printf("mountain[1]")\n
      |                                          ^
main.c:17:44: error: stray '\' in program
   17 |                       printf("mountain[2]")\n
      |                                            ^
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:40: error: stray '\' in program
   16 |                   printf("mountain[0]")\n
      |                                        ^
main.c:16:40: error: expected ';' before 'n'
   16 |                   printf("mountain[0]")\n
      |                                        ^~
      |                                        ;
main.c:17:42: error: stray '\' in program
   17 |                     printf("mountain[1]")\n
      |                                          ^
main.c:18:44: error: stray '\' in program
   18 |                       printf("mountain[2]")\n
      |                                            ^
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:39: error: stray '\' in program
   16 |                   printf("mountain[0]"\n)
      |                                       ^
main.c:16:39: error: expected ')' before 'n'
   16 |                   printf("mountain[0]"\n)
      |                         ~             ^~
      |                                       )
main.c:16:42: error: expected ';' before 'printf'
   16 |                   printf("mountain[0]"\n)
      |                                          ^
      |                                          ;
   17 |                     printf("mountain[1]"\n)
      |                     ~~~~~~                
main.c:17:41: error: stray '\' in program
   17 |                     printf("mountain[1]"\n)
      |                                         ^
main.c:18:43: error: stray '\' in program
   18 |                       printf("mountain[2]"\n)
      |                                           ^
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:37: error: stray '\' in program
   16 |                 printf("mountain[0]"\n)
      |                                     ^
main.c:16:37: error: expected ')' before 'n'
   16 |                 printf("mountain[0]"\n)
      |                       ~             ^~
      |                                     )
main.c:16:40: error: expected ';' before 'printf'
   16 |                 printf("mountain[0]"\n)
      |                                        ^
      |                                        ;
   17 |                   printf("mountain[1]"\n)
      |                   ~~~~~~                
main.c:17:39: error: stray '\' in program
   17 |                   printf("mountain[1]"\n)
      |                                       ^
main.c:18:41: error: stray '\' in program
   18 |                     printf("mountain[2]"\n)
      |                                         ^
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:42: error: expected ';' before 'printf'
   16 |                   printf("mountain[0]\n")
      |                                          ^
      |                                          ;
   17 |                     printf("mountain[1]\n")
      |                     ~~~~~~                
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

#include<stdio.h>
int main(){
int a;
int mountain[10];
 scanf("%d%d%d%d%d%d%d%d%d%d",&mountain[0],&mountain[1],&mountain[2],&mountain[3],&mountain[4],&mountain[5],&mountain[6],&mountain[7],&mountain[8],&mountain[9]);
int x;
int y;
int z;
for(x=1;x<=9;x++){
  if(mountain[0]<mountain[x]){
    a = mountain[0]
      mountain[0] = mountain[x]
        mountain[x] = a
  }
}
for(y=2;y<=9;y++){
  if(mountain[1]<mountain[y]){
    a = mountain[1]
      mountain[1] = mountain[y]
        mountain[y] = a
  }
}
for(z=3;z<=9;x++){
  if(mountain[2]<mountain[z]){
    a = mountain[2]
      mountain[2] = mountain[z]
        mountain[z] = a
  }
}
printf("mountain[0]\n");
  printf("mountain[1]\n");
   printf("mountain[2]\n");
    return 0;
}   

Compiler output:
main.c: In function 'main':
main.c:11:20: error: expected ';' before 'mountain'
   11 |     a = mountain[0]
      |                    ^
      |                    ;
   12 |       mountain[0] = mountain[x]
      |       ~~~~~~~~      
main.c:18:20: error: expected ';' before 'mountain'
   18 |     a = mountain[1]
      |                    ^
      |                    ;
   19 |       mountain[1] = mountain[y]
      |       ~~~~~~~~      
main.c:25:20: error: expected ';' before 'mountain'
   25 |     a = mountain[2]
      |                    ^
      |                    ;
   26 |       mountain[2] = mountain[z]
      |       ~~~~~~~~
Language: C

#include<stdio.h>
int main(){
int a;
int b;
int c;
int mountain[10];
 gets("%d%d%d%d%d%d%d%d%d%d",&mountain[0],&mountain[1],&mountain[2],&mountain[3],&mountain[4],&mountain[5],&mountain[6],&mountain[7],&mountain[8],&mountain[9]);
int x;
int y;
int z;
for(x=1;x<=9;x++){
  if(mountain[0]<mountain[x]){
    a = mountain[0];
      mountain[0] = mountain[x];
        mountain[x] = a;
  }
}
for(y=2;y<=9;y++){
  if(mountain[1]<mountain[y]){
    b = mountain[1];
      mountain[1] = mountain[y];
        mountain[y] = b;
  }
}
for(z=3;z<=9;x++){
  if(mountain[2]<mountain[z]){
    c = mountain[2];
      mountain[2] = mountain[z];
        mountain[z] = c;
  }
}
printf("mountain[0]\n");
  printf("mountain[1]\n");
   printf("mountain[2]\n");
    return 0;
}   

Compiler output:
main.c: In function 'main':
main.c:7:2: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |  gets("%d%d%d%d%d%d%d%d%d%d",&mountain[0],&mountain[1],&mountain[2],&mountain[3],&mountain[4],&mountain[5],&mountain[6],&mountain[7],&mountain[8],&mountain[9]);
      |  ^~~~
      |  fgets
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:19:14: error: invalid operands to binary & (have 'char *' and 'int')
   19 | printf("%d\n"&mountain[0] );
      |        ~~~~~~^~~~~~~~~~~~
      |        |              |
      |        char *         int
main.c:20:16: error: invalid operands to binary & (have 'char *' and 'int')
   20 |   printf("%d\n"&mountain[1]);
      |          ~~~~~~^~~~~~~~~~~~
      |          |              |
      |          char *         int
main.c:21:17: error: invalid operands to binary & (have 'char *' and 'int')
   21 |    printf("%d\n"&mountain[2]);
      |           ~~~~~~^~~~~~~~~~~~
      |           |              |
      |           char *         int
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:21: warning: comparison between pointer and integer
    7 |                 if(a>M1) {
      |                     ^
main.c:8:26: error: assignment to expression with array type
    8 |                         a=M1;
      |                          ^
main.c:10:22: warning: comparison between pointer and integer
   10 |                 if(M2<a && a<M1) {
      |                      ^
main.c:10:29: warning: comparison between pointer and integer
   10 |                 if(M2<a && a<M1) {
      |                             ^
main.c:11:26: error: assignment to expression with array type
   11 |                         a=M2;
      |                          ^
main.c:13:22: warning: comparison between pointer and integer
   13 |                 if(M3<a && a<M2) {
      |                      ^
main.c:13:29: warning: comparison between pointer and integer
   13 |                 if(M3<a && a<M2) {
      |                             ^
main.c:14:26: error: assignment to expression with array type
   14 |                         a=M3;
      |                          ^
Language: C

#include <stdio.h>
#include <string.h>
#include <algorithm>

using namespace std;

int main()
{
	int i,ar[20];
	for(i=0;i<10;i++)
	{
		scanf("%d",&ar[i]);
	}
	sort(ar,ar+i);
	printf("%d\n%d\n%d\n",ar[i-1],ar[i-2],ar[i-3]);
    
    return 0;
}

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

#include <cstdio>
#include <algorithm>
#include <vector>
int main(){
  int i,x;
  std::vector<int>v;
  for(i=0;i<10;i++)scanf("%d",&x),v.push_back(x);
  std::sort(v.begin(),v.end());
  printf("%d\n%d\n%d\n",v[9],v[8],v[7]);
}

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

#include<stdio.h>

int main(void){
  double i,j,s=0,a[10],b[3];
  for(i=0;i<10;i++)
    scanf("%lld",&a[i]);
  for(i=0;i<10;i++)
  {
      s=0;
      for(j=0;j<10;j++)
      {
       if(a[j]>a[i])
         s++;
      }
      if(s<3)
        b[s]=a[i];
   }
   for(s=0;s<3;s++)
     printf("%lld\n",b[s]);
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:20: error: array subscript is not an integer
    6 |     scanf("%lld",&a[i]);
      |                    ^
main.c:12:12: error: array subscript is not an integer
   12 |        if(a[j]>a[i])
      |            ^
main.c:12:17: error: array subscript is not an integer
   12 |        if(a[j]>a[i])
      |                 ^
main.c:16:10: error: array subscript is not an integer
   16 |         b[s]=a[i];
      |          ^
main.c:16:15: error: array subscript is not an integer
   16 |         b[s]=a[i];
      |               ^
main.c:19:23: error: array subscript is not an integer
   19 |      printf("%lld\n",b[s]);
      |                       ^
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:10: error: stray '#' in program
    4 |   for(c=0#include<stdio.h>
      |          ^
main.c:4:10: error: expected ';' before 'include'
    4 |   for(c=0#include<stdio.h>
      |          ^~~~~~~~
      |          ;
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected ';' before 'for'
    6 |       max=a[0]
      |               ^
      |               ;
    7 |       for(i=1; i<10; i++) if(a[i]>max)  { max=a[i]; t=i; }
      |       ~~~
Language: C

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

int compare(int *a, int *b){
	return *a - *b
}

int main(void){

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

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

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

	return 0;
}

Compiler output:
main.c: In function 'compare':
main.c:5:23: error: expected ';' before '}' token
    5 |         return *a - *b
      |                       ^
      |                       ;
    6 | }
      | ~                      
main.c: In function 'main':
main.c:17:40: error: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
   17 |         qsort(Height, 10, sizeof(int), compare);
      |                                        ^~~~~~~
      |                                        |
      |                                        int (*)(int *, int *)
In file included from main.c:2:
/usr/include/stdlib.h:971:34: note: expected '__compar_fn_t' {aka 'int (*)(const void *, const void *)'} but argument is of type 'int (*)(int *, int *)'
  971 |                    __compar_fn_t __compar) __nonnull ((1, 4));
      |                    ~~~~~~~~~~~~~~^~~~~~~~
Language: C

#include <stdio.h>

int main (void){
      int st = 0, nd =0 ,rd =0,  tem, i;
       
         for( i =0; i<10; i++){
            scanf("%d",&s);
             if (  tem >= st){
                   rd = nd;
                   nd = st;
                   st  =  tem;
                   continue ;
                }
             if  ( tem > = nd)    {
                    rd = nd;
                    nd =tem;
                   continue;
                  }
             if ( tem > = rd)    {
                    rd =tem;
                   continue;
              }
          }
                printf("%d\n%d\n%d\n",st,nd,rd);
             return 0;
}
                  


                    
   

Compiler output:
main.c: In function 'main':
main.c:7:25: error: 's' undeclared (first use in this function)
    7 |             scanf("%d",&s);
      |                         ^
main.c:7:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:26: error: expected expression before '=' token
   14 |              if  ( tem > = nd)    {
      |                          ^
main.c:19:25: error: expected expression before '=' token
   19 |              if ( tem > = rd)    {
      |                         ^
Language: C

#include <stdio.h>

int main (void){
      int st = 0, nd =0 ,rd =0,  tem, i;
       
         for( i =0; i<10; i++){
            scanf("%d",&tem);
             if (  tem >= st){
                   rd = nd;
                   nd = st;
                   st  =  tem;
                   continue ;
                }
             if  ( tem > = nd)    {
                    rd = nd;
                    nd =tem;
                   continue;
                  }
             if ( tem > = rd)    {
                    rd =tem;
                   continue;
              }
          }
                printf("%d\n%d\n%d\n",st,nd,rd);
             return 0;
}
               

Compiler output:
main.c: In function 'main':
main.c:14:26: error: expected expression before '=' token
   14 |              if  ( tem > = nd)    {
      |                          ^
main.c:19:25: error: expected expression before '=' token
   19 |              if ( tem > = rd)    {
      |                         ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:27: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         for(i=0;i<10;i++) scnaf("%d",&a[i]);
      |                           ^~~~~
      |                           scanf
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:6:27: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         for(i=0;i<10;i++) scnaf("%d",&a[i]);
      |                           ^~~~~
      |                           scanf
Language: C

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

void swap(int &a,int &b){
	int t;
	t=a;
	a=b;
	b=t;
}

Compiler output:
main.c:2:15: error: expected ';', ',' or ')' before '&' token
    2 | void swap(int &a,int &b);
      |               ^
main.c: In function 'main':
main.c:7:62: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
    7 |                 for(int j=i+1;j<10;j++) if(data[j]>=data[i]) swap(data[i],data[j]);
      |                                                              ^~~~
main.c: At top level:
main.c:13:15: error: expected ';', ',' or ')' before '&' token
   13 | void swap(int &a,int &b){
      |               ^