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

#inculde<stdio.h>

int main(void)

{

int a,b,c,n;

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

if(a<b<c){

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

}

if(a<c<b){

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

}

if(b<a<c){

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

}

if(b<c<a){

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

}

if(c<a<b){

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

}

if(c<b<a){

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

}

return 0;

}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
    1 | #inculde<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:9:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 | 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 | #inculde<stdio.h>
main.c:9:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 | scanf("%d %d %d",a,b,c);
      | ^~~~~
main.c:9:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 | printf("%d %d %d",a,b,c);
      | ^~~~~~
main.c:13:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:19:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   19 | printf("%d %d %d",a,c,b);
      | ^~~~~~
main.c:19:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:25:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   25 | printf("%d %d %d",b,a,c);
      | ^~~~~~
main.c:25:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:31:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   31 | printf("%d %d %d",b<c<a);
      | ^~~~~~
main.c:31:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:37:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   37 | printf("%d %d %d",c,a,b);
      | ^~~~~~
main.c:37:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:43:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   43 | printf("%d %d %d",c,b,a);
      | ^~~~~~
main.c:43:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int main(void){

int a, b, c;

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

if(a<b<c){

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

else if(a<c<b){

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

else if(b<a<c){

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

else if(b<c<a){

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

else if(c<a<b){

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

else {

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:1: error: expected '}' before 'else'
   13 | else if(a<c<b){
      | ^~~~
main.c:17:1: error: expected '}' before 'else'
   17 | else if(b<a<c){
      | ^~~~
main.c:21:1: error: expected '}' before 'else'
   21 | else if(b<c<a){
      | ^~~~
main.c:25:1: error: expected '}' before 'else'
   25 | else if(c<a<b){
      | ^~~~
main.c:29:1: error: expected '}' before 'else'
   29 | else {
      | ^~~~
main.c:35:1: error: expected declaration or statement at end of input
   35 | }
      | ^
Language: C

#include<stdio.h>

int main(void){

int a, b, c;

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

if(a<b<c){

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

}

else if(a<c<b){

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

}

else if(b<a<c){

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

}

else if(b<c<a){

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

}

else if(c<a<b){

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

]

else {

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

]

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:37:1: error: expected statement before ']' token
   37 | ]
      | ^
main.c:39:1: error: expected '}' before 'else'
   39 | else {
      | ^~~~
main.c:43:1: error: expected statement before ']' token
   43 | ]
      | ^
main.c:47:1: error: expected declaration or statement at end of input
   47 | }
      | ^
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",b,c,a);
		}
		else 
		{
			printf("%d %d %d\n",c,b,a);
		}
	}
	else if(b>a&&b>c)
	{
		if(a>c)
		{
			printf("%d %d %d\n",c,a,b);
		}
		else
		{
			printf("%d %d %d\n",a,c,b);
		}
	}
	else
	{
		if(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:15: error: 'b$$a' undeclared (first use in this function)
    7 |         if (a>b$$a>c)
      |               ^~~~
main.c:7:15: 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,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:9:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    9 | scanf("%d %d %d",&a,&b,&c);
      | ^~~~~
main.c:15:1: error: 'x' undeclared (first use in this function)
   15 | x=a;
      | ^
main.c:15:1: 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,x;

x=0
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:9:4: error: expected ';' before 'scanf'
    9 | x=0
      |    ^
      |    ;
   10 | scanf("%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&&b<c)

{

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

}

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&&b<c)
      | ^~
main.c:13:25: error: stray '\' in program
   13 |  printf("%d,%d,%d",a,b,c\n);
      |                         ^
main.c:17:1: error: expected declaration specifiers before 'return'
   17 | return 0;
      | ^~~~~~
main.c:19:1: error: expected declaration specifiers before '}' token
   19 | }
      | ^
main.c:3:5: error: old-style parameter declarations in prototyped function definition
    3 | int main (void)
      |     ^~~~
main.c:20: error: expected '{' at end of input
Language: C

/*2229*/

#include <stdio.h>

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


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

return 0;
}

Compiler output:
main.c:5:1: error: return type defaults to 'int' [-Wimplicit-int]
    5 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:9:34: error: expected ';' before '}' token
    9 | if (a > b){tmp = a;a = b; b = tmp};
      |                                  ^
      |                                  ;
main.c:10:34: error: expected ';' before '}' token
   10 | if (b > c){tmp = b;b = c; c = tmp};
      |                                  ^
      |                                  ;
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); return 0;}
	if(a<=c&&c<=b) {printf("%d %d %d\n",a,c,b); return 0;}
	if(b<=a&&a<=c) {printf("%d %d %d\n",b,a,c); return 0;}
	if(c<=a%%a<=b) {printf("%d %d %d\n",c,a,b); return 0;}
	if(b<=c%%c<=a) {printf("%d %d %d\n",b,c,a); return 0;}
	if(c<=b%%b<=a) {printf("%d %d %d\n",c,b,a); return 0;}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: expected expression before '%' token
    9 |         if(c<=a%%a<=b) {printf("%d %d %d\n",c,a,b); return 0;}
      |                 ^
main.c:10:17: error: expected expression before '%' token
   10 |         if(b<=c%%c<=a) {printf("%d %d %d\n",b,c,a); return 0;}
      |                 ^
main.c:11:17: error: expected expression before '%' token
   11 |         if(c<=b%%b<=a) {printf("%d %d %d\n",c,b,a); return 0;}
      |                 ^
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); return 0;}
	if(a<=c&&c<=b) {printf("%d %d %d\n",a,c,b); return 0;}
	if(b<=a&&a<=c) {printf("%d %d %d\n",b,a,c); return 0;}
	if(c<=a%%a<=b) {printf("%d %d %d\n",c,a,b); return 0;}
	if(b<=c%%c<=a) {printf("%d %d %d\n",b,c,a); return 0;}
	if(c<=b%%b<=a) {printf("%d %d %d\n",c,b,a); return 0;}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: expected expression before '%' token
    9 |         if(c<=a%%a<=b) {printf("%d %d %d\n",c,a,b); return 0;}
      |                 ^
main.c:10:17: error: expected expression before '%' token
   10 |         if(b<=c%%c<=a) {printf("%d %d %d\n",b,c,a); return 0;}
      |                 ^
main.c:11:17: error: expected expression before '%' token
   11 |         if(c<=b%%b<=a) {printf("%d %d %d\n",c,b,a); return 0;}
      |                 ^
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(c<=a%%a<=b) {printf("%d %d %d\n",c,a,b)}; 
	if(b<=c%%c<=a) {printf("%d %d %d\n",b,c,a)}; 
	if(c<=b%%b<=a) {printf("%d %d %d\n",c,b,a)}; 
	return 0;
}

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

#include <stdio.h>
int main(){
 
 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);
 goto OUT:
 } else if(c <= b) {
 printf("%d %d %d\n", a, c, b);
 goto OUT:
 }
 } else if(b <= a && b <= c) {
 if(a <= c) {
 printf("%d %d %d\n", b, a, c);
 goto OUT:
 } else if(c <= a) {
 printf("%d %d %d\n", b, c, a);
 goto OUT:
 }
 } else if(c <= a && c <= b) {
 if(a <= b) {
 printf("%d %d %d\n", c, a, b);
 goto OUT:
 } else if(b <= a) {
 printf("%d %d %d\n", c, b, a);
 goto OUT:
 }
 }
 OUT:
 
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:10: error: expected ';' before ':' token
    9 |  goto OUT:
      |          ^
      |          ;
main.c:12:10: error: expected ';' before ':' token
   12 |  goto OUT:
      |          ^
      |          ;
main.c:17:10: error: expected ';' before ':' token
   17 |  goto OUT:
      |          ^
      |          ;
main.c:20:10: error: expected ';' before ':' token
   20 |  goto OUT:
      |          ^
      |          ;
main.c:25:10: error: expected ';' before ':' token
   25 |  goto OUT:
      |          ^
      |          ;
main.c:28:10: error: expected ';' before ':' token
   28 |  goto OUT:
      |          ^
      |          ;
Language: C

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

return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(void){
      | ^~~~
main.c: In function 'main':
main.c:7:28: error: expected ';' before 'tmp'
    7 | if(a > b){tmp = a; a = b; b tmp;};
      |                            ^~~~
      |                            ;
Language: C

#include<stdio.h>

int main(void)

{

int a,b,c;

scanf("%d",&a);

scanf("%d",&b);

scanf("%d",&c);

if(a<b&&a<c)

{

if(b<c)

{

printf("a b c\n");

}

else

{

printf("a c b\n");

}

if(b<a&&b<c)

{

if(a<c)

{

printf("b a c\n");

}

else

{

printf("b c a\n");

}

if(c<a&&c<b)

{

if(a<b)

{

printf("c a b\n");

}

else

{

printf("c b a\n");

}

return 0;

}

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

#include<stdio.h>

int main(void)

{

int a,b,c;

scanf("%d",&a);

scanf("%d",&b);

scanf("%d",&c);

if(a<b&&a<c)

{

if(b<c)

{

printf("abc\n");

}

else

{

printf("acb\n");

}

if(b<a&&b<c)

{

if(a<c)

{

printf("bac\n");

}

else

{

printf("bca\n");

}

if(c<a&&c<b)

{

if(a<b)

{

printf("cab\n");

}

else

{

printf("cba\n");

}

return 0;

}

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

#include    <studio.h>
int    main (void)
{ 
    int a,b,c,d;
    scanf("%d %d %d",&a,&b,&c);
    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?\n",a,b,c);
    return 0;
}

Compiler output:
main.c:1:13: 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, aa, bb, cc;
	scanf_s("%d%d%d", &a, &b, &c);
	if (a > b)
	{
		aa = b;
		bb = a;
	}
	else
	{
		aa = a;
		bb = b;
	}
	if (bb > c)
	{
		b = c;
		cc = bb;
	}
	else
	{
		b = bb;
		cc = c;
	}
	if (aa > b)
	{
		a = b;
		bb = aa;
	}
	else
	{
		a = aa;
		bb = b;
	}
	printf("%d %d %d\n", a, bb, cc);
	return 0;
}

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

#include <stdio.h>

int main(void)

{

int a,b,c;

scanf("%d",&a);

scanf("%d",&b);

scanf("%d",&c);

if(a<b&&a<c)

{

if(b<c)

{

printf("a b c\n");

}

else

{

printf("a c b\n");

}

if(b<a&&b<c)

{

if(a<c)

{

printf("b a c\n");

}

else

{

printf("b c a\n");

}

if(c<a&&c<b)

{

if(a<b)

{

printf("c a b\n");

}

else

{

printf("c b a\n");

}

return 0;

}

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

#include <stdio.h>

int main(void)

{

int a,b,c,x;

scanf("%d",&a);

scanf("%d",&b);

scanf("%d",&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:52:8: error: expected declaration specifiers or '...' before string constant
   52 | printf("%d %d %d\n",a,b,c);
      |        ^~~~~~~~~~~~
main.c:52:21: error: unknown type name 'a'
   52 | printf("%d %d %d\n",a,b,c);
      |                     ^
main.c:52:23: error: unknown type name 'b'
   52 | printf("%d %d %d\n",a,b,c);
      |                       ^
main.c:52:25: error: unknown type name 'c'
   52 | printf("%d %d %d\n",a,b,c);
      |                         ^
main.c:54:1: error: expected identifier or '(' before 'return'
   54 | return 0;
      | ^~~~~~
main.c:56:1: error: expected identifier or '(' before '}' token
   56 | }
      | ^
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){


x=b;


b=c;


c=x;


}


if(a>b){
x=a;


a=b;


b=x;


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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:57:1: error: expected declaration or statement at end of input
   57 | }
      | ^
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;


if(a>b)


}


c=d;


d=a;


a=b;


b=d;


printf("%d %d %d");


}


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:27:1: error: expected expression before '}' token
   27 | }
      | ^
main.c: At top level:
main.c:48:1: error: expected identifier or '(' before 'return'
   48 | return 0;
      | ^~~~~~
main.c:51:1: error: expected identifier or '(' before '}' token
   51 | }
      | ^
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;


printf("%d %d %d");


}


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:30:1: error: expected expression before '}' token
   30 | }
      | ^
main.c: At top level:
main.c:51:1: error: expected identifier or '(' before 'return'
   51 | return 0;
      | ^~~~~~
main.c:54:1: error: expected identifier or '(' before '}' token
   54 | }
      | ^
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 = b;


          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:54:1: error: expected statement before ']' token
   54 | ]
      | ^
main.c:63:1: error: expected declaration or statement at end of input
   63 | }
      | ^
Language: C

#include<stdio.h>

int main(void){


int a,b,c;


scanf("%d %d %d",&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(a>c){


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


}


else{


if(b<c){


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


}


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


}


else if(c>a&&a>b&&c>b){


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


}


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:31:1: error: expected '}' before 'else'
   31 | else{
      | ^~~~
main.c:49:26: error: expected ';' before ':' token
   49 | printf("%d %d%d\n",c,b,a):
      |                          ^
      |                          ;
main.c:61:1: error: 'else' without a previous 'if'
   61 | else if(c>a&&a>b&&c>b){
      | ^~~~
main.c:73:1: error: expected declaration or statement at end of input
   73 | }
      | ^
Language: C

#include <stdio.h>

int turn(int left, int right)
{
    int t;

    t = left;
    left = right;
    right = t;

    return 0;
}


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

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

    while(TRUE) {

        if(a > b) {
            turn(&a, &b);
        }

        if(b > c) {
            turn(&b, &c);
        }

        if(a < b && b < c) {
            break;
        }
    }

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

    return 0;
}
        

Compiler output:
main.c: In function 'main':
main.c:21:11: error: 'TRUE' undeclared (first use in this function)
   21 |     while(TRUE) {
      |           ^~~~
main.c:21:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:18: error: passing argument 1 of 'turn' makes integer from pointer without a cast [-Wint-conversion]
   24 |             turn(&a, &b);
      |                  ^~
      |                  |
      |                  int *
main.c:3:14: note: expected 'int' but argument is of type 'int *'
    3 | int turn(int left, int right)
      |          ~~~~^~~~
main.c:24:22: error: passing argument 2 of 'turn' makes integer from pointer without a cast [-Wint-conversion]
   24 |             turn(&a, &b);
      |                      ^~
      |                      |
      |                      int *
main.c:3:24: note: expected 'int' but argument is of type 'int *'
    3 | int turn(int left, int right)
      |                    ~~~~^~~~~
main.c:28:18: error: passing argument 1 of 'turn' makes integer from pointer without a cast [-Wint-conversion]
   28 |             turn(&b, &c);
      |                  ^~
      |                  |
      |                  int *
main.c:3:14: note: expected 'int' but argument is of type 'int *'
    3 | int turn(int left, int right)
      |          ~~~~^~~~
main.c:28:22: error: passing argument 2 of 'turn' makes integer from pointer without a cast [-Wint-conversion]
   28 |             turn(&b, &c);
      |                      ^~
      |                      |
      |                      int *
main.c:3:24: note: expected 'int' but argument is of type 'int *'
    3 | int turn(int left, int right)
      |                    ~~~~^~~~~
Language: C

#include <stdio.h>

int turn(int left, int right)
{
    int t;

    t = left;
    left = right;
    right = t;

    return 0;
}


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

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

    while(TRUE) {

        if(a > b) {
            turn(a, b);
        }

        if(b > c) {
            turn(b, c);
        }

        if(a < b && b < c) {
            break;
        }
    }

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:11: error: 'TRUE' undeclared (first use in this function)
   21 |     while(TRUE) {
      |           ^~~~
main.c:21: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;
    int t;

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

        while(1){
        if(a > b) {
            t = a;
            a = b;
            b = t;
        }

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

        if(a > c) {
            t = a;
            a = c;
            c = t;
        }
        
        if(a =< b && b =< c){break;}

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:29:15: error: expected expression before '<' token
   29 |         if(a =< b && b =< c){break;}
      |               ^
Language: C

#include<stdio.h>

int main(void) {

int a,b,c,x;

scanf("%d",&a);

scanf("%d",&b);

scanf("%d",&c);

if(a>b){

x=a;

a=b;

b=x; }

if(b>c){

x=b;

b=c;

c=x; }

if(a>c);

x=a;

a=c;

c=x;}

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

return 0;

}

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

#include <stdio.h>

int main(void)

{

int a,b,c;

scanf("%d",&a);

scanf("%d",&b);

scanf("%d",&c);

if(a<b&&a<c){

if(b<c){

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


}


else{


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


}


if(b<a&&b<c){


if(a<c){


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


}


else{


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


}


if(c<a&&c<b){


if(a<b){


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


}


else{


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


}


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:79:1: error: expected declaration or statement at end of input
   79 | }
      | ^
main.c:79:1: error: expected declaration or statement at end of input
main.c:79:1: error: expected declaration or statement at end of input
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",c,b,a);

 }

 else if(b>c&&c>a){

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

 }

if(c>a&&a>b){

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

 }

 else if(a>c&&c>b){

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

}

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

include<stdio.h>

int main(void)

int x;

int y;

int z;

scanf("%d",&x);

scanf("%d",&y);


scanf("%d",&z);


if(x < y && y < z){


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


if(x < z && z < y){


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


if(y < x && x < z){


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


if(y < z && z < x){


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


if(z < x && x< y){


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


if(z < y && y < x){


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


return 0;


}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c:11:7: error: expected declaration specifiers or '...' before string constant
   11 | scanf("%d",&x);
      |       ^~~~
main.c:11:12: error: expected declaration specifiers or '...' before '&' token
   11 | scanf("%d",&x);
      |            ^
main.c:13:7: error: expected declaration specifiers or '...' before string constant
   13 | scanf("%d",&y);
      |       ^~~~
main.c:13:12: error: expected declaration specifiers or '...' before '&' token
   13 | scanf("%d",&y);
      |            ^
main.c:16:7: error: expected declaration specifiers or '...' before string constant
   16 | scanf("%d",&z);
      |       ^~~~
main.c:16:12: error: expected declaration specifiers or '...' before '&' token
   16 | scanf("%d",&z);
      |            ^
main.c:19:1: error: expected identifier or '(' before 'if'
   19 | if(x < y && y < z){
      | ^~
main.c:25:1: error: expected identifier or '(' before 'if'
   25 | if(x < z && z < y){
      | ^~
main.c:31:1: error: expected identifier or '(' before 'if'
   31 | if(y < x && x < z){
      | ^~
main.c:37:1: error: expected identifier or '(' before 'if'
   37 | if(y < z && z < x){
      | ^~
main.c:43:1: error: expected identifier or '(' before 'if'
   43 | if(z < x && x< y){
      | ^~
main.c:49:1: error: expected identifier or '(' before 'if'
   49 | if(z < y && y < x){
      | ^~
main.c:55:1: error: expected identifier or '(' before 'return'
   55 | return 0;
      | ^~~~~~
main.c:58:1: error: expected identifier or '(' before '}' token
   58 | }
      | ^
Language: C

include<stdio.h>

int main(void)

int x;

int y;

int z;

scanf("%d",&x);

scanf("%d",&y);


scanf("%d",&z);


if(x < y && y < z){


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


if(x < z && z < y){


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


if(y < x && x < z){


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


if(y < z && z < x){


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


if(z < x && x< y){


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


if(z < y && y < x){


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


return 0;


}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c:11:7: error: expected declaration specifiers or '...' before string constant
   11 | scanf("%d",&x);
      |       ^~~~
main.c:11:12: error: expected declaration specifiers or '...' before '&' token
   11 | scanf("%d",&x);
      |            ^
main.c:13:7: error: expected declaration specifiers or '...' before string constant
   13 | scanf("%d",&y);
      |       ^~~~
main.c:13:12: error: expected declaration specifiers or '...' before '&' token
   13 | scanf("%d",&y);
      |            ^
main.c:16:7: error: expected declaration specifiers or '...' before string constant
   16 | scanf("%d",&z);
      |       ^~~~
main.c:16:12: error: expected declaration specifiers or '...' before '&' token
   16 | scanf("%d",&z);
      |            ^
main.c:19:1: error: expected identifier or '(' before 'if'
   19 | if(x < y && y < z){
      | ^~
main.c:25:1: error: expected identifier or '(' before 'if'
   25 | if(x < z && z < y){
      | ^~
main.c:31:1: error: expected identifier or '(' before 'if'
   31 | if(y < x && x < z){
      | ^~
main.c:37:1: error: expected identifier or '(' before 'if'
   37 | if(y < z && z < x){
      | ^~
main.c:43:1: error: expected identifier or '(' before 'if'
   43 | if(z < x && x< y){
      | ^~
main.c:49:1: error: expected identifier or '(' before 'if'
   49 | if(z < y && y < x){
      | ^~
main.c:55:1: error: expected identifier or '(' before 'return'
   55 | return 0;
      | ^~~~~~
main.c:58:1: error: expected identifier or '(' before '}' token
   58 | }
      | ^
Language: C

#include <stdio.h>

int main(void){

int x;

int y;

int z;

scanf("%d",&x);

scanf("%d",&y);


scanf("%d",&z);


if(x < y && y < z){


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


if(x < z && z < y){


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


if(y < x && x < z){


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


if(y < z && z < x){


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


if(z < x && x< y){


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


if(z < y && y < x){


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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:22:22: error: expected ')' before 'x'
   22 | printf("%d  %d  %d\n"x,y,z);}
      |       ~              ^
      |                      )
main.c:28:20: error: expected ')' before 'x'
   28 | printf("%d %d %d\n"x,z,y);}
      |       ~            ^
      |                    )
main.c:34:21: error: expected ')' before 'y'
   34 | printf("%d %d %d \n"y,z,x);}
      |       ~             ^
      |                     )
main.c:40:20: error: expected ')' before 'y'
   40 | printf("%d %d %d\n"y,z,x);}
      |       ~            ^
      |                    )
main.c:46:20: error: expected ')' before 'z'
   46 | printf("%d %d %d\n"z,x,y);}
      |       ~            ^
      |                    )
main.c:52:20: error: expected ')' before 'z'
   52 | printf("%d %d %d\n"z,y,x);}
      |       ~            ^
      |                    )
Language: C

#include <stdio.h>

int main (void)


{


 int 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:24:21: error: expected ')' before 'a'
   24 |  printf("%d %d %d\n"a,c,b);
      |        ~            ^
      |                     )
main.c:33:9: warning: missing terminating " character
   33 |  printf("%d %d %d\n,b,a,c);
      |         ^
main.c:33:9: error: missing terminating " character
   33 |  printf("%d %d %d\n,b,a,c);
      |         ^~~~~~~~~~~~~~~~~~~
main.c:36:1: error: expected expression before '{' token
   36 | {
      | ^
main.c:69:1: error: expected declaration or statement at end of input
   69 | }
      | ^
main.c:69:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>

int main (void)


{


 int 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:24:21: error: expected ')' before 'a'
   24 |  printf("%d %d %d\n"a,c,b);
      |        ~            ^
      |                     )
main.c:69:1: error: expected declaration or statement at end of input
   69 | }
      | ^
main.c:69:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>

int main (void)


{


 int 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:15:21: error: expected ')' before 'a'
   15 |  printf("%d %d %d\n"a,b,c);
      |        ~            ^
      |                     )
main.c:24:21: error: expected ')' before 'a'
   24 |  printf("%d %d %d\n"a,c,b);
      |        ~            ^
      |                     )
main.c:33:21: error: expected ')' before 'b'
   33 |  printf("%d %d %d\n"b,a,c);
      |        ~            ^
      |                     )
main.c:42:21: error: expected ')' before 'b'
   42 |  printf("%d %d %d\n"b,c,a);
      |        ~            ^
      |                     )
main.c:51:21: error: expected ')' before 'c'
   51 |  printf("%d %d %d\n"c,a,b);
      |        ~            ^
      |                     )
main.c:60:21: error: expected ')' before 'c'
   60 |  printf("%d %d %d\n"c,b,a);
      |        ~            ^
      |                     )
main.c:69:1: error: expected declaration or statement at end of input
   69 | }
      | ^
main.c:69:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>

int main (void)


{


 int 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:69:1: error: expected declaration or statement at end of input
   69 | }
      | ^
main.c:69:1: error: expected declaration or statement at end of input
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"c,b,a);

 }

if(b>c&&c>a){

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

 }

if(c>a&&a>b){

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

 }

if(a>c&&c>b){

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

}

if(b>a&&a>c){

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

}

if{

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

 }

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:20: error: expected ')' before 'c'
   13 | printf("%d %d %d\n"c,b,a);
      |       ~            ^
      |                    )
main.c:41:3: error: expected '(' before '{' token
   41 | if{
      |   ^
      |   (
Language: C

#include <stdio.h>

int main(void){
	
	int x;
	
	int y;
	
	int z;
	
	scanf("%d",&x);
	
	scanf("%d",&y);
	
	
	scanf("%d",&z);
	
	
	if(x < y && y < z){
		
		
		printf("%d  %d  %d\n",x,y,z);}
	
	
	if(x < z && z < y){
		
		
		printf("%d %d %d\n",x,z,y);}
	

Compiler output:
main.c: In function 'main':
main.c:28:17: error: expected declaration or statement at end of input
   28 |                 printf("%d %d %d\n",x,z,y);}
      |                 ^~~~~~
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>b && b>c){
   printf("%d %d %d\n",c,b,a);
 }

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

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

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

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:28:2: error: 'elese' undeclared (first use in this function)
   28 |  elese if(c<a && a<b){
      |  ^~~~~
main.c:28:2: note: each undeclared identifier is reported only once for each function it appears in
main.c:28:7: error: expected ';' before 'if'
   28 |  elese if(c<a && a<b){
      |       ^~~
      |       ;
Language: C

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

{
int A,B,C;

scanf("%d%d%d",&A,&B,&C);

if(A<B)
{
}
else(B<A)
{
B=A;
A=B;
}
if(B<C)
{
}
else(C<B)
{
C=B;
B=C;
}

Compiler output:
main.c: In function 'main':
main.c:12:10: error: expected ';' before '{' token
   12 | else(B<A)
      |          ^
      |          ;
   13 | {
      | ~         
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
Language: C

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

{
int A,B,C;

scanf("%d%d%d",&A,&B,&C);

if(A<B)
{
}
else(B<A)
{
B=A;
A=B;
}
if(B<C)
{
}
else(C<B)
{
C=B;
B=C;
}
return0;
}

Compiler output:
main.c: In function 'main':
main.c:12:10: error: expected ';' before '{' token
   12 | else(B<A)
      |          ^
      |          ;
   13 | {
      | ~
Language: C

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

{
int A,B,C;

scan f("%d%d%d",&A,&B,&C);

if(A<B)
{
}
else(B<A)
{
B=A;
A=B;
}
if(B<C)
{
}
else(C<B)
{
C=B;
B=C;
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: unknown type name 'scan'
    7 | scan f("%d%d%d",&A,&B,&C);
      | ^~~~
main.c:7:8: error: expected declaration specifiers or '...' before string constant
    7 | scan f("%d%d%d",&A,&B,&C);
      |        ^~~~~~~~
main.c:7:17: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d%d%d",&A,&B,&C);
      |                 ^
main.c:7:20: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d%d%d",&A,&B,&C);
      |                    ^
main.c:7:23: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d%d%d",&A,&B,&C);
      |                       ^
main.c:12:10: error: expected ';' before '{' token
   12 | else(B<A)
      |          ^
      |          ;
   13 | {
      | ~
Language: C

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

{
int A,B,C;

scan f("%d%d%d",&A,&B,&C);

if(A<B)
{
}
else(B<A)
{
B=A;
A=B;
}
if(B<C)
{
}
else(C<B)
{
C=B;
B=C;
}
printf("%d %d %d",A,B,C);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: unknown type name 'scan'
    7 | scan f("%d%d%d",&A,&B,&C);
      | ^~~~
main.c:7:8: error: expected declaration specifiers or '...' before string constant
    7 | scan f("%d%d%d",&A,&B,&C);
      |        ^~~~~~~~
main.c:7:17: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d%d%d",&A,&B,&C);
      |                 ^
main.c:7:20: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d%d%d",&A,&B,&C);
      |                    ^
main.c:7:23: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d%d%d",&A,&B,&C);
      |                       ^
main.c:12:10: error: expected ';' before '{' token
   12 | else(B<A)
      |          ^
      |          ;
   13 | {
      | ~
Language: C

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

{
int A,B,C;

scan f("%d%d%d",&A,&B,&C);

if(A<B)
{
}
else(B<A)
{
B=A;
A=B;
}
if(B<C)
{
}
else(C<B)
{
C=B;
B=C;
}
printf("%d %d %d\n",A,B,C);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: unknown type name 'scan'
    7 | scan f("%d%d%d",&A,&B,&C);
      | ^~~~
main.c:7:8: error: expected declaration specifiers or '...' before string constant
    7 | scan f("%d%d%d",&A,&B,&C);
      |        ^~~~~~~~
main.c:7:17: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d%d%d",&A,&B,&C);
      |                 ^
main.c:7:20: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d%d%d",&A,&B,&C);
      |                    ^
main.c:7:23: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d%d%d",&A,&B,&C);
      |                       ^
main.c:12:10: error: expected ';' before '{' token
   12 | else(B<A)
      |          ^
      |          ;
   13 | {
      | ~
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);

 }

else 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: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;

scan f("%d %d %d",&A,&B,&C);

if(A<B)
{
}
else(B<A)
{
B=A;
A=B;
}
if(B<C)
{
}
else(C<B)
{
C=B;
B=C;
}
printf("%d %d %d\n",A,B,C);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: unknown type name 'scan'
    7 | scan f("%d %d %d",&A,&B,&C);
      | ^~~~
main.c:7:8: error: expected declaration specifiers or '...' before string constant
    7 | scan f("%d %d %d",&A,&B,&C);
      |        ^~~~~~~~~~
main.c:7:19: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d %d %d",&A,&B,&C);
      |                   ^
main.c:7:22: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d %d %d",&A,&B,&C);
      |                      ^
main.c:7:25: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d %d %d",&A,&B,&C);
      |                         ^
main.c:12:10: error: expected ';' before '{' token
   12 | else(B<A)
      |          ^
      |          ;
   13 | {
      | ~
Language: C

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

{
int A,B,C;

scan f("%d %d %d",&A,&B,&C);

if(A<B)
{
}
else(B<A)
{
B=A;
A=B;
}
if(B<C)
{
}
else(C<B)
{
C=B;
B=C;
}
print f("%d %d %d\n",A,B,C);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: unknown type name 'scan'
    7 | scan f("%d %d %d",&A,&B,&C);
      | ^~~~
main.c:7:8: error: expected declaration specifiers or '...' before string constant
    7 | scan f("%d %d %d",&A,&B,&C);
      |        ^~~~~~~~~~
main.c:7:19: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d %d %d",&A,&B,&C);
      |                   ^
main.c:7:22: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d %d %d",&A,&B,&C);
      |                      ^
main.c:7:25: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d %d %d",&A,&B,&C);
      |                         ^
main.c:12:10: error: expected ';' before '{' token
   12 | else(B<A)
      |          ^
      |          ;
   13 | {
      | ~
Language: C

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

{
int A,B,C;

scan f("%d %d %d",&A,&B,&C);

if(A<B)
{
}
else(B<A)
{
B=A;
A=B;
}
if(B<C)
{
}
else(C<B)
{
C=B;
B=C;
}
print f("%d %d %d \n",A,B,C);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: unknown type name 'scan'
    7 | scan f("%d %d %d",&A,&B,&C);
      | ^~~~
main.c:7:8: error: expected declaration specifiers or '...' before string constant
    7 | scan f("%d %d %d",&A,&B,&C);
      |        ^~~~~~~~~~
main.c:7:19: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d %d %d",&A,&B,&C);
      |                   ^
main.c:7:22: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d %d %d",&A,&B,&C);
      |                      ^
main.c:7:25: error: expected declaration specifiers or '...' before '&' token
    7 | scan f("%d %d %d",&A,&B,&C);
      |                         ^
main.c:12:10: error: expected ';' before '{' token
   12 | else(B<A)
      |          ^
      |          ;
   13 | {
      | ~
Language: C

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

{
int A,B,C;

scanf("%d %d %d",&A,&B,&C);

if(A<B)
{
}
else(B<A)
{
B=A;
A=B;
}
if(B<C)
{
}
else(C<B)
{
C=B;
B=C;
}
printf("%d %d %d \n",A,B,C);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:10: error: expected ';' before '{' token
   12 | else(B<A)
      |          ^
      |          ;
   13 | {
      | ~
Language: C

#include<stdio.h>

int main(void)

int a,b,c,x;

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

if(a>b){

x=a;

a=b;

b=x;

}

if(a>b){

x=a;

a=b;

b=x;

}

printf("%d %d %d",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,&d);
      | ^~~~~
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>b){
      | ^~
main.c:29:1: error: expected declaration specifiers before 'printf'
   29 | printf("%d %d %d",a,b,c);
      | ^~~~~~
main.c:31:1: error: expected declaration specifiers before 'return'
   31 | return 0;
      | ^~~~~~
main.c:33:1: error: expected declaration specifiers before '}' token
   33 | }
      | ^
main.c:3:5: error: old-style parameter declarations in prototyped function definition
    3 | int main(void)
      |     ^~~~
main.c:34: 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,&d);

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",a,b,c);

return 0;

}

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

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

if(a>b){}

if(b>a){

x=b;

b=a;

a=x;

}

if(b>c){}

if(c>b){

x=c;

c=b;

b=x;

}

if(a>c){}

if(c>a){

x=c;

c=a;

a=c;

}

if(

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:49:25: error: expected ')' before ';' token
   49 | printf("%d %d %d",a,b,c);
      |                         ^
      |                         )
main.c:47:3: note: to match this '('
   47 | if(
      |   ^
main.c:53:1: error: expected expression before '}' token
   53 | }
      | ^
Language: C

#include <stdio.h>

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:12:9: error: 't' undeclared (first use in this function)
   12 |         t=a;
      |         ^
main.c:12:9: note: each undeclared identifier is reported only once for each function it appears in