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

#include<stdio.h>

int main()
{
    int a,b,c;
    scanf("%d %d %d\n",&a,&b,&c);

    if(a<=b && a<=c && b<=c){
       printf("a b c\n");
    }
    
    else if(b<=a && a<=c && b<=c){
       printf("b a c\n");
    }

    else if(b<=a && c<=a && b<=c){
       printf("b c a\n");
    }

    else if(a<=b && a<=c && c<=b){
       printf("a c b\n");
    }

    else if(a<=b && c<=a && c<=b){
       printf("c a b\n");
    }

    else(c<=b && c<=a && b<=a){
       printf("c b a\n");                                                    
    }

 
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:28:31: error: expected ';' before '{' token
   28 |     else(c<=b && c<=a && b<=a){
      |                               ^
      |                               ;
Language: C

#include<stdio.h>

int main()
{
    int a,b,c;
    scanf("%d %d %d\n",&a,&b,&c);

    if(a<=b && a<=c && b<=c){
       printf("a b c\n");
    }
    
    else if(b<=a && a<=c && b<=c){
       printf("b a c\n");
    }

    else if(b<=a && c<=a && b<=c){
       printf("b c a\n");
    }

    else if(a<=b && a<=c && c<=b){
       printf("a c b\n");
    }

    else if(a<=b && c<=a && c<=b){
       printf("c a b\n");
    }

    else 
       printf("c b a\n");                                                    
    }

 
  return 0;
}

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

#include<stdio.h>
int main(void){
   int a,b,c,d,e,f;
   scanf("%d %d %d",&a,&b,&c);
      if(a<b){
         d=a;e=b;
         if(b<c)
            d=a;e=b;f=c;
         else if(c<a)
            d=c;e=a;f=b;
         else 
            d=a;e=c;f=b;
      else if(b<a){
         if(c<b)
            d=c;e=b;f=a;
         else if(a<c)
            d=b;e=a;f=c;
         else 
            d=b;e=c;f=a;
            

   printf("%d %d %d",d,e,f);
return 0;
   
}

Compiler output:
main.c: In function 'main':
main.c:9:10: error: expected '}' before 'else'
    9 |          else if(c<a)
      |          ^~~~
main.c:11:10: error: 'else' without a previous 'if'
   11 |          else
      |          ^~~~
main.c:13:7: error: 'else' without a previous 'if'
   13 |       else if(b<a){
      |       ^~~~
main.c:16:10: error: expected '}' before 'else'
   16 |          else if(a<c)
      |          ^~~~
main.c:18:10: error: 'else' without a previous 'if'
   18 |          else
      |          ^~~~
Language: C

#include<stdio.h>
int main(void){
   int a,b,c,d,e,f;
   scanf("%d %d %d",&a,&b,&c);
      if(a<b){
         d=a;e=b;
         if(b<c)
            d=a;e=b;f=c;
         else if(c<a)
            d=c;e=a;f=b;
         else 
            d=a;e=c;f=b;}
      else if(b<a){
         if(c<b)
            d=c;e=b;f=a;
         else if(a<c)
            d=b;e=a;f=c;
         else 
            d=b;e=c;f=a;}
            

   printf("%d %d %d",d,e,f);
return 0;
   
}

Compiler output:
main.c: In function 'main':
main.c:9:10: error: expected '}' before 'else'
    9 |          else if(c<a)
      |          ^~~~
main.c:11:10: error: 'else' without a previous 'if'
   11 |          else
      |          ^~~~
main.c: At top level:
main.c:13:7: error: expected identifier or '(' before 'else'
   13 |       else if(b<a){
      |       ^~~~
main.c:22:11: error: expected declaration specifiers or '...' before string constant
   22 |    printf("%d %d %d",d,e,f);
      |           ^~~~~~~~~~
main.c:22:22: error: unknown type name 'd'
   22 |    printf("%d %d %d",d,e,f);
      |                      ^
main.c:22:24: error: unknown type name 'e'
   22 |    printf("%d %d %d",d,e,f);
      |                        ^
main.c:22:26: error: unknown type name 'f'
   22 |    printf("%d %d %d",d,e,f);
      |                          ^
main.c:23:1: error: expected identifier or '(' before 'return'
   23 | return 0;
      | ^~~~~~
main.c:25:1: error: expected identifier or '(' before '}' token
   25 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
   int a,b,c,d,e,f;
   scanf("%d %d %d",&a,&b,&c);
      if(a<b){
         if(b<c)
            d=a;e=b;f=c;
         else if(c<a)
            d=c;e=a;f=b;
         else 
            d=a;e=c;f=b;}
      else if(b<a){
         if(c<b)
            d=c;e=b;f=a;
         else if(a<c)
            d=b;e=a;f=c;
         else 
            d=b;e=c;f=a;}
            

   printf("%d %d %d",d,e,f);
return 0;
   
}

Compiler output:
main.c: In function 'main':
main.c:8:10: error: expected '}' before 'else'
    8 |          else if(c<a)
      |          ^~~~
main.c:10:10: error: 'else' without a previous 'if'
   10 |          else
      |          ^~~~
main.c: At top level:
main.c:12:7: error: expected identifier or '(' before 'else'
   12 |       else if(b<a){
      |       ^~~~
main.c:21:11: error: expected declaration specifiers or '...' before string constant
   21 |    printf("%d %d %d",d,e,f);
      |           ^~~~~~~~~~
main.c:21:22: error: unknown type name 'd'
   21 |    printf("%d %d %d",d,e,f);
      |                      ^
main.c:21:24: error: unknown type name 'e'
   21 |    printf("%d %d %d",d,e,f);
      |                        ^
main.c:21:26: error: unknown type name 'f'
   21 |    printf("%d %d %d",d,e,f);
      |                          ^
main.c:22:1: error: expected identifier or '(' before 'return'
   22 | return 0;
      | ^~~~~~
main.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^
Language: C

#include <stdio.h>

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

   scanf ("%d %d %d", &a, &b, &c ) ; 
  

   if ((a > b) && (c > b)) {
     printf("%d ", b) ;
     if (a <= c)
        printf("%d %d\n", a, c) ;
      else
        printf("%d %d\n", c, a) ;
}
    else if ((a < b) && (a < c)) {
      printf("%d ", a) ;
      if (b <= c)
        printf("%d %d\n", b, c) ;
      else
        printf("%d %d\n", c, b) ;

    }

    else if ((c < a) && (c < a)) {
     printf("%d ", c) ;
     if (b <= a)
        printf("%d %d\n", b, a) ;
      else
        printf("%d %d\n", a, b) ;
}
??????else 
       printf("%d %d %d\n", a, b, c);

return 0 ;
}

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

#include <stdio.h>
int main(void)
{
  int a, b, c, x;
  
  scanf("%d %d %d", a, b, c);

  if(a < b){
    x = a;
    a = b;
    b = x;
  }
  if(b < c){
    y = b;
    b = c;
    c = y;
  }
  if(c < a){
    z = c;
    c = a;
    a = z;
  }

  printf("%d %d %d\n", x, y, z); 
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:5: error: 'y' undeclared (first use in this function)
   14 |     y = b;
      |     ^
main.c:14:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:5: error: 'z' undeclared (first use in this function)
   19 |     z = c;
      |     ^
Language: C

#include<stdio.h>
int main(){
 int a,b,c,x;
 scanf("%d %d %d",&a,&b,&c);
 if(a>b){
  x=a;
  a=b;
  b=x;
  }if(b>c){
  x=b;
  b=c;
  c=x;
  }
 if(a>b){
  x=a;
  a=b;
  b=x;
 printf("%d %d %d\n",a,b,c);
return 0;
}

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

#include<stdio.h>
int main(){
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
    if(a=>b&&a=>c&&b=>c){printf("%d %d %d\n",c,b,a);}
    else if(a=>b&&b=<c&&a=>c){printf("%d %d %d\n",b,c,a);} 
    else if(a=>b&&b=<c&&a=<c){printf("%d %d %d\n",b,a,c);}
    else if(c=<b&&c=<a&&a=<b){printf("%d %d %d\n",c,a,b);}
    else if(a=<c&&a=<b&&c=<b){printf("%d %d %d\n",a,c,b);}
    else{printf("%d %d %d\n",a,b,c);}

	   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:10: error: expected expression before '>' token
    5 |     if(a=>b&&a=>c&&b=>c){printf("%d %d %d\n",c,b,a);}
      |          ^
main.c:6:15: error: expected expression before '>' token
    6 |     else if(a=>b&&b=<c&&a=>c){printf("%d %d %d\n",b,c,a);}
      |               ^
main.c:7:15: error: expected expression before '>' token
    7 |     else if(a=>b&&b=<c&&a=<c){printf("%d %d %d\n",b,a,c);}
      |               ^
main.c:8:15: error: expected expression before '<' token
    8 |     else if(c=<b&&c=<a&&a=<b){printf("%d %d %d\n",c,a,b);}
      |               ^
main.c:9:15: error: expected expression before '<' token
    9 |     else if(a=<c&&a=<b&&c=<b){printf("%d %d %d\n",a,c,b);}
      |               ^
Language: C

#include <stdio.h>
main(){
   int no1;
   int no2;
   int no3;
   int sto;
   int hi;
   int lo;

   printf("Enter No. 1: ");
   scanf("%d", &no1);
   printf("Enter No. 2: ");
   scanf("%d", &no2);         
   printf("Enter No. 3: ");
   scanf("%d", &no3);

   if (no1>no2) {   
      sto=no1;    
      lo=no2;   
   } else {
      sto=no2;  
      lo=no1;  
   } 
   if (sto>no3) { 
      hi=sto;    
      if(lo>no3){         
         sto=lo;                
         lo=no3;
      }else {
         sto=no3;      
      }         
   }else hi=no3; 

   printf("LOWEST %d\n", lo);
   printf("MIDDLE %d\n", sto);
   printf("HIGHEST %d\n", hi);  

   getch(); 
}    

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:38:4: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration]
   38 |    getch();
      |    ^~~~~
      |    getc
Language: C

#include<stdio.h>

int main(void)
{
	int a,b,c;
	int tmp;

	scanf("%d %d %d ",&a,&b,&c);

	if(a>b){
		temp=a;
		a=b;
		b=temp;
		
	}

	if(b>c){
		temp=b;
		b=c;
		c=temp;
	}
	
	if(a>c){
		temp=a;
		a=c;
		c=temp;
	}
	
	printf("%d %d %d",a,b,c);

	return 0;

}

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

#include<stdio.h>

int main(){

int n[3];
scanf("%d %d %d", &n[0], &n[1], &n[2]);

   int min = 0;

      for(int i=0;i<3;++i){
       min = i;
    
         for(int s=i+1;s,3;++s){
            if(n[s]<n[min]){
               min= s;
             }
          }
        int a=n[i];
        n[i]=n[[min];
        n[min]=a;
       }
    for(int i=o;i<3;++i){
     printf("%d ", n[i]);
     }

   return 0;


        

Compiler output:
main.c: In function 'main':
main.c:19:16: error: expected expression before '[' token
   19 |         n[i]=n[[min];
      |                ^
main.c:20:18: error: expected ';' before '}' token
   20 |         n[min]=a;
      |                  ^
      |                  ;
   21 |        }
      |        ~          
main.c:22:15: error: 'o' undeclared (first use in this function)
   22 |     for(int i=o;i<3;++i){
      |               ^
main.c:22:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:26:4: error: expected declaration or statement at end of input
   26 |    return 0;
      |    ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:19:16: error: expected expression before '[' token
   19 |         n[i]=n[[min];
      |                ^
main.c:20:18: error: expected ';' before '}' token
   20 |         n[min]=a;
      |                  ^
      |                  ;
   21 |        }
      |        ~          
main.c:26:4: error: expected declaration or statement at end of input
   26 |    return 0;
      |    ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:19:16: error: expected expression before '[' token
   19 |         n[i]=n[[min];
      |                ^
main.c:20:18: error: expected ';' before '}' token
   20 |         n[min]=a;
      |                  ^
      |                  ;
   21 |       }
      |       ~           
main.c:26:4: error: expected declaration or statement at end of input
   26 |    return 0;
      |    ^~~~~~
Language: C

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

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

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

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

#include<stdio.h>
int main(){
int a,b,c,d;
d=0;
scanf("%d %d %d",&a,&b,&c);
if(b<a&&a<c){
d=a;
a=b;
b=d;
}
if(a<c&&b<c)
d=c;
c=b;
b=d;
}
if(b<a&&a<c){
d=a;
a=b;
b=d;
}
printf("%d %d %d\n",a,b,c);
return 0;
}

Compiler output:
main.c:16:1: error: expected identifier or '(' before 'if'
   16 | if(b<a&&a<c){
      | ^~
main.c:21:8: error: expected declaration specifiers or '...' before string constant
   21 | printf("%d %d %d\n",a,b,c);
      |        ^~~~~~~~~~~~
main.c:21:21: error: unknown type name 'a'
   21 | printf("%d %d %d\n",a,b,c);
      |                     ^
main.c:21:23: error: unknown type name 'b'
   21 | printf("%d %d %d\n",a,b,c);
      |                       ^
main.c:21:25: error: unknown type name 'c'
   21 | printf("%d %d %d\n",a,b,c);
      |                         ^
main.c:22:1: 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(void)
{
	
	int a ,b ,c ,d;
	
	scanf("%d %d %d\n" ,&a ,&b ,&c);
	
	if(a>b){
		
		tmp = b;
		b = a;
		a = tmp;
		
	}
	
	if(a>c){
		
		tmp = c;
		c = b;
		b = tmp;
		
	}
	
	if(b>c){
		
		tmp = c;
		c = b;
		b = tmp;
		
	}
	
	printf("%d %d %d\n" ,a ,b ,c);
	
	return 0;
	
}

Compiler output:
main.c: In function 'main':
main.c:12:17: error: 'tmp' undeclared (first use in this function)
   12 |                 tmp = b;
      |                 ^~~
main.c:12:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void){

 int a,b,c,d;

 scanf("%d %d %d",&a,&b,&c);

 if(a>c){

 d=a;

 a=c;

 c=d;

}

 if(a>b){

 d=a;

 a=b;

 b=d;

}

 if(b>c){

 d=b;

 b=c;

 c=d;

}

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


return 0;

}

Compiler output:
main.c: In function 'main':
main.c:39:27: error: expected ';' before 'return'
   39 | printf("%d %d %d\n",a,b,c)
      |                           ^
      |                           ;
......
   42 | return 0;
      | ~~~~~~
Language: C

#include<stdio.h>

int main(void){

int a,b,c,d;

 scanf("%d %d %d",&a,&b,&c);

 if(a>c){

 d=a;

 a=c;

 c=d;

}

 if(a>b){

 d=a;

 a=b;

 b=d;

}

 if(b>c){

 d=b;

 b=c;

 c=d;

}

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

}

Compiler output:
main.c: In function 'main':
main.c:39:27: error: expected ';' before 'return'
   39 | printf("%d %d %d\n",a,b,c)
      |                           ^
      |                           ;
   40 | return 0;
      | ~~~~~~
Language: C

#include<stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d", &a,&b,&c);
   if(a>b&&b>c){
        printf("%d %d %d\n", c,b,a);
   }else if(b>c&&c>a){
        printf("%d %d %d\n", a,c,b);
   }else if(c>a&&a>b){
        printf("%d %d %d\n", b,a,c);
   }else if(c>b&&b>a){
        printf("%d %d %d\n", a,b,c);
   }else if(b>a&&a>c){
        printf("%d %d %d\n", c,a,b);
   }else if(b>c&&c>a){
        printf("%d %d %d\n", b,c,a);
   }else if(b>c&&c=a){
        printf("%d %d %d\n", a,c,b);
   }else if(a>c&&c=b){
        printf("%d %d %d\n", b,c,a);
   }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:19: error: lvalue required as left operand of assignment
   17 |    }else if(b>c&&c=a){
      |                   ^
main.c:19:19: error: lvalue required as left operand of assignment
   19 |    }else if(a>c&&c=b){
      |                   ^
Language: C

#include <stdio.h>

int main (void)
{
int a, b, c;
	
	scanf("%d""%d""%d",&a,&b,&c);
	
	if(a<b&&a<c&&b<c){
		printf("a<b<c\n");
	}
	else if(a<b&&a<c&&c<b){
				printf("a<c<b\n");
	}
	else if(b<c&&b<a&&c<a){
				printf("b<c<a\n");
	}
	else if(b<c&&b<a&&a<c){
				printf("b<a<c\n");
	}
	else if(c<a&&c<b&&a<b){
				printf("c<a<b\n");
	}
	else(c<a&&c<b&&b<a){
				printf("c<b<a\n");
	}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:28: error: expected ';' before '{' token
   24 |         else(c<a&&c<b&&b<a){
      |                            ^
      |                            ;
Language: C

#include <stdio.h>

int main (void)
{
int a, b, c;
	
	scanf("%d""%d""%d",&a,&b,&c);
	
	if(a<b&&a<c&&b<c){
		printf("%d<%d<%d\n",a,b,c);
	}
	else if(a<b&&a<c&&c<b){
				printf("%d<%d<%d\n",a,c,b);
	}
	else if(b<c&&b<a&&c<a){
				printf("%d<%d<%d\n",b,c,a);
	}
	else if(b<c&&b<a&&a<c){
				printf("%d<%d<%d\n",b,a,c);
	}
	else if(c<a&&c<b&&a<b){
				printf("%d<%d<%d\n",c,a,b);
	}
	else(c<a&&c<b&&b<a){
				printf("%d<%d<%d\n"c,b,a);
	}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:28: error: expected ';' before '{' token
   24 |         else(c<a&&c<b&&b<a){
      |                            ^
      |                            ;
Language: C

#include <stdio.h>

int main (void)
{
int a, b, c;
	
	scanf("%d""%d""%d",&a,&b,&c);
	
	if(a<b&&a<c&&b<c){
		printf("%d<%d<%d\n",a,b,c);
	}
	else if(a<b&&a<c&&c<b){
				printf("%d<%d<%d\n",a,c,b);
	}
	else if(b<c&&b<a&&c<a){
				printf("%d<%d<%d\n",b,c,a);
	}
	else if(b<c&&b<a&&a<c){
				printf("%d<%d<%d\n",b,a,c);
	}
	else if(c<a&&c<b&&a<b){
				printf("%d<%d<%d\n",c,a,b);
	}
	else (c<a&&c<b&&b<a){
				printf("%d<%d<%d\n",c,b,a);
	}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:29: error: expected ';' before '{' token
   24 |         else (c<a&&c<b&&b<a){
      |                             ^
      |                             ;
Language: C

#include <stdio.h>

int main (void) { int a, b, c;    scanf("%d""%d""%d",&a,&b,&c);    if(a<b&&b<c){   printf("%d %d %d\n",a,b,c);  }  else if(a<c&&c<b){   printf("%d %d %d\n",a,c,b);  }  else if(b<c&&c<a){   printf("%d %d %d\n",b,c,a);  }  else if(b<a&&a<c){   printf("%d %d %d\n",b,a,c);  }  else if(c<a&&a<b){   printf("%d %d %d\n",c,a,b);  }  else if(c<b&&b<a){   printf("%d %d %d\n",c,b,a);  }  else if(b==c&&b<a){   printf("%d %d %d\n",c,b,a);  }  else if(b==a&&b<c){   printf("%d %d %d\n",b,a,c);  }  else if(a==b&&b<c){   printf("%d %d %d\n",a,b,c);  }  else if(a==c&&c<b){   printf("%d %d %d\n",a,c,b);  }  else if(c==a&&a<b){   printf("%d %d %d\n",a,c,b);  }  else{   printf("%d %d %d\n",a,b,c);  }

return 0;

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

#include<stdio.h>

int main(void){

 int a,b,c;

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

   if(a<b){

  if(b<c){

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

  }

  else{

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

  }

 }

 else if(c<a){

  if(a<b){

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

  }

  else{

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

  }

 }

 else if(b<a){

  if(a<c){

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

  }
}
}

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

     return 0; 

}

Compiler output:
main.c:51:11: error: expected declaration specifiers or '...' before string constant
   51 |    printf("%d %d %d\n",b,c,a);
      |           ^~~~~~~~~~~~
main.c:51:24: error: unknown type name 'b'
   51 |    printf("%d %d %d\n",b,c,a);
      |                        ^
main.c:51:26: error: unknown type name 'c'
   51 |    printf("%d %d %d\n",b,c,a);
      |                          ^
main.c:51:28: error: unknown type name 'a'
   51 |    printf("%d %d %d\n",b,c,a);
      |                            ^
main.c:53:6: error: expected identifier or '(' before 'return'
   53 |      return 0;
      |      ^~~~~~
main.c:55:1: error: expected identifier or '(' before '}' token
   55 | }
      | ^
Language: C

#include<stdio.h>
int main(void)
{
	int a,b,c,t,i,j ;
	scanf("%d %d %d",&a,&b,&c);
	if(a>b){
		t=a;
		a=b;
		b=t;
	}
	else if(a>c){
		t=a;
		a=c;
		c=t;
	}
	else(b>c){
		t=b;
		b=c;
		c=t;
	}
		printf("%d %d %d\n",a,b,c);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:18: error: expected ';' before '{' token
   16 |         else(b>c){
      |                  ^
      |                  ;
main.c: At top level:
main.c:23:9: error: expected identifier or '(' before 'return'
   23 |         return 0;
      |         ^~~~~~
main.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^
Language: C

#include <stdio.h>

int main(void){
	int a, b, c, tmp;

	scanf("%d%d%d", &a, &b, &c);

	if(a>b)	{
		tmp = a;
		a = b;
		b = tmp;
	}else if(b>c){
		tmp = b;
		b = c;
		c = temp;
	}else if(a>b){
		tmp = a;
		a = b;
		b = tmp;
	}else
		return;

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:21: error: 'temp' undeclared (first use in this function); did you mean 'tmp'?
   15 |                 c = temp;
      |                     ^~~~
      |                     tmp
main.c:15:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   21 |                 return;
      |                 ^~~~~~
main.c:3:5: note: declared here
    3 | int main(void){
      |     ^~~~
Language: C

#include <stdio.h>

int main(void){
	int a, b, c, tmp;

	scanf("%d%d%d", &a, &b, &c);

	if(a>b)	{
		tmp = a;
		a = b;
		b = tmp;
	}
	if(b>c){
		tmp = b;
		b = c;
		c = temp;
	}
	if(a>b){
		tmp = a;
		a = b;
		b = tmp;
	}

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

	return 0;
}

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

#include<stdio.h>
int main(void)
{
	int a,b,c,d;
	scanf("%d %d %d",&a,&b,&c);
	d=0;
	if(a<b){
		d=a;
		a=b;
		b=d;
	}
	if(a<c){
		d=a;
		a=c;
		c=d;
	}
	if(b<c){
		d=b;
		b=c;
		c=d;
	}
	printf("%d %d %d",a,b,c)
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:33: error: expected ';' before 'return'
   22 |         printf("%d %d %d",a,b,c)
      |                                 ^
      |                                 ;
   23 |         return 0;
      |         ~~~~~~
Language: C

#include<stdio.h>
int main(void)
{
   int a,b,c,x;
   scanf("%d %d %d",&a,&b,&c);
   if(a>b){
      x=a;
      a=b;
      b=x
   }
   if(a>c){
      x=a;
      a=c;
      c=x
   }
   if(b>c){
      x=b;
      b=c;
      c=x
   }
   printf("%d %d %d\n",a,b,c);
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:10: error: expected ';' before '}' token
    9 |       b=x
      |          ^
      |          ;
   10 |    }
      |    ~      
main.c:14:10: error: expected ';' before '}' token
   14 |       c=x
      |          ^
      |          ;
   15 |    }
      |    ~      
main.c:19:10: error: expected ';' before '}' token
   19 |       c=x
      |          ^
      |          ;
   20 |    }
      |    ~
Language: C

#include<stdio.h>

int main(void)


{


int a,b,c,x;


scanf("%d %d %d,&a,&b,&c);


if(a>b){


x=a;


a=b;


b=x;


}


if(a>c){


x=a;


a=c;


c=x;


}


if(b>c){


x=b;


b=c;


c=x;


}


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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:12:7: warning: missing terminating " character
   12 | scanf("%d %d %d,&a,&b,&c);
      |       ^
main.c:12:7: error: missing terminating " character
   12 | scanf("%d %d %d,&a,&b,&c);
      |       ^~~~~~~~~~~~~~~~~~~~
main.c:15:1: error: expected expression before 'if'
   15 | if(a>b){
      | ^~
main.c:63:10: error: expected ';' before '}' token
   63 | return 0;
      |          ^
      |          ;
......
   66 | }
      | ~
Language: C

#include<stdio.h>

int main(void)

int a,b,c,x;

scanf("%d %d %d",&a,&b,&c);

if(a>b){

x=a;

a=c;

c=x;

}

if(a>c){

x=a;

a=c;

c=x;

}

if(b>c){

x=a;

a=c;

c=x;

}

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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected declaration specifiers before 'scanf'
    7 | scanf("%d %d %d",&a,&b,&c);
      | ^~~~~
main.c:9:1: error: expected declaration specifiers before 'if'
    9 | if(a>b){
      | ^~
main.c:19:1: error: expected declaration specifiers before 'if'
   19 | if(a>c){
      | ^~
main.c:29:1: error: expected declaration specifiers before 'if'
   29 | if(b>c){
      | ^~
main.c:39:1: error: expected declaration specifiers before 'printf'
   39 | printf("%d %d %d \n",a,b,c);
      | ^~~~~~
main.c:42:1: error: expected declaration specifiers before 'return'
   42 | return 0;
      | ^~~~~~
main.c:45:1: error: expected declaration specifiers before '}' token
   45 | }
      | ^
main.c:3:5: error: old-style parameter declarations in prototyped function definition
    3 | int main(void)
      |     ^~~~
main.c:46: error: expected '{' at end of input
Language: C

#include<stdio.h>

int main(void)

int a,b,c,x;

scanf("%d %d %d",&a,&b,&c);

if(a>b){

x=a;

a=b;

b=x;

}

if(a>c){

x=a;

a=c;

c=x;

}

if(b>c){

x=b;

b=c;

c=x;

}

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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected declaration specifiers before 'scanf'
    7 | scanf("%d %d %d",&a,&b,&c);
      | ^~~~~
main.c:9:1: error: expected declaration specifiers before 'if'
    9 | if(a>b){
      | ^~
main.c:19:1: error: expected declaration specifiers before 'if'
   19 | if(a>c){
      | ^~
main.c:29:1: error: expected declaration specifiers before 'if'
   29 | if(b>c){
      | ^~
main.c:39:1: error: expected declaration specifiers before 'printf'
   39 | printf("%d %d %d \n",a,b,c);
      | ^~~~~~
main.c:42:1: error: expected declaration specifiers before 'return'
   42 | return 0;
      | ^~~~~~
main.c:45:1: error: expected declaration specifiers before '}' token
   45 | }
      | ^
main.c:3:5: error: old-style parameter declarations in prototyped function definition
    3 | int main(void)
      |     ^~~~
main.c:46: error: expected '{' at end of input
Language: C

#include<stdio.h>

int main(void)

int a,b,c,x;

scanf("%d %d %d",&a,&b,&c);

if(a>b){

x=a;

a=b;

b=x;

}

if(a>c){

x=a;

a=c;

c=x;

}

if(b>c){

x=b;

b=c;

c=x;

}

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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected declaration specifiers before 'scanf'
    7 | scanf("%d %d %d",&a,&b,&c);
      | ^~~~~
main.c:9:1: error: expected declaration specifiers before 'if'
    9 | if(a>b){
      | ^~
main.c:19:1: error: expected declaration specifiers before 'if'
   19 | if(a>c){
      | ^~
main.c:29:1: error: expected declaration specifiers before 'if'
   29 | if(b>c){
      | ^~
main.c:39:1: error: expected declaration specifiers before 'printf'
   39 | printf("%d %d %d\n",a,b,c);
      | ^~~~~~
main.c:42:1: error: expected declaration specifiers before 'return'
   42 | return 0;
      | ^~~~~~
main.c:45:1: error: expected declaration specifiers before '}' token
   45 | }
      | ^
main.c:3:5: error: old-style parameter declarations in prototyped function definition
    3 | int main(void)
      |     ^~~~
main.c:46: error: expected '{' at end of input
Language: C

#include <stdio.h>
int main(void){
  int a, b, c, tmp;
  scanf("%d %d %d\n",&a, &b, &c);

  if(1<=a && a <= 10000 && 1<=b && b <= 10000 && 1<=c && c <= 10000){
    if(a > c) {
      tmp = a;
      a = c;
      c = tmp;
    }
    if(b > c) {
      tmp = b;
      b = c;
      c = tmp;
    }
    if(a > b) {
      tmp = a
      a = b;
      c = temp'
    }

  }

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:14: error: expected ';' before 'a'
   18 |       tmp = a
      |              ^
      |              ;
   19 |       a = b;
      |       ~       
main.c:20:15: warning: missing terminating ' character
   20 |       c = temp'
      |               ^
main.c:20:15: error: missing terminating ' character
main.c:20:11: error: 'temp' undeclared (first use in this function); did you mean 'tmp'?
   20 |       c = temp'
      |           ^~~~
      |           tmp
main.c:20:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:15: error: expected ';' before '}' token
   20 |       c = temp'
      |               ^
      |               ;
   21 |     }
      |     ~
Language: C

#include <stdio.h>
int main(void){
  int a, b, c, tmp;
  scanf("%d %d %d\n",&a, &b, &c);

  if(1<=a && a <= 10000 && 1<=b && b <= 10000 && 1<=c && c <= 10000){
    
    if(a > c) {
      tmp = a;
      a = c;
      c = tmp;
    }

    if(b > c) {
      tmp = b;
      b = c;
      c = tmp;
    }

    if(a > b) {
      tmp = a;
      a = b;
      c = temp;
    }

  }

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

  return 0;
}

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

#include <stdio.h>
int main(void){
  int a, b, c, tmp;
  scanf("%d %d %d\n",&a, &b, &c);

  if(1<=a && a <= 10000 && 1<=b && b <= 10000 && 1<=c && c <= 10000){
    
    if(a > c) {
      tmp = a;
      a = c;
      c = tmp;
    }

    if(b > c) {
      tmp = b;
      b = c;
      c = tmp;
    }

    if(a > b) {
      tmp = a;
      a = b;
      b = temp;
    }

  }

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

  return 0;
}

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

#include <stdio.h>
int main(void){
  int a, b, c, tmp;
  scanf("%d %d %d\n",&a, &b, &c);

  if(1<=a && a <= 10000){
    if(1<=b && b <= 10000){ 
      if(1<=c && c <= 10000){
    
    if(a > c) {
      tmp = a;
      a = c;
      c = tmp;
    }

    if(b > c) {
      tmp = b;
      b = c;
      c = tmp;
    }

    if(a > b) {
      tmp = a;
      a = b;
      b = temp;
    }
    }
    }
  }

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

  return 0;
}

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

#include <stdio.h>
int main(void){
  int a, b, c, tmp;

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

  if(1<=a && a <= 10000 && 1<=b && b <= 10000 1<=c && c <= 10000){
    
    if(a > c) {
      tmp = a;
      a = c;
      c = tmp;
    }

    if(b > c) {
      tmp = b;
      b = c;
      c = tmp;
    }

    if(a > b) {
      tmp = a;
      a = b;
      b = temp;
    }
   
  }

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:46: error: expected ')' before numeric constant
    7 |   if(1<=a && a <= 10000 && 1<=b && b <= 10000 1<=c && c <= 10000){
      |     ~                                        ^~
      |                                              )
main.c:24:11: error: 'temp' undeclared (first use in this function); did you mean 'tmp'?
   24 |       b = temp;
      |           ^~~~
      |           tmp
main.c:24:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(void){
  int a, b, c, tmp;

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

  if(1<=a && a <= 10000 && 1<=b && b <= 10000 && 1<=c && c <= 10000){
    
    if(a > c) {
      tmp = a;
      a = c;
      c = tmp;
    }

    if(b > c) {
      tmp = b;
      b = c;
      c = tmp;
    }

    if(a > b) {
      tmp = a;
      a = b;
      b = temp;
    }
   
  }

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

  return 0;
}

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

#include <stdio.h>
int main(void){
  int a, b, c, tmp;

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

  if(1<=a && a<=10000 && 1<=b && b<=10000 && 1<=c&& c<= 10000){
    
    if(a > c) {
      tmp = a;
      a = c;
      c = tmp;
    }

    if(b > c) {
      tmp = b;
      b = c;
      c = tmp;
    }

    if(a > b) {
      tmp = a;
      a = b;
      b = temp;
    }

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

   
  }

  return 0;
}

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

#include <stdio.h>
int main(void){
  int a, b, c, tmp;

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

  //if(1<=a && a<=10000 && 1<=b && b<=10000 && 1<=c&& c<= 10000){
    
    if(a > c) {
      tmp = a;
      a = c;
      c = tmp;
    }

    if(b > c) {
      tmp = b;
      b = c;
      c = tmp;
    }

    if(a > b) {
      tmp = a;
      a = b;
      b = temp;
    //}

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

  }

  return 0;
}

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

#include <stdio.h>
int main(void){
  int a, b, c, tmp;

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

  //if(1<=a && a<=10000 && 1<=b && b<=10000 && 1<=c&& c<= 10000){
    
    if(a > c) {
      tmp = a;
      a = c;
      c = tmp;
    }

    if(b > c) {
      tmp = b;
      b = c;
      c = tmp;
    }

    if(a > b) {
      tmp = a;
      a = b;
      b = temp;
    }

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

  //}

  return 0;
}

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

#include <stdio.h>
int main(void){
  int a, b, c, tmp;

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

  if(1<=a && a<=10000 && 1<=b && b<=10000 && 1<=c && c<= 10000){
    
    if(a > c) {
      tmp = a;
      a = c;
      c = tmp;
    }

    else if(b > c) {
      tmp = b;
      b = c;
      c = tmp;
    }

    else if(a > b) {
      tmp = a;
      a = b;
      b = temp;
    }

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

  }

  return 0;
}

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

int main(void)
{
	int a;			/* ??\?????? */
	int b;			/* ??\?????? */
	int c;			/* ??\?????? */
	int i;			/* ???????????¨?????° */
	int j;			/* ???????????¨?????° */
	int tmp;		/* ????\???¨ */
	int data[3];	/* ??????   */
	
	/* input */
	scanf("%d %d %d", &a, &b, &c);
	data[3] = { a, b, c };
	
	/* process	*/
	for( i = 0; i < ( 3 - 1 ); i++){
		for( j = ( i + 1 ); j == ( 3 - 1 ); j++){
			if( data[i] > data[j] ){
				tmp = data[i];
				data[i] = data[j];
				data[j] = tmp;
			}
		}
	}
	
	/* output */
	printf("%d %d %d\n", data[0], data[1], data[2]);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   12 |         scanf("%d %d %d", &a, &b, &c);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:12:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   12 |         scanf("%d %d %d", &a, &b, &c);
      |         ^~~~~
main.c:12:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:19: error: expected expression before '{' token
   13 |         data[3] = { a, b, c };
      |                   ^
main.c:27:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   27 |         printf("%d %d %d\n", data[0], data[1], data[2]);
      |         ^~~~~~
main.c:27:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:27:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:27:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(void)
{
	int a;			/* ??\?????? */
	int b;			/* ??\?????? */
	int c;			/* ??\?????? */
	int i;			/* ???????????¨?????° */
	int j;			/* ???????????¨?????° */
	int tmp;		/* ????\???¨ */
	int data[3];		/* ??????   */
	
	/* input */
	scanf("%d %d %d", &a, &b, &c);
	data[] = { a, b, c };
	
	/* process	*/
	for( i = 0; i < ( 3 - 1 ); i++){
		for( j = ( i + 1 ); j == ( 3 - 1 ); j++){
			if( data[i] > data[j] ){
				tmp = data[i];
				data[i] = data[j];
				data[j] = tmp;
			}
		}
	}
	
	/* output */
	printf("%d %d %d\n", data[0], data[1], data[2]);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   12 |         scanf("%d %d %d", &a, &b, &c);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:12:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   12 |         scanf("%d %d %d", &a, &b, &c);
      |         ^~~~~
main.c:12:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:14: error: expected expression before ']' token
   13 |         data[] = { a, b, c };
      |              ^
main.c:27:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   27 |         printf("%d %d %d\n", data[0], data[1], data[2]);
      |         ^~~~~~
main.c:27:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:27:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:27:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main()
{
	/* ??\?????¨ */
	int input;
	
	/* ????????¨ */
	int out[2];
	
	/* ????\???¨ */
	int in_count;
	int out_count;
	int temp;
	
	/* ????????? */
	input = 0;
	temp = 0;
	
	/* ??\????????? */
	for( in_count = 0; in_count < 3; in_count++ ){
		scanf( "%d",&input );
		out[in_count] = input;
	}
	
	/* ?????? */
	for( in_count = 0; in_count < 3; in_count++ ){
		for( out_count = 0; out_count < 3, out_count++ ){
			if( out[out_count + 1] < out[out_count] ){
				temp = out[out_count + 1];
				out[out_count + 1] = out[out_count];
				out[out_count] = temp;
			}
			else{
				/* ???????????? */
			}
			temp = 0;
		}
	}
	
	
	printf( "%d %d %d", out[0], out[1], out[2] );
	return 0;
	
}

Compiler output:
main.c: In function 'main':
main.c:20:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   20 |                 scanf( "%d",&input );
      |                 ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main()
main.c:20:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   20 |                 scanf( "%d",&input );
      |                 ^~~~~
main.c:20:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:26:63: error: expected ';' before ')' token
   26 |                 for( out_count = 0; out_count < 3, out_count++ ){
      |                                                               ^~
      |                                                               ;
main.c:40:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   40 |         printf( "%d %d %d", out[0], out[1], out[2] );
      |         ^~~~~~
main.c:40:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:40:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:40:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

include<stdio.h>

int main()
{
	int a,b,c,sort[3],i,j;
	scanf("%d %d %d",&a,&b,&c);

	sort[0]=a;
	sort[1]=b;
	sort[2]=c;

	for(i=0;i<3;i++){
		for(j=2;j>i;j--){
			if(sort[j]<sort[j-1]){
				int temp=sort[j];
				sort[j]=sort[j-1];
				sort[j-1]=temp;
			}
		}
	}

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


	return 0;
}

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

#include<stdio.h>

void InsertSort(int *a,int n){
    int i,j,v;

    for (i = 1; i < n; i++) {
        v=a[i];
        j=i-1;
        while (j!=-1&&a[j]>v) {
            a[j+1]=a[j];
            j--;
        }
        a[j+1]=v;

    }

}


int main(int argc, char const *argv[]) {
    int a[3],i;
    for (i = 0; i < 3; i++) {
    scanf("%d",&a[i]);
    }
    InsertSort(a,3);
    for (i = 0; i < 2; i++) {
        printf("%d ",a[i]);
    }
    printf("%d\n"a[2]);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:29:18: error: expected ')' before 'a'
   29 |     printf("%d\n"a[2]);
      |           ~      ^
      |                  )
Language: C

  


#include <stdio.h>

int main() {

int a,b,c;

scanf("%d",&a);

scanf("%d",&b);

if(a>b)a+=b,b=a-b,a-=b;

scanf("%d",&c);

f(b>c)b+=c,c=b-c,b-=c;

if(a>b)a+=b,b=a-b,a-=b;

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

return 0;

}
 

Compiler output:
main.c: In function 'main':
main.c:18:1: error: implicit declaration of function 'f' [-Wimplicit-function-declaration]
   18 | f(b>c)b+=c,c=b-c,b-=c;
      | ^
main.c:18:7: error: expected ';' before 'b'
   18 | f(b>c)b+=c,c=b-c,b-=c;
      |       ^
      |       ;
Language: C

#include <stdio.h>

int main(void)

{

  int a,b,c;

  scanf("%d %d %d",&a,&b,&c);

  if(a<b){

     if (a>c){

         printf("c a b\n");

     }

    else if(a<c<b){

         printf("a c b\n");

     }

    else(c>b){

        printf("a b c\n");

    }

}

else{

    if(c<b){

       printf("c b a\n");

     }

     else if(b<c<a){

        printf("b c a\n");

     }

    else{

        printf("b a c\n");

    }

}

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:25:14: error: expected ';' before '{' token
   25 |     else(c>b){
      |              ^
      |              ;
Language: C

#include <stdio.h>

int main(void)

{

  int a,b,c;

  scanf("%d %d %d",&a,&b,&c);

  if(a<b){

     if (a>c){

         printf("c a b\n");

     }

    else if(a<c<b){

         printf("a c b\n");

     }

    else(c>b){

        printf("a b c\n");

    }

 }

 else{

    if(c<b){

       printf("c b a\n");

     }

     else if(b<c<a){

        printf("b c a\n");

     }

    else{

        printf("b a c\n");

    }

 }

 return 0;

}

Compiler output:
main.c: In function 'main':
main.c:25:14: error: expected ';' before '{' token
   25 |     else(c>b){
      |              ^
      |              ;
Language: C

#include <stdio.h>

int main(void)

{

  int a,b,c;

  scanf("%d %d %d",&a,&b,&c);

  if(a<b){

     if (a>c){

         printf("c a b\n");

     }

    else if(a<c<b){

         printf("a c b\n");

     }

    else(c>b){

        printf("a b c\n");

    }

  }

  else{

    if(c<b){

       printf("c b a\n");

     }

     else if(b<c<a){

        printf("b c a\n");

     }

    else{

        printf("b a c\n");

    }

  }

  return 0;

}

Compiler output:
main.c: In function 'main':
main.c:25:14: error: expected ';' before '{' token
   25 |     else(c>b){
      |              ^
      |              ;
Language: C

#include <stdio.h>

int main(void)

{

  int a,b,c;

  scanf("%d %d %d",&a,&b,&c);

  if(a<b){

     if(a>c){

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

     }

     else if(a<c<b){

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

     }

     else(b<c){

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

     }

 }

 else{

     if(b>c){

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

     }

     else if(b<c<a){

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

     }

     else{

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

     }

  }

 return 0;

 } 

Compiler output:
main.c: In function 'main':
main.c:25:15: error: expected ';' before '{' token
   25 |      else(b<c){
      |               ^
      |               ;
Language: C

#include<studio.h>
int main(void){

 int a,b,c,aa,bb,cc;

  scanf("%d%d%d",&a,&b,&c);

  if(a > b){
    aa = a;
    a = b;
    b = aa;
}

if(b > c){
    bb = b;
    b = c;
    c = bb;
}

if(a > b){
    cc = a;
    a = b;
    b = cc;
}

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

return 0;
}

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

#include<stdio.h>

 int main(void)
{
  int a,b,c,az,bz,cz;

  scanf("%d%d%d?\n",&a,&b,&c);

  if(a > b){
   az = b;
   b = a;
   a = az;
}
  if(b > c){
   bz = c:
   c = b;
   b = bz;
}

  if(a > b){
   cz = b;
    b = a;
   a = cz;
}

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:10: error: expected ';' before ':' token
   15 |    bz = c:
      |          ^
      |          ;
Language: C

#include<stdio.h>

int main(void)

{

int a,b,c,t,i,j;

scanf("%d %d %d",&a,&b,&c);

if(a<b){

t=a;

a=b;

b=t;

}

if(a>c){

t=a;

a=c;

c=t;

}

if(b>c){

t=b;

b=c;

c=t;

}

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

}

return 0;

}

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

#include<stdio.h>

int main(void){


int a,b,c,x,y,z;


scanf("%d%d%d",&a,&b,&c);


if(a>b){


x=a;


a=b;


b=x;


}


if(b>c){


y=b;


b=c;


c=y;


}


if(a>b){


z=a;


a=b;


b=z;


}


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


return 0;

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