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

#include<stdio.h>
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:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:8:2: error: expected declaration specifiers before 'scanf'
    8 |  scanf("%d%d%d",&a,&b,&c);
      |  ^~~~~
main.c:11:2: error: expected declaration specifiers before 'if'
   11 |  if(a > b){
      |  ^~
main.c:18:1: error: expected declaration specifiers before 'if'
   18 | if(b > c){
      | ^~
main.c:25:2: error: expected declaration specifiers before 'if'
   25 |  if(a > b){
      |  ^~
main.c:32:1: error: expected declaration specifiers before 'printf'
   32 | printf("%d %d %d\n",a,b,c);
      | ^~~~~~
main.c:35:1: error: expected declaration specifiers before 'return'
   35 | return 0;
      | ^~~~~~
main.c:38:1: error: expected declaration specifiers before '}' token
   38 | }
      | ^
main.c:2:1: error: old-style parameter declarations in prototyped function definition
    2 | main(void)
      | ^~~~
main.c:39: error: expected '{' at end of input
Language: C

#include<stdio.h>
main()


 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:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:8:2: error: expected declaration specifiers before 'scanf'
    8 |  scanf("%d%d%d",&a,&b,&c);
      |  ^~~~~
main.c:11:2: error: expected declaration specifiers before 'if'
   11 |  if(a > b){
      |  ^~
main.c:18:1: error: expected declaration specifiers before 'if'
   18 | if(b > c){
      | ^~
main.c:25:2: error: expected declaration specifiers before 'if'
   25 |  if(a > b){
      |  ^~
main.c:32:1: error: expected declaration specifiers before 'printf'
   32 | printf("%d %d %d\n",a,b,c);
      | ^~~~~~
main.c:35:1: error: expected declaration specifiers before 'return'
   35 | return 0;
      | ^~~~~~
main.c:38:1: error: expected declaration specifiers before '}' token
   38 | }
      | ^
main.c:5:16: error: declaration for parameter 'z' but no such parameter
    5 |  int a,b,c,x,y,z;
      |                ^
main.c:5:14: error: declaration for parameter 'y' but no such parameter
    5 |  int a,b,c,x,y,z;
      |              ^
main.c:5:12: error: declaration for parameter 'x' but no such parameter
    5 |  int a,b,c,x,y,z;
      |            ^
main.c:5:10: error: declaration for parameter 'c' but no such parameter
    5 |  int a,b,c,x,y,z;
      |          ^
main.c:5:8: error: declaration for parameter 'b' but no such parameter
    5 |  int a,b,c,x,y,z;
      |        ^
main.c:5:6: error: declaration for parameter 'a' but no such parameter
    5 |  int a,b,c,x,y,z;
      |      ^
main.c:39: error: expected '{' at end of input
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",a,b,c)
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:31:25: error: expected ';' before 'return'
   31 | printf("%d %d %d",a,b,c)
      |                         ^
      |                         ;
   32 | 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",a,b,c)}
else if(a<c&&c<b){printf("%d %d %d",a,c,)}
else if(b<a&&a<c){printf("%d %d %d",b,a,c)}
else if(b<c&&c<a){printf("%d %d %d",b,c,a)}
else if(c<a&&a<b){printf("%d %d %d",c,a,b)}
else if(c<b&&b<a){printf("%d %d %d",c,b,a)}
return 0 ;}

Compiler output:
main.c: In function 'main':
main.c:5:39: error: expected ';' before '}' token
    5 |  if(a<b&&b<c){printf("%d %d %d",a,b,c)}
      |                                       ^
      |                                       ;
main.c:6:41: error: expected expression before ')' token
    6 | else if(a<c&&c<b){printf("%d %d %d",a,c,)}
      |                                         ^
main.c:7:43: error: expected ';' before '}' token
    7 | else if(b<a&&a<c){printf("%d %d %d",b,a,c)}
      |                                           ^
      |                                           ;
main.c:8:43: error: expected ';' before '}' token
    8 | else if(b<c&&c<a){printf("%d %d %d",b,c,a)}
      |                                           ^
      |                                           ;
main.c:9:43: error: expected ';' before '}' token
    9 | else if(c<a&&a<b){printf("%d %d %d",c,a,b)}
      |                                           ^
      |                                           ;
main.c:10:43: error: expected ';' before '}' token
   10 | else if(c<b&&b<a){printf("%d %d %d",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",a,b,c);}
else if(a<c&&c<b){printf("%d %d %d",a,c,);}
else if(b<a&&a<c){printf("%d %d %d",b,a,c);}
else if(b<c&&c<a){printf("%d %d %d",b,c,a);}
else if(c<a&&a<b){printf("%d %d %d",c,a,b);}
else if(c<b&&b<a){printf("%d %d %d",c,b,a);}
return 0 ;}

Compiler output:
main.c: In function 'main':
main.c:6:41: error: expected expression before ')' token
    6 | else if(a<c&&c<b){printf("%d %d %d",a,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);}
else if(a<c&&c<b){printf("%d %d %d",a,c,);}
else if(b<a&&a<c){printf("%d %d %d",b,a,c);}
else if(b<c&&c<a){printf("%d %d %d",b,c,a);}
else if(c<a&&a<b){printf("%d %d %d",c,a,b);}
else (c<b&&b<a){printf("%d %d %d",c,b,a);}
return 0 ;}

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

Compiler output:
main.c: In function 'main':
main.c:10:16: error: expected ';' before '{' token
   10 | else (c<b&&b<a){printf("%d %d %d",c,b,a);}
      |                ^
      |                ;
Language: C

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

Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include<stdio.h> int main(void) { int a,b,c,B,C;  scanf("%d %d %d",&a,&b,&c); if(a>b){  B=b;  b=a;  a=B; } if(a>c){  C=c;  c=a;  a=C; } if(b>c){  C=c;  c=b;  b=C; }  printf("%d %d %d\n",a,b,c);  return 0; }
      |                   ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include<stdio.h>

int a,b,c;

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

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

}

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

}

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

}

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

}

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

}

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

}

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

}

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

}

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

}

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

}

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

}

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

}

return 0;

}

Compiler output:
main.c:5:7: error: expected declaration specifiers or '...' before string constant
    5 | scanf("%d""%d""%d",&a,&b,&c);
      |       ^~~~
main.c:5:20: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d""%d""%d",&a,&b,&c);
      |                    ^
main.c:5:23: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d""%d""%d",&a,&b,&c);
      |                       ^
main.c:5:26: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d""%d""%d",&a,&b,&c);
      |                          ^
main.c:7:1: error: expected identifier or '(' before 'if'
    7 | if(a<b&&b<c){printf("%d %d %d\n",a,b,c);
      | ^~
main.c:11:1: error: expected identifier or '(' before 'else'
   11 | else if(a<c&&c<b){printf("%d %d %d\n",a,c,b);
      | ^~~~
main.c:15:1: error: expected identifier or '(' before 'else'
   15 | else if(b<c&&c<a){printf("%d  %d %d\n",b,c,a);
      | ^~~~
main.c:19:1: error: expected identifier or '(' before 'else'
   19 | else if(b<a&&a<c){printf("%d  %d %d\n",b,a,c);
      | ^~~~
main.c:23:1: error: expected identifier or '(' before 'else'
   23 | else if(c<a&&a<b){printf("%d  %d %d\n",c,a,b);
      | ^~~~
main.c:27:1: error: expected identifier or '(' before 'else'
   27 | else if(c<b&&b<a){printf("%d  %d %d\n",c,b,a);
      | ^~~~
main.c:31:1: error: expected identifier or '(' before 'else'
   31 | else if(b==c&&b<a){printf("%d %d %d\n",c,b,a);
      | ^~~~
main.c:35:1: error: expected identifier or '(' before 'else'
   35 | else if(b==a&&b<c){printf("%d %d %d\n",b,a,c);
      | ^~~~
main.c:39:1: error: expected identifier or '(' before 'else'
   39 | else if(a==b&&b<c){printf("%d %d %d\n",a,b,c);
      | ^~~~
main.c:43:1: error: expected identifier or '(' before 'else'
   43 | else if(a==c&&c<b){printf("%d %d %d\n",a,c,b);
      | ^~~~
main.c:47:1: error: expected identifier or '(' before 'else'
   47 | else if(c==a&&a<b){printf("%d %d %d\n",a,b,c);
      | ^~~~
main.c:51:1: error: expected identifier or '(' before 'else'
   51 | else{printf("%d %d %d\n",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 <iostream> 

using namespace std;   

int main() {     

int a,b,c,d;     

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

}       

cout<<a<<" "<<b<<" "<<c<<endl;      

return 0; 

}

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

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

Compiler output:
main.c: In function 'main':
main.c:4:5: error: 'i' undeclared (first use in this function); did you mean 'ci'?
    4 | for(i=0;i<3;i++)
      |     ^
      |     ci
main.c:4:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:2: error: 'c' undeclared (first use in this function); did you mean 'ci'?
   15 | {c=num[0];
      |  ^
      |  ci
Language: C

d=[int(i) for i in input().split()]
d.sort()
print('{} {} {}'.format(d[0],d[1],d[2]))

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | d=[int(i) for i in input().split()]
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
main.c:1:3: error: expected expression before '[' token
    1 | d=[int(i) for i in input().split()]
      |   ^
main.c:2:1: error: expected ',' or ';' before 'd'
    2 | d.sort()
      | ^
main.c:3:7: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    3 | print('{} {} {}'.format(d[0],d[1],d[2]))
      |       ^~~~~~~~~~
Language: C

d=[int(i) for i in input().split()]
d.sort()
print("{0} {1} {2}".format(d[0],d[1],d[2]))

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | d=[int(i) for i in input().split()]
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
main.c:1:3: error: expected expression before '[' token
    1 | d=[int(i) for i in input().split()]
      |   ^
main.c:2:1: error: expected ',' or ';' before 'd'
    2 | d.sort()
      | ^
Language: C

#include <stdio.h>
??
int main(){
????????int a, b, c, t;
??????????
????????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:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:1: error: expected expression before '?' token
    3 | ??int a,b,c,x;
      | ^
main.c:4:1: error: expected expression before '?' token
    4 | ??scanf("%d %d %d",&a,&b,&c);
      | ^
main.c:4:21: error: 'a' undeclared (first use in this function)
    4 | ??scanf("%d %d %d",&a,&b,&c);
      |                     ^
main.c:4:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:24: error: 'b' undeclared (first use in this function)
    4 | ??scanf("%d %d %d",&a,&b,&c);
      |                        ^
main.c:4:27: error: 'c' undeclared (first use in this function)
    4 | ??scanf("%d %d %d",&a,&b,&c);
      |                           ^
main.c:5:1: error: expected expression before '?' token
    5 | ??if(a>b){
      | ^
Language: C

#include<stdio.h>
int main(){
????????int a,b,c;
????????int t;
????????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:3:1: error: expected expression before '?' token
    3 | ????????int a,b,c;
      | ^
main.c:4:1: error: expected expression before '?' token
    4 | ????????int t;
      | ^
main.c:5:1: error: expected expression before '?' token
    5 | ????????scanf ("%d %d %d",&a,&b,&c);
      | ^
main.c:5:28: error: 'a' undeclared (first use in this function)
    5 | ????????scanf ("%d %d %d",&a,&b,&c);
      |                            ^
main.c:5:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:31: error: 'b' undeclared (first use in this function)
    5 | ????????scanf ("%d %d %d",&a,&b,&c);
      |                               ^
main.c:5:34: error: 'c' undeclared (first use in this function)
    5 | ????????scanf ("%d %d %d",&a,&b,&c);
      |                                  ^
main.c:6:1: error: expected expression before '?' token
    6 | ??????????
      | ^
main.c:23:1: error: expected expression before '?' token
   23 | ??????????
      | ^
Language: C

#include <stdio.h>
??
int main(){
????????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:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
main.c:23: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%d%d",&a,&b,&c);
   if(a>b){
      x=a;
      a=b;
      b=x;
   }
   if(a>c){
      x=a;
      a=c;
      c=x;
   {
   if(b>c){
      x=b;
      b=c;
      c=x;
   }
   printf("%d %d %d\n",a,b,c);
   return 0;
}

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

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

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

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

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

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

return 0;
}

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>int main(void){int a,b,c;
      |                  ^~~
main.c:4:7: error: expected declaration specifiers or '...' before string constant
    4 | scanf("%d %d %d",&a,&b,&c);
      |       ^~~~~~~~~~
main.c:4:18: error: expected declaration specifiers or '...' before '&' token
    4 | scanf("%d %d %d",&a,&b,&c);
      |                  ^
main.c:4:21: error: expected declaration specifiers or '...' before '&' token
    4 | scanf("%d %d %d",&a,&b,&c);
      |                     ^
main.c:4:24: error: expected declaration specifiers or '...' before '&' token
    4 | scanf("%d %d %d",&a,&b,&c);
      |                        ^
main.c:6:1: error: expected identifier or '(' before 'if'
    6 | if (a>b)
      | ^~
main.c:13:1: error: expected identifier or '(' before 'if'
   13 | if (a>c)
      | ^~
main.c:20:1: error: expected identifier or '(' before 'if'
   20 | if (b>c)
      | ^~
main.c:26:8: error: expected declaration specifiers or '...' before string constant
   26 | printf("%d %d %d\n",a,b,c);
      |        ^~~~~~~~~~~~
main.c:26:21: error: unknown type name 'a'
   26 | printf("%d %d %d\n",a,b,c);
      |                     ^
main.c:26:23: error: unknown type name 'b'
   26 | printf("%d %d %d\n",a,b,c);
      |                       ^
main.c:26:25: error: unknown type name 'c'
   26 | printf("%d %d %d\n",a,b,c);
      |                         ^
main.c:28:1: error: expected identifier or '(' before 'return'
   28 | return 0;
      | ^~~~~~
main.c:29:1: error: expected identifier or '(' before '}' token
   29 | }
      | ^
Language: C

#include<stdio.h>

int main(void){  

int a,b,c;

int tmo;

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

if(a>b)

{   

tmp=a;   

a=b;   

b=tmp;  

}  

if(a>c)

{  

tmp=a;   

a=c;   

c=tmp;  

}  

if(b>c){   

tmp=b;   

b=c;   

c=tmp;  

}  

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:15:1: error: 'tmp' undeclared (first use in this function); did you mean 'tmo'?
   15 | tmp=a;
      | ^~~
      | tmo
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;
	int mini;

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

	mini;

	if(a > b){
		mini = b;
		b = a;
		a = mini;
	}else if(b > c){
		mini = c;
		c = b;
		b = mini;
	}

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

	return 0;
}

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

#include <stdio.h>

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

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:29:9: error: expected declaration or statement at end of input
   29 |         printf("%d %d %d\n", a, b, c);
      |         ^~~~~~
Language: C

#include <stdio.h>

int main(int argc, char *argv[]){
	int a, b, c;
	int temp;

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:29:9: error: expected declaration or statement at end of input
   29 |         printf("%d %d %d\n", a, b, c);
      |         ^~~~~~
Language: C

#include <stdio.h>

int main(void)
{
  int a[3] = "0";
  int i, j;
  int t;
  
  scanf("%d %d %d", &a[0], &a[1], &a[2]);

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

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:14: error: cannot initialize array of 'int' from a string literal with type array of 'char'
    5 |   int a[3] = "0";
      |              ^~~
main.c:12:23: error: 'J' undeclared (first use in this function)
   12 |     for(j = 2; j > 0; J--)
      |                       ^
main.c:12:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:18: error: subscripted value is neither array nor pointer nor vector
   13 |       if(a[j] < j[j - 1]){
      |                  ^
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) {
    if (b > c) {
      z = b;
      b = c;
      c = z;
    }
  printf("%d %d %d\n", a, b, c);
  return 0;
}  
  
    

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:31: error: expected expression before '[' token
    6 |     scanf("%d %d %d", &a[0], &[1], &a[2]);
      |                               ^
Language: C

#include<stdio.h>

int main(void) {
    int a,d,c,i,d[3];

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

    for(i=0;i<3;i++) {
        d[i] = (a>b && a>c) ? a : (b>c ? b : c);
    }

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:17: error: conflicting types for 'd'; have 'int[3]'
    4 |     int a,d,c,i,d[3];
      |                 ^
main.c:4:11: note: previous declaration of 'd' with type 'int'
    4 |     int a,d,c,i,d[3];
      |           ^
main.c:6:26: error: 'b' undeclared (first use in this function)
    6 |     scanf("%d %d %d",&a,&b,&c);
      |                          ^
main.c:6:26: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void) {
    int a,d,c,i,d[3];

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

    for(i=0;i<3;i++) {
        d[i] = a>b && a>c ? a : (b>c ? b : c);
    }

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:17: error: conflicting types for 'd'; have 'int[3]'
    4 |     int a,d,c,i,d[3];
      |                 ^
main.c:4:11: note: previous declaration of 'd' with type 'int'
    4 |     int a,d,c,i,d[3];
      |           ^
main.c:6:26: error: 'b' undeclared (first use in this function)
    6 |     scanf("%d %d %d",&a,&b,&c);
      |                          ^
main.c:6:26: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void) {
    int a,d,c,i;
    int d[3];

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

    for(i=0;i<3;i++) {
        d[i] = a>b && a>c ? a : (b>c ? b : c);
    }

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: conflicting types for 'd'; have 'int[3]'
    5 |     int d[3];
      |         ^
main.c:4:11: note: previous declaration of 'd' with type 'int'
    4 |     int a,d,c,i;
      |           ^
main.c:7:26: error: 'b' undeclared (first use in this function)
    7 |     scanf("%d %d %d",&a,&b,&c);
      |                          ^
main.c:7:26: 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,no1,no2,no3;

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

    no3 = a>=b && a>=c ? a : (b>=c ? b : c);
    no2 = (a>=b && a<=c) || (a<=b && a>=c) ? a : (b>=c ? b : c);
    no1 = a<=b && a<=c ? a : (b<=c ? b : c);

    printf("%d %d %d",no1,no2,no3);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:22: error: '$a' undeclared (first use in this function); did you mean 'a'?
    7 |     scanf("%d %d %d",$a,$b,$c);
      |                      ^~
      |                      a
main.c:7:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:25: error: '$b' undeclared (first use in this function); did you mean 'b'?
    7 |     scanf("%d %d %d",$a,$b,$c);
      |                         ^~
      |                         b
main.c:7:28: error: '$c' undeclared (first use in this function); did you mean 'c'?
    7 |     scanf("%d %d %d",$a,$b,$c);
      |                            ^~
      |                            c
Language: C

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

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

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

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

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

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

   getch(); 
}

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

#include<stdio.h>

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

Compiler output:
main.c:38:1: error: expected identifier or '(' before '}' token
   38 | }
      | ^
Language: C

#include<iostream>
using namespace std;

int main(){
cin>>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;}

count<<a<<" "<<b<<" "<<c<<end1;

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

Compiler output:
main.c: In function 'main':
main.c:4:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    4 |      scanf("%d %d",&a,&b);
      |      ^~~~~
main.c:5:21: error: 'c' undeclared (first use in this function)
    5 |      if (a<=b && b<=c){
      |                     ^
main.c:5:21: 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;
   int tmp;
    
    do{
     scanf("%d",&a);
    
    }while(a>10000||a<1);
    
    do{
    
     scanf("%d",&b);

    }while(b>10000||b<1);

    do{
    
     scanf("%d",&c);

    }while(c>10000||c<1);

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

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

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


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

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

#include<stdio.h>

int main(){
   int a,b,c;
   int tmp;
    
    do{
     scanf("%d",&a);
    
    }while(a>10000||a<1);
    
    do{
    
     scanf("%d",&b);

    }while(b>10000||b<1);

    do{
    
     scanf("%d",&c);

    }while(c>10000||c<1);

   
    }


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

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

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

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

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

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

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

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

#include <stdio.h>
??
int main(){
 int a,b,c;
 int tmp; 
??
??do{
??
??????scanf("%d",&a);
??
??}while(a>10000||a<1);
??
??do{
??
??????scanf("%d",&b);
??
??}while(b>10000||b<1);
??
??do{
??
??????scanf("%d",&c);
??
??}while(c>10000||c<1);
??printf("%d %d %d\n",a,b,c);
return 0;
}

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

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

 do{
   scanf("%d",&a);  
 }while(a>10000||a<1);

 do{
   scanf("%d",&b);  
 }while(b>10000||b<1);

 do{
   scanf("%d",&c);  
 }while(c>10000||c<1);

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

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

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

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

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

 do{
   scanf("%d",&a);  
 }while(a>10000||a<1);

 do{
   scanf("%d",&b);  
 }while(b>10000||b<1);

 do{
   scanf("%d",&c);  
 }while(c>10000||c<1);

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

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

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

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

#include <stdio.h>

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

 do{
   scanf("%d",&a);  
 }while(a>10000||a<1);

 do{
   scanf("%d",&b);  
 }while(b>10000||b<1);

 do{
   scanf("%d",&c);  
 }while(c>10000||c<1);

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

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

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

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

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

 do{
   scanf("%d",&a);  
 }while(a>10000||a<1);

 do{
   scanf("%d",&b);  
 }while(b>10000||b<1);

 do{
   scanf("%d",&c);  
 }while(c>10000||c<1);

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

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

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

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

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

 do{
   scanf("%d",&a);  
 }while(a>10000||a<1);

 do{
   scanf("%d",&b);  
 }while(b>10000||b<1);

 do{
   scanf("%d",&c);  
 }while(c>10000||c<1);

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

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

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

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

#include <stdio.h>

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

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

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

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:5: error: 'tmp' undeclared (first use in this function); did you mean 'tpm'?
   14 |     tmp = b;
      |     ^~~
      |     tpm
main.c:14:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:1: error: expected expression before '?' token
   15 | ??????b = a;
      | ^
main.c:20:1: error: expected expression before '?' token
   20 | ??????c = b;
      | ^
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'sacnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |   sacnf("%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\n",a,b,c)
    }
    if((a<c)&&(c<b)){
        printf("%d\n",a,c,b)
    }
    if((b<a)&&(a<c)){
        printf("%d\n",b,a,c)
    }
    if((b<c)&&(c<a)){
        printf("%d\n",b,c,a)
    }
    if((c<a)&&(a<b)){
        printf("%d\n",c,a,b)
    }
    else{
        printf("%d\n",c,b,a)
    }
    
    
    return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:4:31: error: expected ';' before 'if'
    4 |     scanf("%d %d %d",&a,&b,&c)
      |                               ^
      |                               ;
    5 |     if((a<b)&&(b<c)){
      |     ~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:45: error: expected ';' before 'return'
   13 |     if(a==b&&b==c)printf("%d %d %d",a ,b ,c)
      |                                             ^
      |                                             ;
   14 |     return 0;
      |     ~~~~~~
Language: C

#include<stdio.h>

int main(){

  int a,b,c;

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:5: error: expected expression before '}' token
   15 |     }
      |     ^
main.c: At top level:
main.c:16:3: error: expected identifier or '(' before 'else'
   16 |   else if (b > a && b > c && a > c){
      |   ^~~~
main.c:19:3: error: expected identifier or '(' before 'else'
   19 |   else if (b > a && b > c && c > a){
      |   ^~~~
main.c:22:2: error: expected identifier or '(' before 'else'
   22 |  else if (c > a && c > b && a > b){
      |  ^~~~
main.c:25:2: error: expected identifier or '(' before 'else'
   25 |  else if(c > a && c > b && b > a){
      |  ^~~~
main.c:29:3: error: expected identifier or '(' before 'return'
   29 |   return 0;
      |   ^~~~~~
main.c:30:1: error: expected identifier or '(' before '}' token
   30 | }
      | ^
Language: C

#include<stdio.h>

int main(){

  int a,b,c;

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

  return 0;
}

Compiler output:
main.c:17:3: error: expected identifier or '(' before 'else'
   17 |   else if (b > a && b > c && a > c){
      |   ^~~~
main.c:20:3: error: expected identifier or '(' before 'else'
   20 |   else if (b > a && b > c && c > a){
      |   ^~~~
main.c:23:2: error: expected identifier or '(' before 'else'
   23 |  else if (c > a && c > b && a > b){
      |  ^~~~
main.c:26:2: error: expected identifier or '(' before 'else'
   26 |  else if(c > a && c > b && b > a){
      |  ^~~~
main.c:30:3: error: expected identifier or '(' before 'return'
   30 |   return 0;
      |   ^~~~~~
main.c:31:1: error: expected identifier or '(' before '}' token
   31 | }
      | ^
Language: C

#include<stdio.h>

int main()

{
	int a, b, c;

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


}

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

#include <stdio.h>

int main()

{
	int a;
	int b;
	int c;

	a = 0;
	b = 0;
	c = 0;

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

	return(0);
}

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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:11:9: error: 'else' without a previous 'if'
   11 |         else if((b<a)&&(a<b))
      |         ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected ')' before 'a'
    5 | scanf("%d %d %d"a[0],a[1],a[2]);
      |      ~          ^
      |                 )
Language: C

#include <stdio.h>
//sorting_tree_numbers.c

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

Compiler output:
main.c:33:1: error: expected identifier or '(' before '}' token
   33 | }
      | ^
Language: C

#include <stdio.h>

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

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

 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:6:29: error: 'd' undeclared (first use in this function)
    6 |  scanf("%d %d %d", &a, &b, &d);
      |                             ^
main.c:6:29: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void){
    int a[3];
    scanf("%d %d %d", &a[0], &a[1], &a[2]);
    sort(a);
    printf("%d %d %d", a[0], a[1], a[2]);
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'sort' [-Wimplicit-function-declaration]
    6 |     sort(a);
      |     ^~~~
Language: C

#include <stdio.h>
#include <stdlb.h>

int main(void){
    int a[3]
    scanf("%d %d %d", a[0], a[1], a[2]);
    qsort(a);
    printf("%d %d %d", a[0], a[1], a[2]);
}
    

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

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

int main(void){
    int a[3]
    scanf("%d %d %d", a[0], a[1], a[2]);
    qsort(a);
    printf("%d %d %d", a[0], a[1], a[2]);
}
    

Compiler output:
main.c: In function 'main':
main.c:6:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |     scanf("%d %d %d", a[0], a[1], a[2]);
      |     ^~~~~
main.c:6:23: error: 'a' undeclared (first use in this function)
    6 |     scanf("%d %d %d", a[0], a[1], a[2]);
      |                       ^
main.c:6:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:5: error: too few arguments to function 'qsort'
    7 |     qsort(a);
      |     ^~~~~
In file included from main.c:2:
/usr/include/stdlib.h:970:13: note: declared here
  970 | extern void qsort (void *__base, size_t __nmemb, size_t __size,
      |             ^~~~~