criyle/codenet-compile-errors huggingface dataset:
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){
  n = a;
  a = b;
  b = c;  } 
if (b > c){
  n = b;
  b = c;
  c = n;  }
printf("%d %d %d", a, b, c);
return 0;
} 



Compiler output:
main.c:2:18: error: unknown type name 'y'
    2 | void sort(int x, y)
      |                  ^
Language: C

#include<stdio.h>
int main(){
    int a,b,c,;
    int 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=temp
    }
    if(a>b){
        tmp=a;
        a=c;
        c=tmp;
    }
    return 0;
} 
  


Compiler output:
main.c: In function 'main':
main.c:3:15: error: expected identifier or '(' before ';' token
    3 |     int a,b,c,;
      |               ^
main.c:12:11: error: expected ';' before 'b'
   12 |      tmp=b
      |           ^
      |           ;
   13 |      b=c
      |      ~
Language: C

#include<stdio.h>
int main(){
    int a,b,c,;
    int 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=temp;
    }
    if(a>b){
        tmp=a;
        a=c;
        c=tmp;
    }
    return 0;
}  


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

#include<stdio.h>
int main(void){
	int num[3];
	int i,q,p;
	for(i=0;i<3;i++{
		scanf("%d",&num[i]);
			for(p=0;p<2;p++;){
				for(q=p+1;q<3;q++){
					if(num[p]<num[q]){
						tmp=num[p];
						num[p]=num[q];
						num[q]=tmp;
					}
				}
			}
		printf("%d ",num[i]);
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:24: error: expected ')' before '{' token
    5 |         for(i=0;i<3;i++{
      |            ~           ^
      |                        )
main.c:19:1: error: expected expression before '}' token
   19 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
	int num[3];
	int i,q,p;
	for(i=0;i<3;i++{
		scanf("%d",&num[i]);
	}
	
	for(p=0;p<2;p++;){
			for(q=p+1;q<3;q++){
				if(num[p]<num[q]){
					tmp=num[p];
					num[p]=num[q];
					num[q]=tmp;
				}
			}
		}
		for(i=0;i<3;i++{
		printf("%d ",num[i]);
	}
	
	return 0;
	
}



Compiler output:
main.c: In function 'main':
main.c:5:24: error: expected ')' before '{' token
    5 |         for(i=0;i<3;i++{
      |            ~           ^
      |                        )
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
	int num[3];
	int i,q,p;
	for(i=0;i<3;i++){
		scanf("%d",&num[i]);
	}
	
	for(p=0;p<2;p++;){
			for(q=p+1;q<3;q++){
				if(num[p]<num[q]){
					tmp=num[p];
					num[p]=num[q];
					num[q]=tmp;
				}
			}
		}
		for(i=0;i<3;i++){
		printf("%d ",num[i]);
	}
	
	return 0;
	
}

	
}



Compiler output:
main.c: In function 'main':
main.c:9:24: error: expected ')' before ';' token
    9 |         for(p=0;p<2;p++;){
      |            ~           ^
      |                        )
main.c:12:41: error: 'tmp' undeclared (first use in this function)
   12 |                                         tmp=num[p];
      |                                         ^~~
main.c:12:41: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:27:1: error: expected identifier or '(' before '}' token
   27 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
	int num[10];
	int i,q,p;
	for(i=0;i<3;i++){
		scanf("%d",&num[i]);
	}
	
	for(p=0;p<2;p++){
		for(q=p+1;q<3;q++){
			if(num[p]<num[q]){
				tmp=num[p];
				num[p]=num[q];
				num[q]=tmp;
			}
		}
	}
	for(i=0;i<3;i++){
		printf("%d ",num[i]);
	}
	
	return 0;
	
}


	
}



Compiler output:
main.c: In function 'main':
main.c:12:33: error: 'tmp' undeclared (first use in this function)
   12 |                                 tmp=num[p];
      |                                 ^~~
main.c:12:33: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:28:1: error: expected identifier or '(' before '}' token
   28 | }
      | ^
Language: C

#include <stdio.h>
int main(){
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if (x < y && y < z){
    printf("%d %d %d\n",x,y,z);
    } else if (x < z && z < y){
    printf("%d %d %d\n",x,z,y);
    } else if (y < z && z < x){
    printf("%d %d %d\n",y,z,x);
    } else if (y < x && x < z){
    printf("%d %d %d\n",y,x,z);
    } else if (z < x && x < y){
    printf("%d %d %d\n",z,x,y);
    } else if (z < y && y < x){
    printf("%d %d %d\n",z,y,x);
    } else {
    break;
    } return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:5: error: break statement not within loop or switch
   18 |     break;
      |     ^~~~~
Language: C

#include<stdio.h>

int main(void)

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


Compiler output:
main.c: In function 'main':
main.c:24:29: error: expected ';' before '}' token
   24 |                 printf("\n")
      |                             ^
      |                             ;
   25 |         }
      |         ~
Language: C

include <stdio.h>

int main(void)
{ 
	int a[3];
	int i,j,m;
	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]){
				m=a[i];
				a[i]=a[j];
				a[j]=m;
			}
		}
	}
	printf("%d %d %d\n",a[0],a[1],a[2]);
	return 0;
}


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

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


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

#include<stdio.h>
int main(){
	int a;
	int b;
	int c;
	int 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 > 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:21:22: error: expected ';' before '}' token
   21 |                 b = d
      |                      ^
      |                      ;
   22 |         }
      |         ~
Language: C

#include <stdio.h>
int a,b,c;
  main (){
 
    printf("Please enter 3 integers\n");
    scanf("%d %d %d",  &a,&b,&c);
    printf("The integers from smallest to largest are:\n");
 
    if (a>b) {
        if (b<c){
        printf("%d %d %d", a,b,c);
        }
 
        else if (a<c){
        printf("%d %d %d", a,c,b);
        }
        else {
        printf("%d %d %d", c,a,b);
        }
 
    else{
        if (b>c){
        printf("%d %d %d", c,b,a);
        }
        else if (b<c){
        printf("%d %d %d", b,c,a);
        }
        else {
        printf("%d %d %d", b,a,c);
        }
       }
       }


Compiler output:
main.c:3:3: error: return type defaults to 'int' [-Wimplicit-int]
    3 |   main (){
      |   ^~~~
main.c: In function 'main':
main.c:21:5: error: expected '}' before 'else'
   21 |     else{
      |     ^~~~
Language: C

#include <stdio.h>
#include <conio.h>
 
 
int a, b, c;
 
void main (){
 
    printf("Please enter 3 integers\n");
    scanf("%d %d %d",  &a, &b, &c);
    printf("The integers from smallest to largest are:\n");
 
    if (a > b) {
        if (b < c){
        printf("%d %d %d", a ,b, c);
        }
 
        else if (a < c){
        printf("%d %d %d", a, c, b);
        }
        else {
        printf("%d %d %d", c, a, b);
        }
 
    else{
        if (b > c){
        printf("%d %d %d", c, b, a);
        }
        else if (b < c){
        printf("%d %d %d", b, c, a);
        }
        else {
        printf("%d %d %d", b, a, c);
        }
       }
       }


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

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

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

int main()
{
    int data[3];
    scanf("%d %d %d", data, data+1, data+2); 
    qsort(data, 3, sizeof(int), compare_int);
    printf("%d %d %d\n", data[0], data[1], data[2]);
    return 0;
}

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

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

   int a,b,c,tmp;

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

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

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

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

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

   return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:5:7: error: 'i' undeclared (first use in this function)
    5 |   for(i=0;i<3;i++){
      |       ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: 'j' undeclared (first use in this function)
    6 |     for(j=i+1;j<3;j++){
      |         ^
main.c:8:9: error: 'tmp' undeclared (first use in this function)
    8 |         tmp = a[i];
      |         ^~~
Language: C

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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:3:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |     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 | int main(){
main.c:3:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |     scanf("%d %d %d", &a, &b, %c);
      |     ^~~~~
main.c:3:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:31: error: expected expression before '%' token
    3 |     scanf("%d %d %d", &a, &b, %c);
      |                               ^
main.c:4:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |     printf("%d %d %d\n", a < b ? (a < c ? a : c) : (b < c ? b : c), a < b ? (a < c ? (b < c ? b : c) : a) : (b < c ? (a < c ? a : c) : b), a < b ? (b < c ? c : b) : (a < c ? c : a));
      |     ^~~~~~
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
int main(void)
{
	int a[3],i,j,swap;

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

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

Compiler output:
main.c:25:5: error: redefinition of 'main'
   25 | int main(void)
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int(void)'
    2 | int main(void)
      |     ^~~~
Language: C

#include<iostream>
using namespace std;
int main()
{
	int a,b,c,t;
    cin>>a>>b>>c;
	if(a>b) {t=a;a=b;b=t;}
	if(b>c) {t=b;b=c;c=t;}
	if(a>b) {t=a;a=b;b=t;}
	cout<<a<<" "<<b<<" "<<c<<endl;
	return 0;
}

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

#include <stdio.h>

void swap(int *num1, int *num2)
{
   int temp;
   temp = *num1;
   *num1 = *num2;
   *num2 = temp;

}
void sort(int sort[])
{
   int i,j;

   for( i = 1; i < 3; i++){
      for( j = 0; j < 3 - i; j++){
         if(sort[j] > sort[j + 1]){
            swap(&sort[j], &sort[j + 1]);
         }
}

void println(int sort[])
{
   int i;
  
   for( i = 0; i < 3; i++){
      printf("%d", sort[i]);
   }
   printf("\n");

}

int main(void){

   int a, b, c;
   int sort[3];

   scanf("%d %d %d", &a, &b, &c);
 
   sort[0] = a;
   sort[1] = b;
   sort[2] = c;

   sort(sort);
   println(sort);

   return 0;
}
   

Compiler output:
main.c: In function 'main':
main.c:44:4: error: called object 'sort' is not a function or function pointer
   44 |    sort(sort);
      |    ^~~~
main.c:36:8: note: declared here
   36 |    int sort[3];
      |        ^~~~
main.c: In function 'sort':
main.c:48:1: error: expected declaration or statement at end of input
   48 | }
      | ^
main.c:48:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>
 
void swap(int *num1, int *num2)
{
   int temp;
   temp = *num1;
   *num1 = *num2;
   *num2 = temp;
 
}
void bsort(int a[])
{
   int i,j;
 
   for( i = 1; i < 3; i++){
      for( j = 0; j < 3 - i; j++){
         if(a[j] > a[j + 1]){
            swap(&a[j], &a[j + 1]);
         }
      }
   }
}
void println(int a[])
{
  
   
   printf("%d %d %d\n", a[0],[1],[2]);
 
}
 
int main(void)
{
 
   int a, b, c;
   int sort[3];
 
   scanf("%d %d %d", &a, &b, &c);
  
   sort[0] = a;
   sort[1] = b;
   sort[2] = c;
 
   bsort(sort);
   println(sort);
 
   return 0;
}
   

Compiler output:
main.c: In function 'println':
main.c:27:30: error: expected expression before '[' token
   27 |    printf("%d %d %d\n", a[0],[1],[2]);
      |                              ^
Language: C

#include <stdio.h>

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

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

Compiler output:
main.c:24:2: error: stray '#' in program
   24 | }#include <stdio.h>
      |  ^
main.c:24:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   24 | }#include <stdio.h>
      |           ^
Language: C

#include <stdio.h>

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

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

	return 0;

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


#include<stdio.h>

int main(void)
{

	int d[3]{0,0,0};

	int r, l, f;

	f = 0;

	for (r = 0; r <= 2; ++r){

		 scanf("%d", &d[r]);

	}

	for (r = 0; r <= 2; r++){

		for (l = 0; l < r + 1; l++){

			if (d[r]>=d[l]){

				f = d[r];

				d[r] = d[l];

				d[l] = f;

	

			}

		}

	}

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

Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    7 |         int d[3]{0,0,0};
      |                 ^
main.c:7:23: error: expected ';' before '}' token
    7 |         int d[3]{0,0,0};
      |                       ^
      |                       ;
main.c:15:31: error: 'd' undeclared (first use in this function)
   15 |                  scanf("%d", &d[r]);
      |                               ^
main.c:15:31: note: each undeclared identifier is reported only once for each function it appears in
Language: C


#include<stdio.h>

int main()
{

	int x = 0, y = 0, z = 0, temp=0, r;

	scanf_s("%d", &x);
	scanf_s("%d", &y);
	scanf_s("%d", &z);

	if (x >= y){

		temp = x;

		x = y;

		y = temp;}

	if (y >= z){

		temp = y;

		y = z;

		z = temp;}

	if (z >= x){

		temp = z;

		z = x;

		x = temp;}

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

}

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


#include<stdio.h>

int main()
{

	int x = 0, y = 0, z = 0, temp=0, r;

	scanf_s("%d", &x);
	scanf_s("%d", &y);
	scanf_s("%d", &z);

	if (x <= y){

		temp = y;

		y = x;

		x = temp;}

	if (y <= z){

		temp = z;

		z = y;

		y = temp;}

	if (z <= x){

		temp = x;

		x = z;

		z = temp;}

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

}

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

#include <stdio.h>

int main(void){

  int a[3];
  int change;
  register int i,s;

  scanf("%d %d %d"&a[0],&a[1],&a[2]);
  for(i = 0;i < 3;i++){
    for(s = 1;s < 3;s++){
      if(a[s] > a[i]){
        change = a[s];
        a[s] = a[i];
        a[i] = change;
      }
    }
  }
  printf("%d %d %d",a[0],a[1],a[2]);
  return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:3:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | scanf("%d %d %d\n",&a,&b,&c);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | scanf("%d %d %d\n",&a,&b,&c);
      | ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 | printf("%d %d %d\n".a,b,c);
      | ^~~~~~
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:20: error: request for member 'a' in something not a structure or union
    7 | printf("%d %d %d\n".a,b,c);
      |                    ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | 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 | int main(){
main.c:3:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | scanf("%d %d %d",&a,&b,&c);
      | ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:11: error: 'd' undeclared (first use in this function)
    4 | if (a>b) {d=b; e=a;} else {d=a; e=b;}
      |           ^
main.c:4:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:16: error: 'e' undeclared (first use in this function)
    4 | if (a>b) {d=b; e=a;} else {d=a; e=b;}
      |                ^
main.c:5:11: error: 'f' undeclared (first use in this function)
    5 | if (e>c) {f=c; g=e;} else {f=e; g=c;}
      |           ^
main.c:5:16: error: 'g' undeclared (first use in this function)
    5 | if (e>c) {f=c; g=e;} else {f=e; g=c;}
      |                ^
main.c:6:11: error: 'h' undeclared (first use in this function)
    6 | if (d>f) {h=f; i=d;} else {h=d; i=f;}
      |           ^
main.c:6:16: error: 'i' undeclared (first use in this function)
    6 | if (d>f) {h=f; i=d;} else {h=d; i=f;}
      |                ^
main.c:7:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 | printf("%d %d %d\n",h,i,g);
      | ^~~~~~
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int main(void)
{

	int d[3]{3,8,1};

	int r, l, f;

	f = 0;

	for (r = 0; r <= 3; r++){

		for (l = 0; l < r + 1; l++){

			if (d[r]>=d[l]){

				f = d[r];

				d[r] = d[l];

				d[l] = f;

	

			}

		}

	}

	for (r = 1; r <= 3; r++){

		printf("%d\n", d[3-r]);
	}


}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    6 |         int d[3]{3,8,1};
      |                 ^
main.c:6:23: error: expected ';' before '}' token
    6 |         int d[3]{3,8,1};
      |                       ^
      |                       ;
main.c:16:29: error: 'd' undeclared (first use in this function)
   16 |                         if (d[r]>=d[l]){
      |                             ^
main.c:16:29: note: each undeclared identifier is reported only once for each function it appears in
Language: C

include <stdio.h>

int main(){
	int a,b,c,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:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include <stdio.h>
#include <cmath>
int main(){
    int a,b,c;
    int MIN=1000,MAX=-1000,SUM=0;
    scanf("%d %d %d",&a,&b,&c);
	
	MIN=min(MIN,a);
	MIN=min(MIN,b);
	MIN=min(MIN,c);

	MAX=max(MAX,a);
	MAX=max(MAX,b);
	MAX=max(MAX,c);
	
	SUM=a+b+c;
	
	printf("%d %d %d\n",MIN,SUM-MAX-MIN,MAX);
    return 0;
}

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

#include <stdio.h>
#include <math.h>
int main(){
    int a,b,c;
    int MIN=1000,MAX=-1000,SUM=0;
    scanf("%d %d %d",&a,&b,&c);
	
	MIN=min(MIN,a);
	MIN=min(MIN,b);
	MIN=min(MIN,c);

	MAX=max(MAX,a);
	MAX=max(MAX,b);
	MAX=max(MAX,c);
	
	SUM=a+b+c;
	
	printf("%d %d %d\n",MIN,SUM-MAX-MIN,MAX);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:13: error: implicit declaration of function 'min'; did you mean 'main'? [-Wimplicit-function-declaration]
    8 |         MIN=min(MIN,a);
      |             ^~~
      |             main
main.c:12:13: error: implicit declaration of function 'max'; did you mean 'fmax'? [-Wimplicit-function-declaration]
   12 |         MAX=max(MAX,a);
      |             ^~~
      |             fmax
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:19:3: error: 'rerurn' undeclared (first use in this function)
   19 |   rerurn 0;
      |   ^~~~~~
main.c:19:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:9: error: expected ';' before numeric constant
   19 |   rerurn 0;
      |         ^~
      |         ;
Language: C

#include <stdio.h>
int main(void){
  int a,s,d,z,x,c,v,b,n,q,w,e;
 
  scanf("%d%d%d",&a,&s,&d);

  if(a>s){
    z=s; x=a; c=d;
  }
  else{#include <stdio.h>
int main(void){
  int a,s,d,z,x,c,v,b,n,q,w,e;
 
  scanf("%d%d%d",&a,&s,&d);

  if(a>s){
    z=s; x=a; c=d;
  }
  else{
    z=a; x=s; c=d;
  }
  if(z>c){
    v=c; b=x; n=z;
  }
  else{
    v=z; b=x; n=c;
  }
  if(b>n){
    q=v; w=n, e=b;
  }
  else{
    q=v; w=b; e=n;
  }
  printf("%d %d %d\n",q,w,e);
  return 0;
}

    z=a; x=s; c=d;
  }
  if(z>c){
    v=c; b=x; n=z;
  }
  else{
    v=z; b=x; n=c;
  }
  if(b>n){
    q=v; w=n, e=b;
  }
  else{
    q=v; w=b; e=n;
  }
  printf("%d %d %d\n",q,w,e);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:8: error: stray '#' in program
   10 |   else{#include <stdio.h>
      |        ^
main.c:10:9: error: 'include' undeclared (first use in this function)
   10 |   else{#include <stdio.h>
      |         ^~~~~~~
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:18: error: 'stdio' undeclared (first use in this function); did you mean 'stdin'?
   10 |   else{#include <stdio.h>
      |                  ^~~~~
      |                  stdin
main.c:11:1: error: expected expression before 'int'
   11 | int main(void){
      | ^~~
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:29:8: error: stray '#' in program
   29 |     c=t#include <stdio.h>
      |        ^
main.c:29:8: error: expected ';' before 'include'
   29 |     c=t#include <stdio.h>
      |        ^~~~~~~~
      |        ;
Language: C

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

 return 0;
}

Compiler output:
main.c:1:3: error: expected identifier or '(' before 'else'
    1 |   else if(c>a) printf("%d %d %d\n",b,a,c);
      |   ^~~~
main.c:2:5: error: expected identifier or '(' before 'else'
    2 |     else printf("%d %d %d\n",b,c,a);
      |     ^~~~
main.c:3:3: error: expected identifier or '(' before '}' token
    3 |   }
      |   ^
main.c:4:3: error: expected identifier or '(' before 'else'
    4 |   else {
      |   ^~~~
main.c:10:2: error: expected identifier or '(' before 'return'
   10 |  return 0;
      |  ^~~~~~
main.c:11:1: error: expected identifier or '(' before '}' token
   11 | }
      | ^
Language: C

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

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

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

int sorting(const void *a, const void *b)
{
	int x = (int)*a;
	int y = (int)*b;
	if (x == y) {
		return 0;
	} else if (x > y) {
		return 1;
	} else {
		return -1;
	}
}

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

	qsort(input, 3, sizeof(int), sorting);

	printf("%d %d %d", input[0], input[1], input[2]);
	
	return 0;
}

Compiler output:
main.c: In function 'sorting':
main.c:6:22: warning: dereferencing 'void *' pointer
    6 |         int x = (int)*a;
      |                      ^~
main.c:6:17: error: invalid use of void expression
    6 |         int x = (int)*a;
      |                 ^
main.c:7:22: warning: dereferencing 'void *' pointer
    7 |         int y = (int)*b;
      |                      ^~
main.c:7:17: error: invalid use of void expression
    7 |         int y = (int)*b;
      |                 ^
Language: C

#include <stdio.h>

int main(void){

	int max, mid, min, temp;

	scanf("%d %d %d", &max, &mid, &min);
	
	while(1){
		if(max < mid){
			temp = max;
			max = mid;
			mid = temp;
		}else if(max < min){
			temp = max;
			max = min;
			min = temp;
		}else if(mid < min){}
			temp = mid;
			min = mid;
			min = temp;
		}else{
			break;
		}
	
	}

	printf("%d %d %d\n", min, mid, max);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:18: error: 'else' without a previous 'if'
   22 |                 }else{
      |                  ^~~~
main.c:23:25: error: break statement not within loop or switch
   23 |                         break;
      |                         ^~~~~
main.c: At top level:
main.c:28:16: error: expected declaration specifiers or '...' before string constant
   28 |         printf("%d %d %d\n", min, mid, max);
      |                ^~~~~~~~~~~~
main.c:28:30: error: unknown type name 'min'
   28 |         printf("%d %d %d\n", min, mid, max);
      |                              ^~~
main.c:28:35: error: unknown type name 'mid'
   28 |         printf("%d %d %d\n", min, mid, max);
      |                                   ^~~
main.c:28:40: error: unknown type name 'max'
   28 |         printf("%d %d %d\n", min, mid, max);
      |                                        ^~~
main.c:30:9: 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>

void sort_num(int x, int y{

	int temp;

	if(x > y){
		temp = x;
		x = y;
		y = temp;
	}

}}

int main(void){

	int a, b, c, temp;

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

	sort_num(a, b);
	sort_num(b, c);
	sort_num(a, b);

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

	return 0;
}

Compiler output:
main.c:3:27: error: expected ';', ',' or ')' before '{' token
    3 | void sort_num(int x, int y{
      |                           ^
main.c: In function 'main':
main.c:21:9: error: implicit declaration of function 'sort_num' [-Wimplicit-function-declaration]
   21 |         sort_num(a, b);
      |         ^~~~~~~~
Language: C

#include <stdio.h>

void sort_num(int x, int y){

	int temp;

	if(x > y){
		temp = x;
		x = y;
		y = temp;
	}

}}

int main(void){

	int a, b, c, temp;

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

	sort_num(a, b);
	sort_num(b, c);
	sort_num(a, b);

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

	return 0;
}

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

#include <stdio.h>
int main(void)
{
int a[],b,c,d,sort;
for(d=0;d<3;d++){
scanf("%d",&a[d]);}

for(b=0;b<2;d++){
for(c=b+1;c<3;c++){
if(a[b]>a[c]){
sort=a[b];
a[b]=a[c];
a[c]=sort;
}
}
}
for(i=0;i<3;i++){
printf("%d ",a[i]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:5: error: array size missing in 'a'
    4 | int a[],b,c,d,sort;
      |     ^
main.c:17:5: error: 'i' undeclared (first use in this function)
   17 | for(i=0;i<3;i++){
      |     ^
main.c:17:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:10:16: warning: missing terminating " character
   10 |         printf("a c b);
      |                ^
main.c:10:16: error: missing terminating " character
   10 |         printf("a c b);
      |                ^~~~~~~~
main.c:11:5: error: expected expression before '}' token
   11 |     }
      |     ^
main.c:10:16: error: expected ';' before '}' token
   10 |         printf("a c b);
      |                ^
      |                ;
   11 |     }
      |     ~           
main.c:13:16: warning: missing terminating " character
   13 |         printf("b a c);
      |                ^
main.c:13:16: error: missing terminating " character
   13 |         printf("b a c);
      |                ^~~~~~~~
main.c:14:5: error: expected expression before '}' token
   14 |     }
      |     ^
main.c:13:16: error: expected ';' before '}' token
   13 |         printf("b a c);
      |                ^
      |                ;
   14 |     }
      |     ~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:26:23: error: lvalue required as left operand of assignment
   26 |         if(a < b && b = c){
      |                       ^
main.c:29:23: error: lvalue required as left operand of assignment
   29 |         if(b < a && a = c){
      |                       ^
main.c:32:23: error: lvalue required as left operand of assignment
   32 |         if(c < a && a = b){
      |                       ^
Language: C

#include<stdio.h>

int main(){
 int a, b, c, A, B, C, D, E, F;

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

 if(a < b){
  a = A;
  b = B;
 }
 else{
  a = B;
  b = A;
 }

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

 if(A > B){
  A = E;
  B = D;
  C = F;
 }
 else{
  A =D;
  B = E;
  C = F;
 }

 printf("%d %d %d\n", D, E, F)

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:36:31: error: expected ';' before 'return'
   36 |  printf("%d %d %d\n", D, E, F)
      |                               ^
      |                               ;
   37 | 
   38 |  return 0;
      |  ~~~~~~
Language: C

#include<stdio.h>

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

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

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

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

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

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

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:31: error: expected ';' before 'return'
   26 |  printf("%d %d %d\n", a, b, c)
      |                               ^
      |                               ;
   27 | 
   28 |  return 0;
      |  ~~~~~~
Language: C

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

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

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

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:1:10: fatal error: stdio,h: No such file or directory
    1 | #include <stdio,h>
      |          ^~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
int main(void) {
    int a, b, c, z;
    scanf("%d %d %d", &a, &b, &c);
    if (a > b) {
        z = a;
        a = b;
        b = w;
    }
    if (a > c) {
        z = a;
        a = c;
        c = z;
    }
    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:8:13: error: 'w' undeclared (first use in this function)
    8 |         b = w;
      |             ^
main.c:8:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <math.h>
 
int main(int argc, const char * argv[]) {
  int a, b;
  scanf("%d%d%d", &a, &b, &c);
  if(a =< b){
    if(b =< c)
      printf("%d %d %d", a, b, c);
    else
      printf("%d %d %d", a, c, b);
  }else{
    if(a =< c)
      printf("%d %d %d", b, a, c);
    else
      printf("%d %d %d", b, c, a);
  }    
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:28: error: 'c' undeclared (first use in this function)
    6 |   scanf("%d%d%d", &a, &b, &c);
      |                            ^
main.c:6:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:9: error: expected expression before '<' token
    7 |   if(a =< b){
      |         ^
main.c:8:11: error: expected expression before '<' token
    8 |     if(b =< c)
      |           ^
main.c:13:11: error: expected expression before '<' token
   13 |     if(a =< c)
      |           ^
Language: C

#include <stdio.h>
 
int main(int argc, const char * argv[]) {
  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
      printf("%d %d %d", a, c, b);
  }else{
    if(a =< c)
      printf("%d %d %d", b, a, c);
    else
      printf("%d %d %d", b, c, a);
  }    
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected expression before '<' token
    6 |   if(a =< b){
      |         ^
main.c:7:11: error: expected expression before '<' token
    7 |     if(b =< c)
      |           ^
main.c:12:11: error: expected expression before '<' token
   12 |     if(a =< c)
      |           ^
Language: C

#include <stdio.h>

int main(void){
    int a[3];
    scanf("%d %d %d", &a[0], &a[1], &a[2]);
    if(a[0] > a[1]){
        int b = a[0];
        a[0] = a[1];
        a[1] = b;
    }
    if(a[1] > a[2]){
        int b = a[1];
        a[1] = a[2];
        a[2] = b;
    }
    if(a[2] > a[0]){
        int b = a[2];
        a[2] = a[0];
        a[0] = b;
    }
    print("%d %d %d", &a[0], &a[1], &a[2]);
    return 0;
}

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

#include <stdio.h>

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

    scanf("%d %d %d", &a[0], &a[1], &a[2]);
    if(a[0] > a[1]){
        b = a[0];
        a[0] = a[1];
        a[1] = b;
    }
    if(a[1] > a[2]){
        b = a[1];
        a[1] = a[2];
        a[2] = b;
    }
    if(a[2] > a[0]){
        b = a[2];
        a[2] = a[0];
        a[0] = b;
    }
    print("%d %d %d", &a[0], &a[1], &a[2]);
    return 0;
}

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

#include <stdio.h>

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

    scanf("%d %d %d", &a[0], &a[1], &a[2]);
    if(a[0] > a[1]){
        b = a[0];
        a[0] = a[1];
        a[1] = b;
    }
    if(a[1] > a[2]){
        b = a[1];
        a[1] = a[2];
        a[2] = b;
    }
    if(a[2] > a[0]){
        b = a[2];
        a[2] = a[0];
        a[0] = b;
    }
    print("%d %d %d", a[0], a[1], a[2]);
    return 0;
}

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

#include <stdio.h>

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

    scanf("%d %d %d", &a[0], &a[1], &a[2]);
    if(a[0] > a[1]){
        b = a[0];
        a[0] = a[1];
        a[1] = b;
    }
    if(a[1] > a[2]){
        b = a[1];
        a[1] = a[2];
        a[2] = b;
    }
    if(a[0] > a[1]){
        b = a[0];
        a[0] = a[1];
        a[1] = b;
    }
    print("%d %d %d", a[0], a[1], a[2]);
    return 0;
}

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

#include <stdio.h>

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

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

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

#include <stdio.h>

int main()
{
int x[3]={0,0,0},i;

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

while(
if(x[0]>x[2])
{
i=x[0];
x[0]=x[2];
x[2]=i;
}

if(x[1]>x[2])
{
i=x[1];
x[1]=x[2];
x[2]=i;
}

if(x[0]>x[1])
{
i=x[0];
x[0]=x[1];
x[1]=i;
}



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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:1: error: expected expression before 'if'
   10 | if(x[0]>x[2])
      | ^~
main.c:36:1: error: expected expression before '}' token
   36 | }
      | ^