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

#include <stdio.h>

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

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

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

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

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:30: error: expected ';' before ')' token
   14 |         for(j = 0; j < 2, j++){
      |                              ^
      |                              ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:24: error: expected ';' before ')' token
    4 |   for(i = 0; i < 3, i++) {
      |                        ^
      |                        ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:12: error: 'a' undeclared (first use in this function)
    6 |   int x[]={a,b,c};
      |            ^
main.c:6:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:14: error: 'b' undeclared (first use in this function)
    6 |   int x[]={a,b,c};
      |              ^
main.c:6:16: error: 'c' undeclared (first use in this function)
    6 |   int x[]={a,b,c};
      |                ^
main.c:7:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    7 |   int *x_p:
      |           ^
main.c:7:11: error: expected expression before ':' token
main.c:22:24: error: 'x_p' undeclared (first use in this function)
   22 |   printf("%d %d %d\n",*x_p,*(x_p+1),*(x_p+2));
      |                        ^~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    8 |   int *x_p:
      |           ^
main.c:8:11: error: expected expression before ':' token
main.c:23:24: error: 'x_p' undeclared (first use in this function)
   23 |   printf("%d %d %d\n",*x_p,*(x_p+1),*(x_p+2));
      |                        ^~~
main.c:23:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:11:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   11 |   int *x_p:
      |           ^
main.c:11:11: error: expected expression before ':' token
main.c:24:24: error: 'x_p' undeclared (first use in this function)
   24 |   printf("%d %d %d\n",*x_p,*(x_p+1),*(x_p+2));
      |                        ^~~
main.c:24:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

    }
    ++n;
  }
  printf(" %d %d %d\n",x[0],x[1],x[2]);
  return 0;
}


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

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


Compiler output:
main.c: In function 'main':
main.c:9:11: error: expected ')' before 'x'
    9 |   if((x[0]x[1])&&(x[1]<x[2])){
      |      ~    ^
      |           )
main.c:11:30: error: expected expression before '[' token
   11 |   }else if((x[0]>x[1])&&x[1]<[2])){
      |                              ^
main.c:17:4: error: 'else' without a previous 'if'
   17 |   }else if((x[0]<x[1])&&(x[1]>x[2])){
      |    ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:9:11: error: expected ')' before 'x'
    9 |   if((x[0]x[1])&&(x[1]<x[2])){
      |      ~    ^
      |           )
main.c:11:31: error: expected expression before '[' token
   11 |   }else if((x[0]>x[1])&&(x[1]<[2])){
      |                               ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:11:31: error: expected expression before '[' token
   11 |   }else if((x[0]>x[1])&&(x[1]<[2])){
      |                               ^
Language: C

#include<stdio.h>

#define MIN 1
#define MAX 10000
#define IS_ERR(x) (x < MIN || x > MAX)

void swap(int *x, int *y)
{
    int swap;

    swap = *x;
    *x = *y;
    *y = swap;
}


int main(void)
{

    int a, b, c, swap;

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

    if(IS_ERR(a) || IS_ERR(b) || IS_ERR(c))
    {
        return -1;
    }

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

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

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

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

    return 0;

}


Compiler output:
main.c: In function 'main':
main.c:31:9: error: called object 'swap' is not a function or function pointer
   31 |         swap(&a, &b);
      |         ^~~~
main.c:20:18: note: declared here
   20 |     int a, b, c, swap;
      |                  ^~~~
main.c:36:9: error: called object 'swap' is not a function or function pointer
   36 |         swap(&b, &c);
      |         ^~~~
main.c:20:18: note: declared here
   20 |     int a, b, c, swap;
      |                  ^~~~
main.c:41:9: error: called object 'swap' is not a function or function pointer
   41 |         swap(&a, &b);
      |         ^~~~
main.c:20:18: note: declared here
   20 |     int a, b, c, swap;
      |                  ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:26: error: invalid operands to binary & (have 'char *' and 'int')
    7 |         printf("%d %d %d"&b,&a,&c);
      |                ~~~~~~~~~~^
      |                |
      |                char *
main.c:10:26: error: invalid operands to binary & (have 'char *' and 'int')
   10 |         printf("%d %d %d"&b,&c,&a);
      |                ~~~~~~~~~~^
      |                |
      |                char *
main.c:13:26: error: invalid operands to binary & (have 'char *' and 'int')
   13 |         printf("%d %d %d"&c,&b,&a)
      |                ~~~~~~~~~~^
      |                |
      |                char *
main.c:13:35: error: expected ';' before '}' token
   13 |         printf("%d %d %d"&c,&b,&a)
      |                                   ^
      |                                   ;
   14 |     }
      |     ~
Language: C

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


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

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


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

#include <stdio.h>


void swap(int *nx, int *ny)
{
    int temp = *nx;
    *nx = *ny;
    *ny = temp;
}


void sort3(int *n1, int *n2, int *n3)
{
    if (*n1 > *n2) swap(n1, n2);
    if (*n2 > *n3) swap(n2, n3);
    if (*n1 > *n2) swap(n1, n2);
}

int main(void)
{
    int na, nb, nc;
    

 scanf("%d", &na);
 scanf("%d", &nb);
 scanf("%d", &nc);
    
    sort3(&na, &nb, &nc);

    printf("%d %d %d",na,nb,nc)
    return (0);
}


Compiler output:
main.c: In function 'main':
main.c:30:32: error: expected ';' before 'return'
   30 |     printf("%d %d %d",na,nb,nc)
      |                                ^
      |                                ;
   31 |     return (0);
      |     ~~~~~~
Language: C

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

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

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

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

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

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

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

	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:25:9: error: 'else' without a previous 'if'
   25 |         else
      |         ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:21: error: invalid operands to binary & (have 'char *' and 'int')
    5 |     scanf("%d,%d,%d"&a,&b,&c);
      |           ~~~~~~~~~~^
      |           |
      |           char *
main.c:7:24: error: expected ';' before '}' token
    7 |         printf("a > b")
      |                        ^
      |                        ;
    8 |     }
      |     ~                   
main.c:10:24: error: expected ';' before '}' token
   10 |         printf("b < c")
      |                        ^
      |                        ;
   11 |     }
      |     ~                   
main.c:13:24: error: expected ';' before '}' token
   13 |         printf("c > a")
      |                        ^
      |                        ;
   14 |     }
      |     ~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:21: error: invalid operands to binary & (have 'char *' and 'int')
    5 |     scanf("%d,%d,%d"&a,&b,&c);
      |           ~~~~~~~~~~^
      |           |
      |           char *
main.c:7:26: error: expected ';' before '}' token
    7 |         printf("a > b\n")
      |                          ^
      |                          ;
    8 |     }
      |     ~                     
main.c:10:26: error: expected ';' before '}' token
   10 |         printf("b < c\n")
      |                          ^
      |                          ;
   11 |     }
      |     ~                     
main.c:13:26: error: expected ';' before '}' token
   13 |         printf("c > a\n")
      |                          ^
      |                          ;
   14 |     }
      |     ~
Language: C

#include<stdio.h>

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

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

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

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

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

	return 0;
}



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

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

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

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


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

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

 int a,b,c;

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

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:20: error: expected ';' before '}' token
   13 |                 b=a
      |                    ^
      |                    ;
   14 | }
      | ~                   
main.c:17:20: error: expected ';' before '}' token
   17 |                 c=b
      |                    ^
      |                    ;
   18 | }
      | ~
Language: C

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

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

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


Compiler output:
main.c: In function 'main':
main.c:20:16: error: expected ';' before '}' token
   20 |             a=a
      |                ^
      |                ;
   21 |         }
      |         ~       
main.c:22:28: error: expected ')' before 'a'
   22 |         printf("%d %d %d\n"a,b,c);
      |               ~            ^
      |                            )
Language: C

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


Compiler output:
main.c: In function 'mai':
main.c:13:9: error: expected '}' before 'else'
   13 |         else
      |         ^~~~
main.c: At top level:
main.c:18:5: error: expected identifier or '(' before 'else'
   18 |     else if(b<a && b<c){
      |     ^~~~
main.c:26:35: warning: missing terminating " character
   26 |         printf("%d %d %d", x, y, z");
      |                                   ^
main.c:26:35: error: missing terminating " character
   26 |         printf("%d %d %d", x, y, z");
      |                                   ^~~
main.c:28:5: error: expected identifier or '(' before 'else'
   28 |     else if(c<a && c<b){
      |     ^~~~
main.c:36:35: warning: missing terminating " character
   36 |         printf("%d %d %d", x, y, z");
      |                                   ^
main.c:36:35: error: missing terminating " character
   36 |         printf("%d %d %d", x, y, z");
      |                                   ^~~
main.c:39:5: error: expected identifier or '(' before 'return'
   39 |     return 0;
      |     ^~~~~~
main.c:40:1: error: expected identifier or '(' before '}' token
   40 | }
      | ^
Language: C

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

 int a,b,c;

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


Compiler output:
main.c: In function 'main':
main.c:21:14: error: lvalue required as left operand of assignment
   21 |     (b=c && a=c);
      |              ^
Language: C

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


Compiler output:
main.c: In function 'mai':
main.c:13:9: error: expected '}' before 'else'
   13 |         else
      |         ^~~~
main.c: At top level:
main.c:18:5: error: expected identifier or '(' before 'else'
   18 |     else if(b<a && b<c){
      |     ^~~~
main.c:26:37: warning: missing terminating " character
   26 |         printf("%d %d %d\n", x, y, z");
      |                                     ^
main.c:26:37: error: missing terminating " character
   26 |         printf("%d %d %d\n", x, y, z");
      |                                     ^~~
main.c:28:5: error: expected identifier or '(' before 'else'
   28 |     else if(c<a && c<b){
      |     ^~~~
main.c:36:37: warning: missing terminating " character
   36 |         printf("%d %d %d\n", x, y, z");
      |                                     ^
main.c:36:37: error: missing terminating " character
   36 |         printf("%d %d %d\n", x, y, z");
      |                                     ^~~
main.c:39:5: error: expected identifier or '(' before 'return'
   39 |     return 0;
      |     ^~~~~~
main.c:40:1: error: expected identifier or '(' before '}' token
   40 | }
      | ^
Language: C

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


Compiler output:
main.c: In function 'mai':
main.c:13:9: error: expected '}' before 'else'
   13 |         else
      |         ^~~~
main.c: At top level:
main.c:18:5: error: expected identifier or '(' before 'if'
   18 |     if(b<a && b<c){
      |     ^~
main.c:26:37: warning: missing terminating " character
   26 |         printf("%d %d %d\n", x, y, z");
      |                                     ^
main.c:26:37: error: missing terminating " character
   26 |         printf("%d %d %d\n", x, y, z");
      |                                     ^~~
main.c:28:5: error: expected identifier or '(' before 'if'
   28 |     if(c<a && c<b){
      |     ^~
main.c:36:37: warning: missing terminating " character
   36 |         printf("%d %d %d\n", x, y, z");
      |                                     ^
main.c:36:37: error: missing terminating " character
   36 |         printf("%d %d %d\n", x, y, z");
      |                                     ^~~
main.c:39:5: error: expected identifier or '(' before 'return'
   39 |     return 0;
      |     ^~~~~~
main.c:40:1: error: expected identifier or '(' before '}' token
   40 | }
      | ^
Language: C

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

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

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

	return 0;
}


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

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



Compiler output:
main.c:3:15: error: expected declaration specifiers or '...' before string constant
    3 |         scanf("%d %d %d",&a,&b,&c);
      |               ^~~~~~~~~~
main.c:3:26: error: expected declaration specifiers or '...' before '&' token
    3 |         scanf("%d %d %d",&a,&b,&c);
      |                          ^
main.c:3:29: error: expected declaration specifiers or '...' before '&' token
    3 |         scanf("%d %d %d",&a,&b,&c);
      |                             ^
main.c:3:32: error: expected declaration specifiers or '...' before '&' token
    3 |         scanf("%d %d %d",&a,&b,&c);
      |                                ^
main.c:4:9: error: expected identifier or '(' before 'if'
    4 |         if(b < a){
      |         ^~
main.c:9:9: error: expected identifier or '(' before 'else'
    9 |         else{
      |         ^~~~
main.c:12:9: error: expected identifier or '(' before 'if'
   12 |         if(c < b){
      |         ^~
main.c:17:9: error: expected identifier or '(' before 'else'
   17 |         else{
      |         ^~~~
main.c:19:9: error: expected identifier or '(' before 'if'
   19 |         if(b < a){
      |         ^~
main.c:24:9: error: expected identifier or '(' before 'else'
   24 |         else{
      |         ^~~~
main.c:26:16: error: expected declaration specifiers or '...' before string constant
   26 |         printf("%d %d %d\n",a,b,c);
      |                ^~~~~~~~~~~~
main.c:26:29: error: expected declaration specifiers or '...' before 'a'
   26 |         printf("%d %d %d\n",a,b,c);
      |                             ^
main.c:26:31: error: expected declaration specifiers or '...' before 'b'
   26 |         printf("%d %d %d\n",a,b,c);
      |                               ^
main.c:26:33: error: expected declaration specifiers or '...' before 'c'
   26 |         printf("%d %d %d\n",a,b,c);
      |                                 ^
main.c:28:9: 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, x, y, z;
    
    scanf("%d %d %d", &a, &b, &c);
    
    if(a<b && a<c){
        x=a;
        if(b<c)
            y=b;
            z=c;
        else
            y=c;
            z=b;
        printf("%d %d %d\n", x, y, z);
    }
    if(b<a && b<c){
        x=b;
        if(a<c)
            y=a;
            z=c;
        else
            y=c;
            z=a;
        printf("%d %d %d\n", x, y, z");
    }
    if(c<a && c<b){
        x=c;
        if(a<b)
            y=a;
            z=b;
        else
            y=b;
            z=a;
        printf("%d %d %d\n", x, y, z");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:9: error: expected '}' before 'else'
   13 |         else
      |         ^~~~
main.c: At top level:
main.c:18:5: error: expected identifier or '(' before 'if'
   18 |     if(b<a && b<c){
      |     ^~
main.c:26:37: warning: missing terminating " character
   26 |         printf("%d %d %d\n", x, y, z");
      |                                     ^
main.c:26:37: error: missing terminating " character
   26 |         printf("%d %d %d\n", x, y, z");
      |                                     ^~~
main.c:28:5: error: expected identifier or '(' before 'if'
   28 |     if(c<a && c<b){
      |     ^~
main.c:36:37: warning: missing terminating " character
   36 |         printf("%d %d %d\n", x, y, z");
      |                                     ^
main.c:36:37: error: missing terminating " character
   36 |         printf("%d %d %d\n", x, y, z");
      |                                     ^~~
main.c:38:5: error: expected identifier or '(' before 'return'
   38 |     return 0;
      |     ^~~~~~
main.c:39:1: error: expected identifier or '(' before '}' token
   39 | }
      | ^
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(c < b){
		d=c;
		c=b;
		b=d;
	}

	if(b < a){
		d=a;
		a=b;
		b=d;

	return 0;

}



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

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


Compiler output:
main.c: In function 'main':
main.c:18:8: warning: missing terminating " character
   18 | printf("%d %d %d\n,a,b,c)
      |        ^
main.c:18:8: error: missing terminating " character
   18 | printf("%d %d %d\n,a,b,c)
      |        ^~~~~~~~~~~~~~~~~~
main.c:19:1: error: expected expression before '}' token
   19 | }
      | ^
main.c:18:8: error: expected ';' before '}' token
   18 | printf("%d %d %d\n,a,b,c)
      |        ^
      |        ;
   19 | }
      | ~
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:11:26: error: request for member 'b' in something not a structure or union
   11 |     printf("%d %d %d\n",a.b,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 (c<a) {
      t=c;		
      c=d
      b=a;
      a=t;
    } else if (c>=a && b>c){
	  t=c;
	  c=b;
	  b=t;
	}
    printf("%d %d %d\n",a,b,c);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:33: error: expected expression before ')' token
    5 |     scanf("%d %d %d ", &a,&b,&c,);
      |                                 ^
main.c:14:9: error: 'd' undeclared (first use in this function)
   14 |       c=d
      |         ^
main.c:14:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:10: error: expected ';' before 'b'
   14 |       c=d
      |          ^
      |          ;
   15 |       b=a;
      |       ~
Language: C

#include<stdio.h>
int main(void){
	int a, b, c,;
	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
	pri
ntf("a b c\n");
	}else{
	printf("a b c\n");
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:3:21: error: expected identifier or '(' before ';' token
    3 |         int a, b, c,;
      |                     ^
main.c:4:38: error: expected expression before ')' token
    4 |         scanf("%d %d %d", &a, &b, &c,);
      |                                      ^
main.c:6:9: error: 'tmp' undeclared (first use in this function)
    6 |         tmp=a
      |         ^~~
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:14: error: expected ';' before 'a'
    6 |         tmp=a
      |              ^
      |              ;
    7 |         a=b
      |         ~     
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
main.c:18:1: error: expected declaration or statement at end of input
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:16:9: error: expected '}' before 'else'
   16 |         else if(A>C
      |         ^~~~
main.c:16:20: error: expected ')' before 'printf'
   16 |         else if(A>C
      |                ~   ^
      |                    )
   17 |                 printf(" %d %d %d\n",B,A,C );
      |                 ~~~~~~
main.c:18:9: error: expected expression before '}' token
   18 |         }
      |         ^
main.c: At top level:
main.c:19:9: error: expected identifier or '(' before 'else'
   19 |         else if(B<C){
      |         ^~~~
main.c:22:9: error: expected identifier or '(' before 'else'
   22 |         else{
      |         ^~~~
Language: C

#include <stdio.h>

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

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

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

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:27: error: request for member 'c' in something not a structure or union
   16 |      printf("%d %d %d\n",b.c,a);
      |                           ^
Language: C

#include <stdio.h>

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

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

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

    return 0;
}


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

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


Compiler output:
main.c: In function 'main':
main.c:6:30: warning: missing terminating " character
    6 |   scanf("%d %d %d\n",&a,&b,&c");
      |                              ^
main.c:6:30: error: missing terminating " character
    6 |   scanf("%d %d %d\n",&a,&b,&c");
      |                              ^~~
main.c:6:30: error: expected ')' before 'if'
    6 |   scanf("%d %d %d\n",&a,&b,&c");
      |        ~                     ^
      |                              )
    7 |   if(a > b && b > c)
      |   ~~                          
main.c:8:32: warning: missing terminating " character
    8 |     printf("%d %d %d\n",c ,b ,a");
      |                                ^
main.c:8:32: error: missing terminating " character
    8 |     printf("%d %d %d\n",c ,b ,a");
      |                                ^~~
main.c:10:32: warning: missing terminating " character
   10 |     printf("%d %d %d\n",b ,c ,a");
      |                                ^
main.c:10:32: error: missing terminating " character
   10 |     printf("%d %d %d\n",b ,c ,a");
      |                                ^~~
main.c:12:32: warning: missing terminating " character
   12 |     printf("%d %d %d\n",c ,a ,b");
      |                                ^
main.c:12:32: error: missing terminating " character
   12 |     printf("%d %d %d\n",c ,a ,b");
      |                                ^~~
main.c:14:32: warning: missing terminating " character
   14 |     printf("%d %d %d\n",a ,c ,b");
      |                                ^
main.c:14:32: error: missing terminating " character
   14 |     printf("%d %d %d\n",a ,c ,b");
      |                                ^~~
main.c:16:32: warning: missing terminating " character
   16 |     printf("%d %d %d\n",b ,a ,c");
      |                                ^
main.c:16:32: error: missing terminating " character
   16 |     printf("%d %d %d\n",b ,a ,c");
      |                                ^~~
main.c:18:32: warning: missing terminating " character
   18 |     printf("%d %d %d\n",a ,b ,c");
      |                                ^
main.c:18:32: error: missing terminating " character
   18 |     printf("%d %d %d\n",a ,b ,c");
      |                                ^~~
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:9:3: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    9 |   elseif(a <= c && c <= b)
      |   ^~~~~~
main.c:9:27: error: expected ';' before 'printf'
    9 |   elseif(a <= c && c <= b)
      |                           ^
      |                           ;
   10 |     printf("%d %d %d\n",a ,c ,b);
      |     ~~~~~~                 
main.c:11:27: error: expected ';' before 'printf'
   11 |   elseif(b <= a && a <= c)
      |                           ^
      |                           ;
   12 |     printf("%d %d %d\n",b ,a ,c);
      |     ~~~~~~                 
main.c:13:3: error: implicit declaration of function 'elesif' [-Wimplicit-function-declaration]
   13 |   elesif(b <= c && c <= a)
      |   ^~~~~~
main.c:13:27: error: expected ';' before 'printf'
   13 |   elesif(b <= c && c <= a)
      |                           ^
      |                           ;
   14 |     printf("%d %d %d\n",b ,c ,a);
      |     ~~~~~~                 
main.c:15:27: error: expected ';' before 'printf'
   15 |   elseif(c <= a && a <= b)
      |                           ^
      |                           ;
   16 |     printf("%d %d %d\n",c ,a ,b);
      |     ~~~~~~                 
main.c:17:27: error: expected ';' before 'printf'
   17 |   elseif(c <= b && b <= a)
      |                           ^
      |                           ;
   18 |     printf("%d %d %d\n",c ,b ,a);
      |     ~~~~~~
Language: C

#include<stdio.h>
 
int main()
{
  int a,b,c;
  scanf("%d %d %d\n",&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);
  eles 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:13:3: error: 'eles' undeclared (first use in this function)
   13 |   eles if(b <= c && c <= a)
      |   ^~~~
main.c:13:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:7: error: expected ';' before 'if'
   13 |   eles if(b <= c && c <= a)
      |       ^~~
      |       ;
main.c:15:3: error: 'else' without a previous 'if'
   15 |   else if(c <= a && a <= b)
      |   ^~~~
Language: C

#include <stdio.h>
int main(void){
    // Your code here!
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);
    if(a<b&&b<c){
        printf("%d %d %d\n",a,b,c);
    }else if(a<b&&b>c&&a<c){
        printf("%d %d %d\n",a,c,b);
    }else if(b<a&&a<c){
        printf("%d %d %d\n",b,a,c);
    }else if(b<a&&a>c&&b<c){
        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<a&&a>b&&c<b){
        printf("%d %d %d\n",c,b,a);
    }else if(a=b&&b<c){
        printf("%d %d %d\n",a,b,c);
    }else if(a<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(c<a&&a=b){
        printf("%d %d %d\n",c,a,b);
    }else if(a=c&&c<b){
        printf("%d %d %d\n",a,c,b);
    }
}


Compiler output:
main.c: In function 'main':
main.c:20:20: error: lvalue required as left operand of assignment
   20 |     }else if(a<b&&b=c){
      |                    ^
main.c:22:20: error: lvalue required as left operand of assignment
   22 |     }else if(b<a&&a=c){
      |                    ^
main.c:24:20: error: lvalue required as left operand of assignment
   24 |     }else if(c<a&&a=b){
      |                    ^
Language: C

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

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



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

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

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


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

#include<stdio.h>

int main(void)

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


Compiler output:
main.c: In function 'main':
main.c:15:17: error: 'd' undeclared (first use in this function)
   15 |                 d = c;
      |                 ^
main.c:15:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:22: error: expected ')' before 'a'
   23 |         printf("%d\n"a, b, c);
      |               ~      ^
      |                      )
Language: C

#include<stdio.h>

int main(void)

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


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

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


Compiler output:
main.c: In function 'main':
main.c:8:12: error: 'a' undeclared (first use in this function)
    8 |         if(a<b&&b<c) {
      |            ^
main.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:14: error: 'b' undeclared (first use in this function)
    8 |         if(a<b&&b<c) {
      |              ^
main.c:8:19: error: 'c' undeclared (first use in this function)
    8 |         if(a<b&&b<c) {
      |                   ^
Language: C

#include<stdio.h>
int main(void){
int a[3],b,c,d,e;
int flag=1;
for(b=0;b<3;b++){
scanf("%d",&a[b]);
}
while(flag){
flag=0;
for(c=0;c<2;c++){
if(a[c]>a[c+1]){
d=a[c];
a[c]=a[c+1];
a[c+1]=d;
}
for(e=0;e<3;e++){
printf("%d",a[e]);
if(e==2){
printf("\n");
}else{
printf(" ");
}
}
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;
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:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C

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


Compiler output:
main.c:2:18: error: unknown type name 'b'
    2 | void sort(int a, b)
      |                  ^
main.c:14:18: error: unknown type name 'y'
   14 | void sort(int x, y)
      |                  ^
main.c:16:2: warning: data definition has no type or storage class
   16 |  n = x;
      |  ^
main.c:16:2: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:16:6: error: 'x' undeclared here (not in a function)
   16 |  n = x;
      |      ^
main.c:17:2: warning: data definition has no type or storage class
   17 |  x = y;
      |  ^
main.c:17:2: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:17:6: error: 'y' undeclared here (not in a function)
   17 |  x = y;
      |      ^
main.c:18:2: warning: data definition has no type or storage class
   18 |  y = n;
      |  ^
main.c:18:2: error: type defaults to 'int' in declaration of 'y' [-Wimplicit-int]
main.c:18:6: error: initializer element is not constant
   18 |  y = n;
      |      ^
main.c:19:1: error: expected identifier or '(' before 'return'
   19 | return ;
      | ^~~~~~
Language: C

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


Compiler output:
main.c:2:18: error: unknown type name 'y'
    2 | void sort(int x, y)
      |                  ^
main.c:14:18: error: unknown type name 'y'
   14 | void sort(int x, y)
      |                  ^
main.c:16:2: warning: data definition has no type or storage class
   16 |  n = x;
      |  ^
main.c:16:2: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:16:6: error: 'x' undeclared here (not in a function)
   16 |  n = x;
      |      ^
main.c:17:2: warning: data definition has no type or storage class
   17 |  x = y;
      |  ^
main.c:17:2: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:17:6: error: 'y' undeclared here (not in a function)
   17 |  x = y;
      |      ^
main.c:18:2: warning: data definition has no type or storage class
   18 |  y = n;
      |  ^
main.c:18:2: error: type defaults to 'int' in declaration of 'y' [-Wimplicit-int]
main.c:18:6: error: initializer element is not constant
   18 |  y = n;
      |      ^
main.c:19:1: error: expected identifier or '(' before 'return'
   19 | return ;
      | ^~~~~~
Language: C

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


Compiler output:
main.c:2:18: error: unknown type name 'y'
    2 | void sort(int x, y)
      |                  ^
main.c:14:18: error: unknown type name 'y'
   14 | void sort(int x, y)
      |                  ^
main.c:16:2: warning: data definition has no type or storage class
   16 |  n = x;
      |  ^
main.c:16:2: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:16:6: error: 'x' undeclared here (not in a function)
   16 |  n = x;
      |      ^
main.c:17:2: warning: data definition has no type or storage class
   17 |  x = y;
      |  ^
main.c:17:2: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:17:6: error: 'y' undeclared here (not in a function)
   17 |  x = y;
      |      ^
main.c:18:2: warning: data definition has no type or storage class
   18 |  y = n;
      |  ^
main.c:18:2: error: type defaults to 'int' in declaration of 'y' [-Wimplicit-int]
main.c:18:6: error: initializer element is not constant
   18 |  y = n;
      |      ^
main.c:19:1: error: expected identifier or '(' before 'return'
   19 | return ;
      | ^~~~~~