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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:27:23: error: lvalue required as left operand of assignment
   27 |         if(b=c||c=a||a=b){
      |                       ^
Language: C

include <stdio.h>
int main(void) {
    int a,b,c;
    int tmp;
    int i;
    scanf("%d %d %d",&a,&b,&c);
    for( i = 1 ; i <= 2 ; i++ ){
        if( a > b ){
            tmp = a;
            a = 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:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

include <stdio.h>

int main(void) {
    int a,b,c;
    int tmp;
    int i;
    scanf("%d %d %d",&a,&b,&c);
    for( i = 1 ; i <= 2 ; i++ ){
        if( a > b ){
            tmp = a;
            a = 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:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include <stdio.h>

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

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

#include<stdio.h>

int main(void){
int i,j,tmp,a[3]

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

for(i=0;i<2;i++){
for(j=i+1;j<3;j++){
if(a[i]>a[j])
{
tmp=a[j]; 
a[j]=a[i];
a[i]=tmp;
}}}

for(i=0;i<3;i++){
printf("%d",a[i]);}
printf("\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<3;i++){
      | ^~~
main.c:6:16: error: expected ';' before ')' token
    6 | for(i=0;i<3;i++){
      |                ^
      |                ;
main.c:6:16: error: expected statement before ')' token
main.c:7:13: error: 'a' undeclared (first use in this function)
    7 | scanf("%d",&a[i]);}
      |             ^
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void){
int i,j,tmp,a[3]

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

for(i=0;i<2;i++){
for(j=i+1;j<3;j++){
if(a[i]>a[j])
{
tmp=a[j]; 
a[j]=a[i];
a[i]=tmp;
}}}

for(i=0;i<3;i++){
printf("%d",a[i]);}
printf("\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<3;i++){
      | ^~~
main.c:6:16: error: expected ';' before ')' token
    6 | for(i=0;i<3;i++){
      |                ^
      |                ;
main.c:6:16: error: expected statement before ')' token
main.c:7:13: error: 'a' undeclared (first use in this function)
    7 | scanf("%d",&a[i]);
      |             ^
main.c:7:13: 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,temp1,temp2,temp3;

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:7:26: error: expected ';' before 'if'
    7 | scanf("%d%d%d", &a,&b,&c)
      |                          ^
      |                          ;
    8 | 
    9 | if(a>b){
      | ~~
Language: C

#include <stdio.h>

void swap(int a, int b){
  int temp;
  if (a > b) {
    temp = a;
    a = b;
    b = temp;
  }
}

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

Compiler output:
main.c: In function 'main':
main.c:18:3: error: 'else' without a previous 'if'
   18 |   else printf("%d %d %d", a, b, c);
      |   ^~~~
Language: C

#include <stdio.h>

int main(void){
  int a, b, c;
  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 > b) {
    temp = a;
    a = b;
    b = temp;
  }
  printf("%d %d %d", a, b, c);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'temp' undeclared (first use in this function)
    7 |     temp = a;
      |     ^~~~
main.c:7:5: 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;

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

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

return 0;	
}

Compiler output:
main.c: In function 'main':
main.c:8:11: error: lvalue required as left operand of assignment
    8 | if(a<=c&&c=b){printf("%d %d %d\n",a,c,b );}
      |           ^
Language: C

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

  int a,b,c;

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

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

  return 0;

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

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

Compiler output:
main.c: In function 'main':
main.c:9:3: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
    9 |   swap(b, c);
      |   ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected ';' before 'printf'
    7 | a = c
      |      ^
      |      ;
    8 | printf("%d %d %d\n", a, b, c);}
      | ~~~~~~
main.c:10:1: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   10 | elseif(a > c){
      | ^~~~~~
main.c:10:14: error: expected ';' before '{' token
   10 | elseif(a > c){
      |              ^
      |              ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected ';' before 'printf'
    7 | a = c
      |      ^
      |      ;
    8 | printf("%d %d %d\n", a, b, c);}
      | ~~~~~~
main.c:10:1: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   10 | elseif(a > c){
      | ^~~~~~
main.c:10:14: error: expected ';' before '{' token
   10 | elseif(a > c){
      |              ^
      |              ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:1: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   10 | elseif(a > c){
      | ^~~~~~
main.c:10:14: error: expected ';' before '{' token
   10 | elseif(a > c){
      |              ^
      |              ;
main.c:14:14: error: expected ';' before '{' token
   14 | elseif(b > c){
      |              ^
      |              ;
main.c:17:1: error: 'else' without a previous 'if'
   17 | else{
      | ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:1: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   10 | elseif(a > c){
      | ^~~~~~
main.c:10:14: error: expected ';' before '{' token
   10 | elseif(a > c){
      |              ^
      |              ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:1: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    9 | elseif(a > c){
      | ^~~~~~
main.c:9:14: error: expected ';' before '{' token
    9 | elseif(a > c){
      |              ^
      |              ;
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:1: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    9 | elseif(a > c){
      | ^~~~~~
main.c:9:14: error: expected ';' before '{' token
    9 | elseif(a > c){
      |              ^
      |              ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:1: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    9 | elseif(a > c){
      | ^~~~~~
main.c:9:14: error: expected ';' before '{' token
    9 | elseif(a > c){
      |              ^
      |              ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:1: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    9 | elseif(a > c){
      | ^~~~~~
main.c:9:14: error: expected ';' before '{' token
    9 | elseif(a > c){
      |              ^
      |              ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:2: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    9 | {elseif(a > c){
      |  ^~~~~~
main.c:9:15: error: expected ';' before '{' token
    9 | {elseif(a > c){
      |               ^
      |               ;
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:1: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    9 | elseif(a > c);{
      | ^~~~~~
main.c:13:14: error: expected ';' before '{' token
   13 | elseif(b > c){
      |              ^
      |              ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:1: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    9 | elseif(a > c);{
      | ^~~~~~
main.c:16:1: error: 'else' without a previous 'if'
   16 | else{
      | ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:1: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    9 | elseif(a > c){
      | ^~~~~~
main.c:9:14: error: expected ';' before '{' token
    9 | elseif(a > c){
      |              ^
      |              ;
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:7: error: 'temp' undeclared (first use in this function)
    8 |       temp = c;
      |       ^~~~
main.c:8:7: 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, d;
  scanf("%d%d%d", &a, &b, &c);
  if(a > b){
    if(a > c && b > c){
      temp = c;
      c = a;
      a = temp;
      printf("%d %d %d\n", a, b, c);
    }
    else if(a > c){
      temp = c;
      c = a;
      a = temp;
      temp = c;
      c = b;
      b = temp;
      printf("%d %d %d\n", a, b, c);
    }
    else if(b > c){
      temp = c;
      c = b;
      b = temp;
      printf("%d %d %d\n", a, b, c);
    }
    else{
      printf("%d %d %d\n", a, b, c);
    }
  }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:7: error: 'temp' undeclared (first use in this function)
    8 |       temp = c;
      |       ^~~~
main.c:8:7: 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, temp;

array[0]-array[2]
int sorted = 0;
for(int j = 0; j < 3; j++){
for(int i = sorted; i < 3; i++){
   temp = INT.MAX;
   if(temp >= array[i]){
      temp = i;   
}
int old = array[sorted];
array[sorted] = array[temp];
array[temp] = old;

sorted++;
}
 
9 10 2

sorted = 0

cursmall = 2
int index;


Iteration 1:
unsorted = 9 10 3
0 1 2
index  = 2
unsorted[2] = 3
sortedArray = [3, cx; xxc]

Compiler output:
main.c: In function 'main':
main.c:7:1: error: 'array' undeclared (first use in this function)
    7 | array[0]-array[2]
      | ^~~~~
main.c:7:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:18: error: expected ';' before 'int'
    7 | array[0]-array[2]
      |                  ^
      |                  ;
    8 | int sorted = 0;
      | ~~~               
main.c:10:13: error: 'sorted' undeclared (first use in this function)
   10 | for(int i = sorted; i < 3; i++){
      |             ^~~~~~
main.c:11:11: error: 'INT' undeclared (first use in this function)
   11 |    temp = INT.MAX;
      |           ^~~
main.c:22:2: error: expected ';' before numeric constant
   22 | 9 10 2
      |  ^~~
      |  ;
main.c:30:1: error: 'Iteration' undeclared (first use in this function)
   30 | Iteration 1:
      | ^~~~~~~~~
main.c:30:10: error: expected ';' before numeric constant
   30 | Iteration 1:
      |          ^~
      |          ;
main.c:35:1: error: expected declaration or statement at end of input
   35 | sortedArray = [3, cx; xxc]
      | ^~~~~~~~~~~
main.c:35:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>

int main(){ 20, 222, 6          20, 222, 6      20,6, 222

   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;
   }

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

Compiler output:
main.c: In function 'main':
main.c:3:23: error: expected ';' before numeric constant
    3 | int main(){ 20, 222, 6          20, 222, 6      20,6, 222
      |                       ^         ~~
      |                       ;
main.c:7:21: error: 'a' undeclared (first use in this function)
    7 |    scanf("%d%d%d", &a, &b, &c);
      |                     ^
main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:25: error: 'b' undeclared (first use in this function)
    7 |    scanf("%d%d%d", &a, &b, &c);
      |                         ^
main.c:7:29: error: 'c' undeclared (first use in this function)
    7 |    scanf("%d%d%d", &a, &b, &c);
      |                             ^
main.c:10:6: error: 'x' undeclared (first use in this function)
   10 |      x = a;
      |      ^
main.c:15:6: error: 'y' undeclared (first use in this function)
   15 |      y = b;
      |      ^
main.c:20:6: error: 'z' undeclared (first use in this function)
   20 |      z = a;
      |      ^
Language: C

#include <math.h>

int main()
{
    int a[3];
    int i, j;
    int temp;

    scanf("%d %d %d", &a[0], &a[1], &a[2]);

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

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

    rerturn 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 |     scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |     ^~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    1 | #include <math.h>
  +++ |+#include <stdio.h>
    2 | 
main.c:9:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 |     scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |     ^~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:21:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   21 |     printf("%d %d %d?\n", a[0], a[1], a[2]);
      |     ^~~~~~
main.c:21:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:21:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:21:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:23:5: error: 'rerturn' undeclared (first use in this function)
   23 |     rerturn 0;
      |     ^~~~~~~
main.c:23:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:12: error: expected ';' before numeric constant
   23 |     rerturn 0;
      |            ^~
      |            ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 |     scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |     ^~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    1 | #include <math.h>
  +++ |+#include <stdio.h>
    2 | 
main.c:9:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 |     scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |     ^~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:21:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   21 |     printf("%d %d %d\n", a[0], a[1], a[2]);
      |     ^~~~~~
main.c:21:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:21:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:21:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:23:5: error: 'rerturn' undeclared (first use in this function)
   23 |     rerturn 0;
      |     ^~~~~~~
main.c:23:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:12: error: expected ';' before numeric constant
   23 |     rerturn 0;
      |            ^~
      |            ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 |     scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |     ^~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    1 | #include <math.h>
  +++ |+#include <stdio.h>
    2 | 
main.c:9:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 |     scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |     ^~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:21:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   21 |     printf("%d %d %d\n", a[0], a[1], a[2]);
      |     ^~~~~~
main.c:21:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:21:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:21:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:23:5: error: 'rerturn' undeclared (first use in this function)
   23 |     rerturn 0;
      |     ^~~~~~~
main.c:23:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:12: error: expected ';' before numeric constant
   23 |     rerturn 0;
      |            ^~
      |            ;
Language: C

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

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

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

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

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

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

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

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

#define S(a,b) if(a>b){a^=b^=a^=b;}
main(a,b,c){
    scanf("%d%d%d",&a,&b,&c);
    S(a,b),S(a,c),S(b,c)
    printf("%d %d %d\n",a,b,c);
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(a,b,c){
      | ^~~~
main.c: In function 'main':
main.c:2:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:2:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:2:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:3:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |     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 | #define S(a,b) if(a>b){a^=b^=a^=b;}
main.c:3:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |     scanf("%d%d%d",&a,&b,&c);
      |     ^~~~~
main.c:3:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:11: error: expected expression before ',' token
    4 |     S(a,b),S(a,c),S(b,c)
      |           ^
Language: C

#include <stdio.h>

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

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

  if(a > b){
    z = a;
    a = b;
    b = z;
  }
  if(b > c){
    z = b;
    b = c;
    c = z;
  }
  if(a > b){
    z = a;
    a = b;
    b = z;
  }

  return0;
}

Compiler output:
main.c: In function 'main':
main.c:25:3: error: 'return0' undeclared (first use in this function)
   25 |   return0;
      |   ^~~~~~~
main.c:25:3: 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, z;

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

  if(a > b){
    z = a;
    a = b;
    b = z;
  }
  if(b > c){
    z = b;
    b = c;
    c = z;
  }
  if(a > b){
    z = a;
    a = b;
    b = z;
  }

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:25:30: error: expected ';' before ')' token
   25 |   printf("%d %d %d"), a, b, c);
      |                              ^
      |                              ;
main.c:25:30: error: expected statement before ')' token
Language: C

#include <stdio.h>

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

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

  if(a <= b){
    if(b <= c){
      printf("%d %d %d", a, b, c);
      break;
    } else {
      d = c;
      c = b;
      b = d;
      printf("%d %d %d", a, b, c);
      break;
  } else {
     d = b;
     b = a;
     a = d;
     if(b <= c){
      printf("%d %d %d", a, b, c);
      break;
    } else {
      d = c;
      c = b;
      b = d;
      printf("%d %d %d", a, b, c);
      break;
    }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:7: error: break statement not within loop or switch
   14 |       break;
      |       ^~~~~
main.c:20:7: error: break statement not within loop or switch
   20 |       break;
      |       ^~~~~
main.c:21:5: error: expected '}' before 'else'
   21 |   } else {
      |     ^~~~
main.c:27:7: error: break statement not within loop or switch
   27 |       break;
      |       ^~~~~
main.c:33:7: error: break statement not within loop or switch
   33 |       break;
      |       ^~~~~
main.c:37:1: error: expected declaration or statement at end of input
   37 | }
      | ^
Language: C

#include <stdio.h>

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

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

  if(a <= b){
    if(b <= c){
    } else {
      d = c;
      c = b;
      b = d;
  } else {
     d = b;
     b = a;
     a = d;
     if(b <= c){
    } else {
      d = c;
      c = b;
      b = d;
    }

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

  return 0;
}

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

#include <stdio.h>

int main(void){

int a,b,c;

scanf("%d"&a);
scanf("%d"&b);
scanf("%d"&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>a&&a>c){
printf("%d %d %d\n",b,a,c);
}
else if(b>c&&c>a){
printf("%d %d %d\n",b,c,a);
}
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);
}

Compiler output:
main.c: In function 'main':
main.c:7:11: error: invalid operands to binary & (have 'char *' and 'int')
    7 | scanf("%d"&a);
      |       ~~~~^
      |       |
      |       char *
main.c:8:11: error: invalid operands to binary & (have 'char *' and 'int')
    8 | scanf("%d"&b);
      |       ~~~~^
      |       |
      |       char *
main.c:9:11: error: invalid operands to binary & (have 'char *' and 'int')
    9 | scanf("%d"&c);
      |       ~~~~^
      |       |
      |       char *
main.c:28:1: error: expected declaration or statement at end of input
   28 | }
      | ^
Language: C

#include <stdio.h>

int main(void){

int a,b,c;

scanf("%d"&a);
scanf("%d"&b);
scanf("%d"&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>a&&a>c){
printf("%d %d %d\n",b,a,c);
}
else if(b>c&&c>a){
printf("%d %d %d\n",b,c,a);
}
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);
}

Compiler output:
main.c: In function 'main':
main.c:7:11: error: invalid operands to binary & (have 'char *' and 'int')
    7 | scanf("%d"&a);
      |       ~~~~^
      |       |
      |       char *
main.c:8:11: error: invalid operands to binary & (have 'char *' and 'int')
    8 | scanf("%d"&b);
      |       ~~~~^
      |       |
      |       char *
main.c:9:11: error: invalid operands to binary & (have 'char *' and 'int')
    9 | scanf("%d"&c);
      |       ~~~~^
      |       |
      |       char *
main.c:28:1: error: expected declaration or statement at end of input
   28 | }
      | ^
Language: C

#include<stdio.h>
int main()
{
  int a0, a1, a2, i, min1, min2, min3;

  scanf("%d %d %d", &a0, &a1, &a2);

  min1 = a0

  for(i=1; i<3; i++){
    if(min1 > ai){
      min3 = min2;
      min2 = min1;
      min1 = ai;
    }
  }

  printf("%d %d %d\n", min1, min2, min3);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:12: error: expected ';' before 'for'
    8 |   min1 = a0
      |            ^
      |            ;
    9 | 
   10 |   for(i=1; i<3; i++){
      |   ~~~
Language: C

#include <stdio.h>

int main(void){

int a,b,c;

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

if(a>b&&b>c){
printf("%d %d %d\n",c,b,a);
}
else if(a>c&&c>b){
printf("%d %d %d\n",b,c,a);
}
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",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);
}

Compiler output:
main.c: In function 'main':
main.c:7:11: error: invalid operands to binary & (have 'char *' and 'int')
    7 | scanf("%d"&a);
      |       ~~~~^
      |       |
      |       char *
main.c:8:11: error: invalid operands to binary & (have 'char *' and 'int')
    8 | scanf("%d"&b);
      |       ~~~~^
      |       |
      |       char *
main.c:9:11: error: invalid operands to binary & (have 'char *' and 'int')
    9 | scanf("%d"&c);
      |       ~~~~^
      |       |
      |       char *
main.c:28:1: error: expected declaration or statement at end of input
   28 | }
      | ^
Language: C

#include <stdio.h>

int main(void){

int a,b,c;

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

if(a>b&&b>c){
printf("%d %d %d\n",c,b,a);
}
else if(a>c&&c>b){
printf("%d %d %d\n",b,c,a);
}
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",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);
}

Compiler output:
main.c: In function 'main':
main.c:7:11: error: invalid operands to binary & (have 'char *' and 'int')
    7 | scanf("%d"&a);
      |       ~~~~^
      |       |
      |       char *
main.c:8:11: error: invalid operands to binary & (have 'char *' and 'int')
    8 | scanf("%d"&b);
      |       ~~~~^
      |       |
      |       char *
main.c:9:11: error: invalid operands to binary & (have 'char *' and 'int')
    9 | scanf("%d"&c);
      |       ~~~~^
      |       |
      |       char *
main.c:28:1: error: expected declaration or statement at end of input
   28 | }
      | ^
Language: C

#include <stdio.h>

int main(void){

int a,b,c;

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

if(a>b&&b>c){
printf("%d %d %d\n",c,b,a);
}
else if(a>c&&c>b){
printf("%d %d %d\n",b,c,a);
}
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",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);
}
return  0;
}

Compiler output:
main.c: In function 'main':
main.c:7:11: error: invalid operands to binary & (have 'char *' and 'int')
    7 | scanf("%d"&a);
      |       ~~~~^
      |       |
      |       char *
main.c:8:11: error: invalid operands to binary & (have 'char *' and 'int')
    8 | scanf("%d"&b);
      |       ~~~~^
      |       |
      |       char *
main.c:9:11: error: invalid operands to binary & (have 'char *' and 'int')
    9 | scanf("%d"&c);
      |       ~~~~^
      |       |
      |       char *
Language: C

#include <stdio.h>

int main(void){

int a,b,c;

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

if(a>b&&b>c){
printf("%d %d %d\n",c,b,a);
}
else if(a>c&&c>b){
printf("%d %d %d\n",b,c,a);
}
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",a,c,b);
}
else if(c>a&&a>b){
printf("%d %d %d\n",b,a,c);
}
else{
printf("%d %d %d\n",a,b,c);
}
return  0;
}

Compiler output:
main.c: In function 'main':
main.c:7:11: error: invalid operands to binary & (have 'char *' and 'int')
    7 | scanf("%d"&a);
      |       ~~~~^
      |       |
      |       char *
main.c:8:11: error: invalid operands to binary & (have 'char *' and 'int')
    8 | scanf("%d"&b);
      |       ~~~~^
      |       |
      |       char *
main.c:9:11: error: invalid operands to binary & (have 'char *' and 'int')
    9 | scanf("%d"&c);
      |       ~~~~^
      |       |
      |       char *
Language: C

#include<stdio.h>
int main()
{
int a,b,c,max,mid,min;
scanf("%d %d %d",&a,&b,&c);
if(a>b){
max=a;
 if(max<c){
max=c;
mid=a;
min=b;
}

else if(max>c){
 if(b<c){
mid =c;
min =b;
 }
else
mid=b;
min=c;
}

 printf("%d %d %d \n"max,mid,min);
}

Compiler output:
main.c: In function 'main':
main.c:24:22: error: expected ')' before 'max'
   24 |  printf("%d %d %d \n"max,mid,min);
      |        ~             ^~~
      |                      )
main.c:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
Language: C

#include<stdio.h>
int main()
{
int a,b,c,max,mid,min;
scanf("%d %d %d",&a,&b,&c);
if(a>b){
max=a;
 if(max<c){
max=c;
mid=a;
min=b;
}

else if(max>c){
 if(b<c){
mid =c;
min =b;
 }
else
mid=b;
min=c;
}
}

 printf("%d %d %d \n"max,mid,min);
}

Compiler output:
main.c: In function 'main':
main.c:25:22: error: expected ')' before 'max'
   25 |  printf("%d %d %d \n"max,mid,min);
      |        ~             ^~~
      |                      )
Language: C

#include<stdio.h>
int main()
{
int a,b,c,max,mid,min;
scanf("%d %d %d",&a,&b,&c);
if(a>b){
max=a;
 if(max<c){
max=c;
mid=a;
min=b;
}

else if(max>c){
 if(b<c){
mid =c;
min =b;
 }
else{
mid=b;
min=c;
}
}
}

 printf("%d %d %d \n"max,mid,min);
}

Compiler output:
main.c: In function 'main':
main.c:26:22: error: expected ')' before 'max'
   26 |  printf("%d %d %d \n"max,mid,min);
      |        ~             ^~~
      |                      )
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", a, b, c);

   else if(b<c && c<a)
      puts("%d %d %d", b, c, a);

   else if(c<a && a<b)
      puts("%d %d %d", c, a, b);

   else if(a<c && c<b)
      puts("%d %d %d", a, c, b);

   else if(b<a && a<c)
      puts("%d %d %d", b, a, c);

   else if(c<b && b<a)
      puts("%d %d %d", c, b, a);

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:7: error: too many arguments to function 'puts'
   13 |       puts("%d %d %d", b, c, a);
      |       ^~~~
In file included from main.c:1:
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:16:7: error: too many arguments to function 'puts'
   16 |       puts("%d %d %d", c, a, b);
      |       ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:19:7: error: too many arguments to function 'puts'
   19 |       puts("%d %d %d", a, c, b);
      |       ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:22:7: error: too many arguments to function 'puts'
   22 |       puts("%d %d %d", b, a, c);
      |       ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
main.c:25:7: error: too many arguments to function 'puts'
   25 |       puts("%d %d %d", c, b, a);
      |       ^~~~
/usr/include/stdio.h:714:12: note: declared here
  714 | extern int puts (const char *__s);
      |            ^~~~
Language: C

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

else{
mid=b;
min=c;
}
}

}

 printf("%d %d %d \n"min,mid,max);
}

Compiler output:
main.c: In function 'main':
main.c:27:22: error: expected ')' before 'min'
   27 |  printf("%d %d %d \n"min,mid,max);
      |        ~             ^~~
      |                      )
Language: C

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

else{
max=a;
mid=b;
min=c;
}
}

}

 printf("%d %d %d \n"min,mid,max);
}

Compiler output:
main.c: In function 'main':
main.c:29:22: error: expected ')' before 'min'
   29 |  printf("%d %d %d \n"min,mid,max);
      |        ~             ^~~
      |                      )
Language: C

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

else{
max=a;
mid=b;
min=c;
}
}
 printf("%d %d %d \n",min,mid,max);
}

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

#include <stdio.h>

int main(void)  {
  int a, b, c, temp;
  scanf("%d %d %d", &a, &b, &c);
  
  if (a > c)  {
    temp = a;
    a = c;
    c = temp;
  }

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

  return 0; 
}

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:3: error: unknown type name 'it'; did you mean 'int'?
    5 |   it a, b, c;
      |   ^~
      |   int
main.c:6:3: error: 'max' undeclared (first use in this function)
    6 |   max=0;
      |   ^~~
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:12: error: expected '(' at end of input
main.c:11:3: error: expected declaration or statement at end of input
   11 |   else if
      |   ^~~~
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:10:24: error: expected ')' before 'a'
   10 |     printf("%d:%d:%d\n"a,b,c);
      |           ~            ^
      |                        )
main.c:12:24: error: expected ')' before 'c'
   12 |     printf("%d:%d:%d\n"c,b,a);
      |           ~            ^
      |                        )
main.c:14:23: error: expected ')' before 'a'
   14 |    printf("%d:%d:%d\n"a,c,b);
      |          ~            ^
      |                       )
main.c:16:24: error: expected ')' before 'b'
   16 |     printf("%d:%d:%d\n"b,a,c);
      |           ~            ^
      |                        )
main.c:18:25: error: expected ')' before 'b'
   18 |      printf("%d:%d:%d\n"b,c,a);
      |            ~            ^
      |                         )
main.c:20:25: error: expected ')' before 'c'
   20 |      printf("%d:%d:%d\n"c,a,b);
      |            ~            ^
      |                         )
Language: C

#include<stdio.h>
 
int main(){
     
    int x, a, b, c;
 
    scanf("%d %d %d\n", &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 = z;
    }

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

 
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:11: error: 'z' undeclared (first use in this function)
   24 |       b = z;
      |           ^
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;
  scanf("%d",&a);
  scanf("%d",&b);
  scanf("%d",&c);

  if(a > b && b > c){
    printf("%d:%d:%d\n"c,b,a);
}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"b,c,a);
}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"a,c,b);
}else if(c > a && a > b){
     printf("%d:%d:%d\n"b,a,c);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:24: error: expected ')' before 'c'
   10 |     printf("%d:%d:%d\n"c,b,a);
      |           ~            ^
      |                        )
main.c:12:24: error: expected ')' before 'a'
   12 |     printf("%d:%d:%d\n"a,b,c);
      |           ~            ^
      |                        )
main.c:14:23: error: expected ')' before 'b'
   14 |    printf("%d:%d:%d\n"b,c,a);
      |          ~            ^
      |                       )
main.c:16:24: error: expected ')' before 'c'
   16 |     printf("%d:%d:%d\n"c,a,b);
      |           ~            ^
      |                        )
main.c:18:25: error: expected ')' before 'a'
   18 |      printf("%d:%d:%d\n"a,c,b);
      |            ~            ^
      |                         )
main.c:20:25: error: expected ')' before 'b'
   20 |      printf("%d:%d:%d\n"b,a,c);
      |            ~            ^
      |                         )
Language: C

#include<stdio.h>

int main(){

  int a, b, c, ch;

  scanf("%d %d %d", &a, &b, &c);
  
  if ( a > b ) { 
    ch = a; 
    a = b; 
    b = ch; 
  }
  if ( c > b ) {
    ch = b;
    b = c;
    c = ch;
  }

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:22: error: expected ')' before 'a'
   20 |   printf("%d %d %d\n" a, b, c);
      |         ~            ^~
      |                      )