criyle/codenet-compile-errors huggingface dataset:
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=x;
    }
    
    if(b>c)

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

    {
        t=a;
        a=b;
        b=x;
    }
    
    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
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:27:9: error: expected ';' before '}' token
   27 | return 0
      |         ^
      |         ;
   28 | }
      | ~
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>b&&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;

}



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

return 0;

}

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

#include<stdio.h>

int main(void)

{

int a,b,c,x;

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

if(a>b){

x=a;

a=b;

b=x;

}

if(a>c){

x=a;

a=c;

c=x;

}

if(b>c){

x=b;

b=c

c=x;

}

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

returnf 0;

}



return 0;

}

Compiler output:
main.c: In function 'main':
main.c:35:4: error: expected ';' before 'c'
   35 | b=c
      |    ^
      |    ;
   36 | 
   37 | c=x;
      | ~   
main.c:43:1: error: 'returnf' undeclared (first use in this function)
   43 | returnf 0;
      | ^~~~~~~
main.c:43:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:43:8: error: expected ';' before numeric constant
   43 | returnf 0;
      |        ^~
      |        ;
main.c: At top level:
main.c:49:1: error: expected identifier or '(' before 'return'
   49 | 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,x;

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

if(a>b){

x=a;

a=b;

b=x;

}

if(a>c){

x=a;

a=c;

c=x;

}

if(b>c){

x=b;

b=c

c=x;

}

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

returnf 0;

}

Compiler output:
main.c: In function 'main':
main.c:35:4: error: expected ';' before 'c'
   35 | b=c
      |    ^
      |    ;
   36 | 
   37 | c=x;
      | ~   
main.c:43:1: error: 'returnf' undeclared (first use in this function)
   43 | returnf 0;
      | ^~~~~~~
main.c:43:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:43:8: error: expected ';' before numeric constant
   43 | returnf 0;
      |        ^~
      |        ;
Language: C

#include<stdio.h>

int main(void)

{

int a,b,c,x;

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

if(a>b){

x=a;

a=b;

b=x;

}

if(a>c){

x=a;

a=c;

c=x;

}

if(b>c){

x=b;

b=c;

c=x;

}

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

returnf 0;

}

Compiler output:
main.c: In function 'main':
main.c:43:1: error: 'returnf' undeclared (first use in this function)
   43 | returnf 0;
      | ^~~~~~~
main.c:43:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:43:8: error: expected ';' before numeric constant
   43 | returnf 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(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);

}

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

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

 }

return 0;

}

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

#include <stdio.h>

int main (void)

{

int a,b,c;

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

if(a>b){

 d=a; a=b; b=d;

}

if(d>c){

 d=b; b=c; c=d;

}

if(a>c){

 d=a; a=c; c=d;

}

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

return 0;

}

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

#include <stdio.h>

int main(void){    

int x,y,z;

scanf("%d %d %d"&x,&y,&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:7:17: error: invalid operands to binary & (have 'char *' and 'int')
    7 | scanf("%d %d %d"&x,&y,&z);
      |       ~~~~~~~~~~^
      |       |
      |       char *
main.c:15:29: warning: backslash and newline separated by space
   15 | printf("%d %d %d\n",x,z,y);}\
Language: C

#include <stdio.h>

int main(void){    

int x,y,z;

scanf("%d %d %d"&x,&y,&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:7:17: error: invalid operands to binary & (have 'char *' and 'int')
    7 | scanf("%d %d %d"&x,&y,&z);
      |       ~~~~~~~~~~^
      |       |
      |       char *
main.c:15:29: warning: backslash and newline separated by space
   15 | printf("%d %d %d\n",x,z,y);}\
Language: C

#include <stdio.h>

int main(void){    

     int x,y,z;

     scanf("%d %d %d"&x,&y,&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:7:22: error: invalid operands to binary & (have 'char *' and 'int')
    7 |      scanf("%d %d %d"&x,&y,&z);
      |            ~~~~~~~~~~^
      |            |
      |            char *
main.c:16:34: warning: backslash and newline separated by space
   16 |      printf("%d %d %d\n",x,z,y);}\
Language: C

#include <stdio.h>

int main (void)

{

int a,b,c,d;

d=0;

if(a>b){

 d=a;

 a=b;

 b=d;

}

if(b>c){

 d=b;

 b=c;

 c=x;

}

if(a>d){

 d=a;

 a=b;

 b=d;

}



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

return 0;

}

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:12:28: error: expected expression before ')' token
   12 | printf("%d %d %d?\n",a,b,c,);
      |                            ^
main.c:18:28: error: expected expression before ')' token
   18 | printf("%d %d %d?\n",a,b,c,);
      |                            ^
Language: C

#include <stdio.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: In function 'main':
main.c:13:4: error: expected ';' before ':' token
   13 | d=a:
      |    ^
      |    ;
main.c:23:4: error: expected ';' before ':' token
   23 | d=a:
      |    ^
      |    ;
main.c:33:4: error: expected ';' before ':' token
   33 | d=b:
      |    ^
      |    ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:28: error: expected expression before ')' token
   12 | printf("%d %d %d?\n",a,b,c,);
      |                            ^
main.c:18:28: error: expected expression before ')' token
   18 | printf("%d %d %d?\n",a,b,c,);
      |                            ^
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:12:28: error: expected expression before ')' token
   12 | printf("%d %d %d?\n",a,b,c,);
      |                            ^
main.c:18:28: error: expected expression before ')' token
   18 | printf("%d %d %d?\n",a,b,c,);
      |                            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:28: error: expected expression before ')' token
   12 | printf("%d %d %d?\n",a,b,c,);
      |                            ^
main.c:18:28: error: expected expression before ')' token
   18 | printf("%d %d %d?\n",a,b,c,);
      |                            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:28: error: expected expression before ')' token
   12 | printf("%d %d %d?\n",a,b,c,);
      |                            ^
main.c:18:28: error: expected expression before ')' token
   18 | printf("%d %d %d?\n",a,b,c,);
      |                            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:28: error: expected expression before ')' token
   12 | printf("%d %d %d?\n",a,b,c,);
      |                            ^
main.c:18:28: error: expected expression before ')' token
   18 | printf("%d %d %d?\n",a,b,c,);
      |                            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:6: error: expected ';' before 'scanf'
    4 | d = 0
      |      ^
      |      ;
    5 | scanf("%d %d %d", &a,&b,&c);
      | ~~~~~ 
main.c:13:28: error: expected expression before ')' token
   13 | printf("%d %d %d?\n",a,b,c,);
      |                            ^
main.c:19:28: error: expected expression before ')' token
   19 | printf("%d %d %d?\n",a,b,c,);
      |                            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:28: error: expected expression before ')' token
   13 | printf("%d %d %d?\n",a,b,c,);
      |                            ^
main.c:19:28: error: expected expression before ')' token
   19 | printf("%d %d %d?\n",a,b,c,);
      |                            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:19:28: error: expected expression before ')' token
   19 | printf("%d %d %d?\n",a,b,c,);
      |                            ^
Language: C

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

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

#include<stdio.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(b < c){
  d=b; b=c; c=d;
 if(a < c){
  d=a; a=c; c=d;
 }
 printf("%d %d %d\n",a,b,c);
 return 0;
}

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

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

int a,b,c;

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

if(a>b){

int t;

t=a;

a=b;

b=t;

}

if(b>c){

int t;

t=b;

b=c;

c=t;

}

if(a>b){

int t;

t=a;

a=b;

b=t;

}

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

return 0;

}

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

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

int compare (const void *lhs, const void*rhs){
  return *(int *)lhs - *(int *)rhs;
}

int main(void){
  int array[3] = {0};
  scanf("%d %d %d", &array[0], &array[1], &array[2]);
  qsort(array, sizeof(array)/sizeof(array[0]), sizeof(array[0]), compare);
  printf("%d %d %d\n" array[0], array[1], array[2]);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:22: error: expected ')' before 'array'
   12 |   printf("%d %d %d\n" array[0], array[1], array[2]);
      |         ~            ^~~~~~
      |                      )
Language: C

#include<iostream>
#include<stdio.h>
using namespace std;
int main(void){
	int a,b,c;
	cin>>a>>b>>c;
	int test[3]={a,b,c};
	int number=sizeof(test)/sizeof(int);
	int temp=0;
	for(int i=0;i<number;++i){
		for(int s=number-1;s>i;--s){
			if(test[s]<test[s-1]){
				temp=test[s-1];
				test[s-1]=test[s];
				test[s]=temp;
			}
		}
	}
	for(int i=0; i<number;++i){
		printf("%d ",test[i]);
	}
	puts("");
	
	return 0;
}

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

#include <stdio.h>

int main(void){

  int a, b, c;

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

  if(a < b && b < c)
    printf("a,b,c");
  else if(a > b && b > c)
    printf("c,b,a")
  else if(a < b && b > c && a > c)
      printf("b,a,c");
  else if(a < b && b > c && a < c)
    printf("b,c,a");

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:20: error: expected ';' before 'else'
   12 |     printf("c,b,a")
      |                    ^
      |                    ;
   13 |   else if(a < b && b > c && a > c)
      |   ~~~~
Language: C

#include <stdio.h>

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

   return 0;
}

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

#include <stdio.h>

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

   return 0;
}

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

x=0;

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

Compiler output:
main.c: In function 'main':
main.c:11:7: error: expected '}' before 'else'
   11 |      }else{
      |       ^~~~
Language: C

#include <stdio.h>
int main(){
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);
    if(a < b){
        if(b < c){
          puts("Yes");
            }else{
               puts("No");
     }}}else{
        puts("No");

    return 0;
}

Compiler output:
main.c:10:9: error: expected identifier or '(' before 'else'
   10 |      }}}else{
      |         ^~~~
Language: C

#include <stdio.h>
int main(){
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);
    if(a < b){
        if(b < c){
          puts("Yes");
            }else{
               puts("No");
     }}}else{
        puts("No");
}
    return 0;
}

Compiler output:
main.c:10:9: error: expected identifier or '(' before 'else'
   10 |      }}}else{
      |         ^~~~
main.c:13:5: error: expected identifier or '(' before 'return'
   13 |     return 0;
      |     ^~~~~~
main.c:14:1: error: expected identifier or '(' before '}' token
   14 | }
      | ^
Language: C

int main(){
   int a,b,cx,y,z;
   scanf("%d %d %d",&x,&y,&z);
   
   if(x>y){
        a=x;
        x=y;
        y=a;
   }
   if(x>z){
        c=x;
        x=z;
        z=c;
   }
   if(y>z){
        b=y;
        y=z;
        z=b;
   }

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:4: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |    scanf("%d %d %d",&x,&y,&z);
      |    ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:4: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |    scanf("%d %d %d",&x,&y,&z);
      |    ^~~~~
main.c:3:4: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:22: error: 'x' undeclared (first use in this function)
    3 |    scanf("%d %d %d",&x,&y,&z);
      |                      ^
main.c:3:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:9: error: 'c' undeclared (first use in this function)
   11 |         c=x;
      |         ^
main.c:21:4: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   21 |    printf("%d %d %d\n",x,y,z);
      |    ^~~~~~
main.c:21:4: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:21:4: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:21:4: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:22: error: 'x' undeclared (first use in this function)
    4 |    scanf("%d %d %d",&x,&y,&z);
      |                      ^
main.c:4:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: 'c' undeclared (first use in this function)
   12 |         c=x;
      |         ^
Language: C

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

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

   return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:22: error: 'x' undeclared (first use in this function)
    4 |    scanf("%d %d %d",&x,&y,&z);
      |                      ^
main.c:4:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: 'c' undeclared (first use in this function)
   12 |         c=x;
      |         ^
Language: C

include<stdio.h>

int main(){

  int a,b,c;

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


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

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
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",a,b,c);

}

}

}

return 0;

}

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

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

return 0;

}

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

#include<stdio.h>

int main(void) {
int i;
int num[4];

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

for(i = 0; i < 2; i++) {
if(num[i] > num[i+1]) {
num[3] = num[i];
num[i] = num[i+1];
num[i+1] = num[3];
}
printf("%d %d %d", num[0], num[1], num[2]);

return (0);
}

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

#include<stdio.h>

int main(void) {
int i;
int num[4];

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

for(i = 0; i < 1; i++) {
if(num[i] > num[i+1]) {
num[3] = num[i];
num[i] = num[i+1];
num[i+1] = num[3];
}
printf("%d %d %d", num[0], num[1], num[2]);

return (0);
}

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

#include<stdio.h>

int main(void) {
int i;
int num[4];

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

for(i = 0; i < 1; i++) {
for(j = 0; j < 1; j++) {
if(num[j] > num[j+1]) {
num[3] = num[j];
num[j] = num[j+1];
num[j+1] = num[3];
}
}
}
printf("%d %d %d", num[0], num[1], num[2]);

return (0);
}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: 'j' undeclared (first use in this function)
   10 | for(j = 0; j < 1; j++) {
      |     ^
main.c:10: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",&a);
	scanf("%d",&b);
	scanf("%d",&c);

	while((a>b)&&(a>c))
	{
		printf("%d",a);
	
		if(b>c)
		{
			printf(" %d %d",b,c);
		}
		else
		{
			printf(" %d %d",c,b);
		}

	}

		while((b>a)&&(b>c))
	{
		printf("%d",b);
	
		if(a>c)
		{
			printf(" %d %d",a,c);
		}
		else
		{
			printf(" %d %d",a,b);
		}

	}

			while((c>b)&&(c>b))
	{
		printf("%d",c);
	
		if(b>a)
		{
			printf(" %d %d",b,a);
		}
		else
		{
			printf(" %d %d",a,b);
		}

	}

Compiler output:
main.c: In function 'main':
main.c:53:9: error: expected declaration or statement at end of input
   53 |         }
      |         ^
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))
	{
		printf("%d",a);
	
		if(b<c)
		{
			printf(" %d %d",b,c);
		}
		if(c<b)
		{
			printf(" %d %d",c,b);
		}

	}

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

	}

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

	}

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

#include <stdio.h>

int main()
{ 
  int a,b,c,d;
  int array[2];
  scanf("%d %d %d ",&a,&b,&c);
  
 array[0] = a;
 array[1] = b;
 array[2] = c;

 for(int i = 0; i < 2; i++)
 {
  for( int j = i + 1; j < i + 1 ; j++ )
  { 
    if(array[i] > array[j])
    { 
      d = array[j]
      array[j] = array[i];
      array[i] = d;
    }
  }
 }
 
 for( int i = 0; i < 3; i++)
 { 
   printf("%d %d %d\n" ,array[i],array[i+1],array[i+2]);
 }
 
return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:19:19: error: expected ';' before 'array'
   19 |       d = array[j]
      |                   ^
      |                   ;
   20 |       array[j] = array[i];
      |       ~~~~~
Language: C

#include <stdio.h>

int main()
{ 
  int a,b,c,d;
  int array[2];
  scanf("%d %d %d ",&a,&b,&c);
  
 array[0] = a;
 array[1] = b;
 array[2] = c;

 for(int i = 0; i < 2; i++)
 {
  for( int j = i + 1; j < i + 1 ; j++ )
  { 
    if(array[i] > array[j])
    { 
      d = array[j]
      array[j] = array[i];
      array[i] = d;
    }
  }
 }
 
  
   printf("%d %d %d\n" ,array[0],array[1],array[2]);
 
 
return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:19:19: error: expected ';' before 'array'
   19 |       d = array[j]
      |                   ^
      |                   ;
   20 |       array[j] = array[i];
      |       ~~~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:28: error: expected ')' before 'a'
    7 |         printf("%d %d %d\n"a, b, c);
      |               ~            ^
      |                            )
main.c:10:28: error: expected ')' before 'a'
   10 |         printf("%d %d %d\n"a, c, b);
      |               ~            ^
      |                            )
main.c:13:28: error: expected ')' before 'b'
   13 |         printf("%d %d %d\n"b, a, c);
      |               ~            ^
      |                            )
main.c:16:28: error: expected ')' before 'b'
   16 |         printf("%d %d %d\n"b, c, a);
      |               ~            ^
      |                            )
main.c:19:28: error: expected ')' before 'c'
   19 |         printf("%d %d %d\n"c, a, b);
      |               ~            ^
      |                            )
main.c:22:28: error: expected ')' before 'c'
   22 |         printf("%d %d %d\n"c, b, a);
      |               ~            ^
      |                            )
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:28: error: expected ')' before 'a'
    7 |         printf("%d %d %d\n"a, b, c);
      |               ~            ^
      |                            )
main.c:10:28: error: expected ')' before 'a'
   10 |         printf("%d %d %d\n"a, c, b);
      |               ~            ^
      |                            )
main.c:13:28: error: expected ')' before 'b'
   13 |         printf("%d %d %d\n"b, a, c);
      |               ~            ^
      |                            )
main.c:16:28: error: expected ')' before 'b'
   16 |         printf("%d %d %d\n"b, c, a);
      |               ~            ^
      |                            )
main.c:19:28: error: expected ')' before 'c'
   19 |         printf("%d %d %d\n"c, a, b);
      |               ~            ^
      |                            )
main.c:22:28: error: expected ')' before 'c'
   22 |         printf("%d %d %d\n"c, b, a);
      |               ~            ^
      |                            )
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:28: error: expected ')' before 'a'
    7 |         printf("%d %d %d\n"a b c);
      |               ~            ^
      |                            )
main.c:10:28: error: expected ')' before 'a'
   10 |         printf("%d %d %d\n"a c b);
      |               ~            ^
      |                            )
main.c:13:28: error: expected ')' before 'b'
   13 |         printf("%d %d %d\n"b a c);
      |               ~            ^
      |                            )
main.c:16:28: error: expected ')' before 'b'
   16 |         printf("%d %d %d\n"b c a);
      |               ~            ^
      |                            )
main.c:19:28: error: expected ')' before 'c'
   19 |         printf("%d %d %d\n"c a b);
      |               ~            ^
      |                            )
main.c:22:28: error: expected ')' before 'c'
   22 |         printf("%d %d %d\n"c b a);
      |               ~            ^
      |                            )
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:28: error: expected ')' before 'a'
    7 |         printf("%d %d %d\n"a, b, c);
      |               ~            ^
      |                            )
main.c:10:28: error: expected ')' before 'a'
   10 |         printf("%d %d %d\n"a, c, b);
      |               ~            ^
      |                            )
main.c:13:28: error: expected ')' before 'b'
   13 |         printf("%d %d %d\n"b, a, c);
      |               ~            ^
      |                            )
main.c:16:28: error: expected ')' before 'b'
   16 |         printf("%d %d %d\n"b, c, a);
      |               ~            ^
      |                            )
main.c:19:28: error: expected ')' before 'c'
   19 |         printf("%d %d %d\n"c, a, b);
      |               ~            ^
      |                            )
main.c:22:28: error: expected ')' before 'c'
   22 |         printf("%d %d %d\n"c, b, a);
      |               ~            ^
      |                            )
Language: C

#include <stdio.h>

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

Compiler output:
main.c:5:9: error: expected declaration specifiers or '...' before string constant
    5 |   scanf("%d%d%d",&a,&b,&c);
      |         ^~~~~~~~
main.c:5:18: error: expected declaration specifiers or '...' before '&' token
    5 |   scanf("%d%d%d",&a,&b,&c);
      |                  ^
main.c:5:21: error: expected declaration specifiers or '...' before '&' token
    5 |   scanf("%d%d%d",&a,&b,&c);
      |                     ^
main.c:5:24: error: expected declaration specifiers or '...' before '&' token
    5 |   scanf("%d%d%d",&a,&b,&c);
      |                        ^
main.c:7:3: error: expected identifier or '(' before 'if'
    7 |   if(a > b){
      |   ^~
main.c:13:3: error: expected identifier or '(' before 'if'
   13 |   if(b > c){
      |   ^~
main.c:19:3: error: expected identifier or '(' before 'if'
   19 |   if(a > b){
      |   ^~
main.c:25:10: error: expected declaration specifiers or '...' before string constant
   25 |   printf("%d %d %d\n",a,b,c);
      |          ^~~~~~~~~~~~
main.c:25:23: error: expected declaration specifiers or '...' before 'a'
   25 |   printf("%d %d %d\n",a,b,c);
      |                       ^
main.c:25:25: error: expected declaration specifiers or '...' before 'b'
   25 |   printf("%d %d %d\n",a,b,c);
      |                         ^
main.c:25:27: error: expected declaration specifiers or '...' before 'c'
   25 |   printf("%d %d %d\n",a,b,c);
      |                           ^
main.c:27:3: error: expected identifier or '(' before 'return'
   27 |   return 0;
      |   ^~~~~~
main.c:28:1: error: expected identifier or '(' before '}' token
   28 | }
      | ^
Language: C

#include <stdio.h>

int main(void)

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

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

#include <stdio.h>

int main()
{
	int a[2];
	int b,i,j;

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

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

		for (j = 0; j < 3; j++)
			printf("%d", a[j]);

		printf("\n");
		return 0;

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

#include <stdio.h>

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

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

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

	for (j = 0; j < 3; j++){
		printf("%d ", a[j]);
	}

		printf("\n");

		return 0;

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

#include <stdio.h>

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

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

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

	for (j = 0; j < 2 j++){
		printf("%d ", a[j]);
	}

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

		return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:26: error: expected ';' before 'j'
   20 |         for (j = 0; j < 2 j++){
      |                          ^~
      |                          ;
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:28:23: error: lvalue required as left operand of assignment
   28 |         else if(a<b&&b=c){
      |                       ^
main.c:31:23: error: lvalue required as left operand of assignment
   31 |         else if(c<a&&a=b){
      |                       ^
main.c:34:23: error: lvalue required as left operand of assignment
   34 |         else if(b<a&&a=c){
      |                       ^
main.c:35:41: error: expected ';' before '}' token
   35 |                 printf("%d %d %d",b,a,c)
      |                                         ^
      |                                         ;
   36 |         }
      |         ~                                
main.c:37:23: error: lvalue required as left operand of assignment
   37 |         else if(a=b&&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\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);
	}
	else if(a=b&&b<c){
		printf("%d %d %d",a,b,c);
	}
	else if(a<b&&b=c){
		printf("%d %d %d",a,b,c);
	}
	else if(c<a&&a=b){
		printf("%d %d %d",c,a,b);
	}
	else if(b<a&&a=c){
		printf("%d %d %d",b,a,c);
	}
	else if(a=b&&b=c){
		printf("%d %d %d",a,b,c);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:28:23: error: lvalue required as left operand of assignment
   28 |         else if(a<b&&b=c){
      |                       ^
main.c:31:23: error: lvalue required as left operand of assignment
   31 |         else if(c<a&&a=b){
      |                       ^
main.c:34:23: error: lvalue required as left operand of assignment
   34 |         else if(b<a&&a=c){
      |                       ^
main.c:37:23: error: lvalue required as left operand of assignment
   37 |         else if(a=b&&b=c){
      |                       ^
Language: C

#include<stdio.h>
int main (void){
    int a,b,c;
    scaf("%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:4:5: error: implicit declaration of function 'scaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |     scaf("%d %d %d",&a,&b,&c);
      |     ^~~~
      |     scanf
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);
    eise 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);
    return 0;
}

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

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

}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: 'i0' undeclared (first use in this function); did you mean 'i'?
    7 | for(j=i0;j<i;j++){
      |       ^~
      |       i
main.c:7: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,i;
  scanf("%d %d %d",&a,&b,&c);
  if(a>b){
    i=a;
    a=b;
    b=i;
  }
  if(a>c){
    i=a;
    a=c;
    c=i;
  }
  if(b>c){
    i=b;
    b=c;
    c=i;
  }
  printf("%d %d %d\n",a,b,c);
  return 0;
}

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

#include <stdio.h>
#define SIZE ３
main()
{
        int j, k, temp, x[SIZE];
        printf("３個の整数を入力してください\n");
        printf("昇順に並べ替えて出力します\n");
        /* 入力 */
        for(j = 0 ; j < SIZE ; j++)
        {
                printf("deta = ");
                scanf("%d", &x[j]);
        }
        /* 並べ替え */
        for(j = 0 ; j < SIZE - 1; j++)
                for(k = j + 1; k < SIZE ; k++)
                        if(x[j] > x[k])
                        {
                                temp = x[j];
                                x[j] = x[k];
                                x[k] = temp;
                        }
        /* 出力 */
        for(j = 0; j < SIZE ; j++)
                printf("%d\n", x[j]);
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:2:14: error: '\U0000ff13' undeclared (first use in this function)
    2 | #define SIZE ３
      |              ^~
main.c:5:27: note: in expansion of macro 'SIZE'
    5 |         int j, k, temp, x[SIZE];
      |                           ^~~~
main.c:2:14: note: each undeclared identifier is reported only once for each function it appears in
    2 | #define SIZE ３
      |              ^~
main.c:5:27: note: in expansion of macro 'SIZE'
    5 |         int j, k, temp, x[SIZE];
      |                           ^~~~