criyle/codenet-compile-errors huggingface dataset:
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:24: error: 'a' undeclared (first use in this function)
    6 |     scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |                        ^
main.c:6:24: 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,
      |             ^~~~~
Language: C

#include<stdio.h>
int main(void){
    int a = 0;
    int b = 0;
    int c = 0;
    scanf("%d%d%d",&a,&b,&c);
    int f = 0;
    if(a > b){
        f ++;
    }
    if(b > c){
        f += 2;
    }
    if(a > c){
        f += 3;
    }
    if(f == 0){
        printf("%d %d %d\n",a,b,c);
    }
    if(f == 1){
        printf("%d %d %d\n",b,a,c);
    }
    if(f == 2){
        printf("%d %d %d\n",a,c,b);
    }
    if(f == 4){
        printf("%d %d %d\n",b,c,a);
    }
    if(f == 5){
        printf("%d %d %d\n",c,a,b);
    }
    if(f == 6){
        printf("%d %d %d\n",c,b,a);
    }

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

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

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

    scanf("%d %d %d", &a[0], &a[1], &a[2]);
    for(i = 0; i < 2; i++){
        for(j = 2; j > i; j--;){
            if(a[j - 1] > a[j]){
                int temp = a[j];
                a[j] = a[j - 1];
                a[j - 1] = temp;
            }
        }
    }
         
    printf("%d %d %d", a[0], a[1], a[2]);
}
    

Compiler output:
main.c: In function 'main':
main.c:10:30: error: expected ')' before ';' token
   10 |         for(j = 2; j > i; j--;){
      |            ~                 ^
      |                              )
Language: C

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

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

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

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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:16: error: expected expression before '?' token
    8 |         printf(???%d %d %d\n???,a,b,c);
      |                ^
main.c:8:27: error: stray '\' in program
    8 |         printf(???%d %d %d\n???,a,b,c);
      |                           ^
main.c:12:16: error: expected expression before '?' token
   12 |         printf(???%d %d %d\n???,b,a,c);
      |                ^
main.c:12:27: error: stray '\' in program
   12 |         printf(???%d %d %d\n???,b,a,c);
      |                           ^
Language: C

#include<stdio.h>

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

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

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

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

	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:31:9: error: expected declaration or statement at end of input
   31 |         return 0;
      |         ^~~~~~
Language: C

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

Compiler output:
main.c:2:15: error: expected declaration specifiers or '...' before string constant
    2 |         scanf("%d %d %d",&a,&b,&c);
      |               ^~~~~~~~~~
main.c:2:26: error: expected declaration specifiers or '...' before '&' token
    2 |         scanf("%d %d %d",&a,&b,&c);
      |                          ^
main.c:2:29: error: expected declaration specifiers or '...' before '&' token
    2 |         scanf("%d %d %d",&a,&b,&c);
      |                             ^
main.c:2:32: error: expected declaration specifiers or '...' before '&' token
    2 |         scanf("%d %d %d",&a,&b,&c);
      |                                ^
main.c:5:9: error: expected identifier or '(' before 'if'
    5 |         if(a >b){
      |         ^~
main.c:10:9: error: expected identifier or '(' before 'if'
   10 |         if(b>c){
      |         ^~
main.c:15:9: error: expected identifier or '(' before 'if'
   15 |         if(a<c){
      |         ^~
main.c:20:16: error: expected declaration specifiers or '...' before string constant
   20 |         printf("%d %d %d\n", a, b, c);
      |                ^~~~~~~~~~~~
main.c:20:30: error: expected declaration specifiers or '...' before 'a'
   20 |         printf("%d %d %d\n", a, b, c);
      |                              ^
main.c:20:33: error: expected declaration specifiers or '...' before 'b'
   20 |         printf("%d %d %d\n", a, b, c);
      |                                 ^
main.c:20:36: error: expected declaration specifiers or '...' before 'c'
   20 |         printf("%d %d %d\n", a, b, c);
      |                                    ^
Language: C

#include <cstdio>
int main() {
int a,b,c;
scanf("%d",&a);
scanf("%d",&b);
if(a>b)a+=b,b=a-b,a-=b;
scanf("%d",&c);
if(b>c)b+=c,c=b-c,b-=c;
if(a>b)a+=b,b=a-b,a-=b;
printf("%d %d %d\n",a,b,c);
}

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

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

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

	sxanf("%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:6:9: error: implicit declaration of function 'sxanf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         sxanf("%d%d%d",&a,&b,&c);
      |         ^~~~~
      |         scanf
Language: C

#include <stdio.h>
int main(void){
	int a, b, c, tmp;
????????scanf("%d %d %d", &a, &b, &c);
????????if (a > b) {
????????????????tmp = a;
????????????????a = b;
????????????????b = tmp;
????????}
????????if (b > c) {
????????????????tmp = b;
????????????????b = c;
????????????????c = 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:4:1: error: expected expression before '?' token
    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>
main(){
int na;
int nb;
int nc;
scanf("%d %d %d",&na,&nb,&nc);
if(na>nb){
	swap(na,nb);
}
if(nb>nc){
	swap(nb,nc);
}
if(na>nb){
	swap(na,nb);
}
prinf("%d %d %d\n",na,nb,nc);
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:9: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
    8 |         swap(na,nb);
      |         ^~~~
main.c:16:1: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   16 | prinf("%d %d %d\n",na,nb,nc);
      | ^~~~~
      | printf
Language: C

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

Compiler output:
main.c: In function 'swap':
main.c:3:11: error: expected expression before 'int'
    3 |         a=int chukei;
      |           ^~~
main.c:5:9: error: 'chukei' undeclared (first use in this function)
    5 |         chukei=b;
      |         ^~~~~~
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:7:1: error: return type defaults to 'int' [-Wimplicit-int]
    7 | main(){
      | ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:39: error: expected ')' before 'b'
    8 |   if((b<a)&&(a<c))   printf("%d %d %d"b,,a,c);
      |                            ~          ^
      |                                       )
main.c:10:18: error: expected ')' before 'printf'
   10 |   if((c<b)&&(b<a)   printf("%d %d %d",c,b,a);
      |     ~            ^  ~~~~~~
      |                  )
main.c:13:1: error: expected expression before '}' token
   13 | }
      | ^
Language: C

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

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

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

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

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

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

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

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

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

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

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:12: error: expected ';' before numeric constant
    6 | 1<=a<=10000
      |            ^
      |            ;
    7 | 1<=b<=10000
      | ~           
main.c:12:1: error: 'else' without a previous 'if'
   12 | else if(a<c &&c<b)
      | ^~~~
main.c:15:15: error: expected expression before '?' token
   15 | else if(b<a &&???a<c)
      |               ^
Language: C

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

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

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

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

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

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

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

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

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

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

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

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<c)
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 if(c<b&&b<a)
printf("c b a\n");

}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: expected ';' before 'a'
    6 | a>=1
      |     ^
      |     ;
    7 | a<=10000
      | ~
Language: C

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

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<c)
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:6:5: error: expected ';' before 'a'
    6 | a>=1
      |     ^
      |     ;
    7 | a<=10000
      | ~
Language: C

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

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<c)
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:16:1: error: expected '}' before 'else'
   16 | else if(a<c&&c<b)
      | ^~~~
main.c: At top level:
main.c:32:1: error: expected identifier or '(' before 'return'
   32 | return 0;
      | ^~~~~~
main.c:33:1: error: expected identifier or '(' before '}' token
   33 | }
      | ^
Language: C

#include<stdio.h>
int main()
{
int a,b,c;
scanf("%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<c)
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:10:1: error: expected '}' before 'else'
   10 | else if(a<c&&c<b)
      | ^~~~
main.c: At top level:
main.c:26:1: error: expected identifier or '(' before 'return'
   26 | return 0;
      | ^~~~~~
main.c:27:1: error: expected identifier or '(' before '}' token
   27 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:1: error: expected '}' before 'else'
   16 | else if(a<c&&c<b)
      | ^~~~
main.c:28:5: error: expected expression before '?' token
   28 | else???if
      |     ^
main.c: At top level:
main.c:32:1: error: expected identifier or '(' before 'return'
   32 | return 0;
      | ^~~~~~
main.c:33:1: error: expected identifier or '(' before '}' token
   33 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:1: error: expected '}' before 'else'
   16 | else if(a<c&&c<b)
      | ^~~~
main.c:29:1: error: expected '(' before 'printf'
   29 | printf("c b a\n");
      | ^~~~~~
      | (
main.c: At top level:
main.c:32:1: error: expected identifier or '(' before 'return'
   32 | return 0;
      | ^~~~~~
main.c:33:1: error: expected identifier or '(' before '}' token
   33 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:1: error: expected '}' before 'else'
   16 | else if(a<c&&c<b)
      | ^~~~
main.c:29:1: error: expected '(' before 'printf'
   29 | printf("c b a\n");
      | ^~~~~~
      | (
main.c: At top level:
main.c:32:1: error: expected identifier or '(' before 'return'
   32 | return 0;
      | ^~~~~~
main.c:33:1: error: expected identifier or '(' before '}' token
   33 | }
      | ^
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:17:1: error: expected '}' before 'else'
   17 | else if(a<c && c<b)
      | ^~~~
main.c: At top level:
main.c:33:1: error: expected identifier or '(' before 'return'
   33 | return 0;
      | ^~~~~~
main.c:34:1: error: expected identifier or '(' before '}' token
   34 | }
      | ^
Language: C

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

if(a>b){
konomondaisyosinsyanihamuzukasikunaidesukane=a;
a==b;
b==konomondaisyosinsyanihamuzukasikunaidesukane;
}
if(b>c){
konomondaisyosinsyanihamuzukasikunaidesukane=b;
b==c;
c==konomondaisyosinsyanihamuzukasikunaidesukanb;
}
if(a>b){
konomondaisyosinsyanihamuzukasikunaidesukane=a;
a==b;
b==konomondaisyosinsyanihamuzukasikunaidesukane;
}
return 0;
}

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

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

int main(){
    int a, b, c, d;
    
    scanf("%d %d %d", &a, &b, &d);
    
    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:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>#include <stdio.h>
      |                  ^
main.c: In function 'main':
main.c:9:9: error: 't' undeclared (first use in this function)
    9 |         t = a;
      |         ^
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#inc#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:1:2: error: invalid preprocessing directive #inc
    1 | #inc#include <stdio.h>
      |  ^~~
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |     scanf("%d %d %d", &a, &b, &c);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inc#include <stdio.h>
main.c:6:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |     scanf("%d %d %d", &a, &b, &c);
      |     ^~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:26:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   26 |     printf("%d %d %d\n", a, b, c);
      |     ^~~~~~
main.c:26:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:26:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:26:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>
int main(int argc, char const *argv[]) {
  int num[2];
  int tmp;
  scanf("%d%d%d\n",&num[0],&num[1],&num[2]);

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: 'i' undeclared (first use in this function)
    7 |   for(i=0;i<2;i++){
      |       ^
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:9: error: 'j' undeclared (first use in this function)
    8 |     for(j=2;j>i;j--){
      |         ^
Language: C

#include <stdio.h>

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

while(1)
{
scanf("%d %d %d",&a,&b,&c);
if(1<=a,b,c&&a,b,c<=10000);
break;
}

for(i=1;i<=3;i++){
if(a>b)
{
tmp=a;
a=b;
b=tmp;
}
else if(b>c)
tmp=b;
b=c;
c=tmp;
}
}

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

return 0;
}

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

Compiler output:
main.c: In function 'main':
main.c:6:23: error: invalid operands to binary & (have 'int *' and 'int')
    6 |    scanf("%d %d %d",&a&b&c);
      |                     ~~^
      |                     |
      |                     int *
main.c:7:13: error: 'i' undeclared (first use in this function)
    7 |         for(i=0;i<n-1;i++){
      |             ^
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:25: error: 'temp' undeclared (first use in this function)
    9 |                         temp=a;
      |                         ^~~~
Language: C

#include<stdio.h>

int main(void)
{
   int a,b,c,n=3;
   scanf("%d %d %d",&a,&b,&c);
	for(i=0;i<n-1;i++){
		if(a<b){
			temp=a;
			a=b;
			b=temp;
		}
		if(b<c){
			temp=b;
			b=c;
			c=temp;
		}
	}
	printf("%d %d %d\n",a,b,c);
			
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:13: error: 'i' undeclared (first use in this function)
    7 |         for(i=0;i<n-1;i++){
      |             ^
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:25: error: 'temp' undeclared (first use in this function)
    9 |                         temp=a;
      |                         ^~~~
Language: C

#include<stdio.h>

int main(void)
{
   int a,b,c,n=3,i;
   scanf("%d %d %d",&a,&b,&c);
	for(i=0;i<n-1;i++){
		if(a<b){
			temp=a;
			a=b;
			b=temp;
		}
		if(b<c){
			temp=b;
			b=c;
			c=temp;
		}
	}
	printf("%d %d %d\n",a,b,c);
			
    return 0;
}

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

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



  return 0;
}

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

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

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

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d %d %d",a[0],a[1],a[0]);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d %d %d",a[0],a[1],a[0]);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:8: error: 'b' undeclared (first use in this function)
    5 |   if(a<b && b<c){
      |        ^
main.c:5:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:15: error: 'c' undeclared (first use in this function)
    5 |   if(a<b && b<c){
      |               ^
main.c:6:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |   printf("Yes\n");
      |   ^~~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 |   printf("No\n");
      |   ^~~~~~
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d %d %d",&a[0],&a[1],&a[0]);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d %d %d",&a[0],&a[1],&a[0]);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:8: error: 'b' undeclared (first use in this function)
    5 |   if(a<b && b<c){
      |        ^
main.c:5:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:15: error: 'c' undeclared (first use in this function)
    5 |   if(a<b && b<c){
      |               ^
main.c:6:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |   printf("Yes\n");
      |   ^~~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 |   printf("No\n");
      |   ^~~~~~
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(void){
  int a[3],i,j,tmp;
  scanf("%d %d %d",&a[0],&a[1],&a[0]);
for(i=0;i<=1;i++){
 for(j=1;j<=2;j++){
  if(a[i]>a[j]){
   tmp=a[i];
   a[i]=a[j];
   a[j]=tmp;
  }

}  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d %d %d",&a[0],&a[1],&a[0]);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d %d %d",&a[0],&a[1],&a[0]);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C

#include <stdio.h>
#include <string.h>
#include <math.h>

int main(void){
    char tmp[1000];
    fgets(tmp,sizeof(tmp),stdin);
    int num[3];
    //???????????????
    num[0]=atoi(strtok(tmp," "));
    num[1]=atoi(strtok(NULL," "));
    num[2]=atoi(strtok(NULL," "));

    for(int i=0;i<3;i++){
        for(int j=i+1;j<3;j++){
            if(num[i]>num[j]){
                int tmp=num[i];
                num[i]=num[j];
                num[j]=tmp;
            }   
        }
        //????????\??????????§??????????????????????
        if (i!=2){
            printf("%d ",num[i]);
        }else{
            printf("%d\n",num[i]);
        }
    }
    

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:12: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
   10 |     num[0]=atoi(strtok(tmp," "));
      |            ^~~~
Language: C

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

int main(void){
    char tmp[1000];
    fgets(tmp,sizeof(tmp),stdin);
    int num[3];
    //???????????????
    num[0]=atoi(strtok(tmp," "));
    num[1]=atoi(strtok(NULL," "));
    num[2]=atoi(strtok(NULL," "));

    //????????????
    for(int i=0;i<sizeof(num) / sizeof(num[0]);i++){
        for(int j=i+1;j<sizeof(num) / sizeof(num[0];j++){
            if(num[i]>num[j]){
                int tmp=num[i];
                num[i]=num[j];
                num[j]=tmp;
            }   
        }
        //????????\??????????§??????????????????????
        if (i!=3){
            printf("%d ",num[i]);
        }else{
            printf("%d\n",num[i]);
        }
    }
    

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:52: error: expected ')' before ';' token
   17 |         for(int j=i+1;j<sizeof(num) / sizeof(num[0];j++){
      |                                             ~      ^
      |                                                    )
main.c:17:57: error: expected ';' before '{' token
   17 |         for(int j=i+1;j<sizeof(num) / sizeof(num[0];j++){
      |                                                         ^
      |                                                         ;
main.c:30:5: error: expected expression before '}' token
   30 |     }
      |     ^
main.c:30:5: error: expected expression before '}' token
Language: C

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

int main(void){
    char tmp[1000];
    fgets(tmp,sizeof(tmp),stdin);
    int num[3];
    //???????????????
    num[0]=atoi(strtok(tmp," "));
    num[1]=atoi(strtok(NULL," "));
    num[2]=atoi(strtok(NULL," "));

    int tmp;

    //????????????
    for(int i=0;i<3;i++){
        for(int j=i+1;j<3;j++){
            if(num[i]>num[j]){
                tmp=num[i];
                num[i]=num[j];
                num[j]=tmp;
            }   
        }
    }
    for(int i=0;i<3;i++){
        //????????\??????????§????????????????????????????
        if (i<2){
            printf("%d ",num[i]);
        }else{
            printf("%d\n",num[i]);
        }
    }

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:9: error: conflicting types for 'tmp'; have 'int'
   14 |     int tmp;
      |         ^~~
main.c:6:10: note: previous declaration of 'tmp' with type 'char[1000]'
    6 |     char tmp[1000];
      |          ^~~
Language: C

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

int main(void){
    int num[3];
    scanf("%d%d%d",num,num+1,num+2);
    
    //????????????
    for(int i=0;i<3;i++){
        for(int j=i+1;j<3;j++){
            if(num[i]>num[j]){
                tmp=num[i];
                num[i]=num[j];
                num[j]=tmp;
            }   
        }
    }
    for(int i=0;i<3;i++){
        //????????\??????????§????????????????????????????
        if (i<2){
            printf("%d ",num[i]);
        }else{
            printf("%d\n",num[i]);
        }
    }

return 0;
}

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

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

int main(void){
    char tmp[1000];
    //??\???
    fgets(tmp,sizeof(tmp),stdin);
    int num[3];
    for(int i=0;i<3);i++){
        for(int j=i+1;j<3);j++){
            if(num[i]>num[j]){
                int tmp=num[i];
                num[i]=num[j];
                num[j]=tmp;
            }   
        }
        if(i<2){
            printf("%d ",num[i]);
        } else{
            printf("%d\n",num[i])
        }
    }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:20: error: expected ';' before ')' token
   11 |     for(int i=0;i<3);i++){
      |                    ^
      |                    ;
main.c:11:22: error: 'i' undeclared (first use in this function)
   11 |     for(int i=0;i<3);i++){
      |                      ^
main.c:11:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:25: error: expected ';' before ')' token
   11 |     for(int i=0;i<3);i++){
      |                         ^
      |                         ;
main.c:11:25: error: expected statement before ')' token
main.c:12:26: error: expected ';' before ')' token
   12 |         for(int j=i+1;j<3);j++){
      |                          ^
      |                          ;
main.c:12:28: error: 'j' undeclared (first use in this function); did you mean 'jn'?
   12 |         for(int j=i+1;j<3);j++){
      |                            ^
      |                            jn
main.c:12:31: error: expected ';' before ')' token
   12 |         for(int j=i+1;j<3);j++){
      |                               ^
      |                               ;
main.c:12:31: error: expected statement before ')' token
main.c:22:34: error: expected ';' before '}' token
   22 |             printf("%d\n",num[i])
      |                                  ^
      |                                  ;
   23 |         }
      |         ~
Language: C

#include<stdio.h>

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

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

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

#include <stdio.h>
#difine NUM 3

int main(void)
{
int num[NUM];
int i,j,s,t,tmp;

for(i=0;i<NUM;i++){
scanf("%d "&num[i]);
}

for(s=0;s<NUM;s++){
for(t=s+1;t<NUM;t++){

if(num[s]>num[t]){
tmp=num[s];
num[s]=num[t];
num[t]=tmp;
}
}
}
for(j=0;j<NUM;j++){
printf("%d ",num[j]);
}

return 0;
}

Compiler output:
main.c:2:2: error: invalid preprocessing directive #difine; did you mean #define?
    2 | #difine NUM 3
      |  ^~~~~~
      |  define
main.c: In function 'main':
main.c:6:9: error: 'NUM' undeclared (first use in this function)
    6 | int num[NUM];
      |         ^~~
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#define NUM 3
??
int main(void)
{
int num[NUM];
int i,j,s,t,tmp;
??
for(i=0;i<NUM;i++){
scanf("%d "&num[i]);
}
??
for(s=0;s<NUM;s++){
for(t=s+1;t<NUM;t++){
??
if(num[s]>num[t]){
tmp=num[s];
num[s]=num[t];
num[t]=tmp;
}
}
}
for(j=0;j<NUM;j++){
printf("%d ",num[j]);
}
??
return 0;
}

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

#include <stdio.h>
#define NUM 3

int main(void)
{
int num[NUM];
int i,j,s,t,tmp;

for(i=0;i<NUM;i++){
scanf("%d "&num[i]);
}
for(s=0;s<NUM;s++){
for(t=s+1;t<NUM;t++){
if(num[s]<num[t]){
tmp=num[s];
num[s]=num[t];
num[t]=tmp;
}
}
}

for(j=0;j<NUM;j++){
printf("%d "num[j]);
}

printf("\n");

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:10:12: error: invalid operands to binary & (have 'char *' and 'int')
   10 | scanf("%d "&num[i]);
      |       ~~~~~^~~~~~~
      |       |        |
      |       char *   int
main.c:23:13: error: expected ')' before 'num'
   23 | printf("%d "num[j]);
      |       ~     ^~~
      |             )
Language: C

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

int a;
int b;
int c;

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:13:12: error: expected expression before '=' token
   13 | if (b > d) = b;
      |            ^
main.c:14:12: error: expected expression before '=' token
   14 | if (c > d) = c;
      |            ^
main.c:17:12: error: expected expression before '=' token
   17 | if (b < e) = b;
      |            ^
main.c:18:12: error: expected expression before '=' token
   18 | if (c < e) = c;
      |            ^
main.c:21:12: error: expected expression before '=' token
   21 | if (b = f) = b;
      |            ^
main.c:22:12: error: expected expression before '=' token
   22 | if (c = f) = c;
      |            ^
main.c:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
Language: C

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

  int a[3],b;
  int i,j,min;

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

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

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

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

  int a[3],b;
  int i,j,min;

  for(i=0;i<3;i++){
    scanf("%d",&a[i]);
}
  for(i=0;i<3;i++){
    for(j=i+1;j<3;j++){
      if(a[i]>a[j]){
        min=a[I];
        a[i]=a[j];
        a[j]=min;
      }
    }
  }
  for(i=0;i<3;i++){
    printf("%d ",a[i]);
  }
 printf("\n");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:15: error: 'I' undeclared (first use in this function)
   13 |         min=a[I];
      |               ^
main.c:13:15: note: each undeclared identifier is reported only once for each function it appears in