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

int main(int argc, const char * argv[]){
    int a,b c,null;
    scanf("%d %d %d",&a,&b,&c);
    if(a>b){
        null=a; a=b; b=null;
    }
    if(b>c){
        null=b; b=c; c=null;
    }
    if(a>c){
        null=a; a=c; c=null;
    }
    printf("%d %d %d\n",a,b,c);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:2:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c'
    2 |     int a,b c,null;
      |             ^
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(int argc, const char * argv[]){
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:26: error: 'b' undeclared (first use in this function)
    3 |     scanf("%d %d %d",&a,&b,&c);
      |                          ^
main.c:3:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:29: error: 'c' undeclared (first use in this function)
    3 |     scanf("%d %d %d",&a,&b,&c);
      |                             ^
main.c:5:9: error: 'null' undeclared (first use in this function)
    5 |         null=a; a=b; b=null;
      |         ^~~~
main.c:13:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   13 |     printf("%d %d %d\n",a,b,c);
      |     ^~~~~~
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(int argc, const char * argv[]){
    int a,b c,null;
    scanf("%d %d %d",&a,&b,&c);
    if(a>b){
        null=a; a=b; b=null;
    }if(b>c){
        null=b; b=c; c=null;
    }if(a>c){
        null=a; a=c; c=null;
    }
    printf("%d %d %d\n",a,b,c);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:2:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c'
    2 |     int a,b c,null;
      |             ^
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(int argc, const char * argv[]){
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:26: error: 'b' undeclared (first use in this function)
    3 |     scanf("%d %d %d",&a,&b,&c);
      |                          ^
main.c:3:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:29: error: 'c' undeclared (first use in this function)
    3 |     scanf("%d %d %d",&a,&b,&c);
      |                             ^
main.c:5:9: error: 'null' undeclared (first use in this function)
    5 |         null=a; a=b; b=null;
      |         ^~~~
main.c:11:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |     printf("%d %d %d\n",a,b,c);
      |     ^~~~~~
main.c:11:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:5: note: include '<stdio.h>' or provide a declaration of 'printf'
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(c>a){
		t = c;
		c = a;
		a = t;
		}
	}
	cout << a <<" "<< b << " " << c <<endl;
}

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

#include<stdio.h>

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

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:4: error: expected ';' before '}' token
   19 | c=w
      |    ^
      |    ;
   20 | }
      | ~
Language: C

#include<stdio.h>

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

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

#include<stdio.h>

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

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

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

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

return 0;
}

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

import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int i, j;
		int work;
		int[] x = new int[3];
		
		for (i = 0; i < x.length; i++) {
			x[i] = scanner.nextInt();
		}
		
		for (i = 0; i < x.length; i++) {
			for (j = 0; j < x.length-1 - i; j++) {
				if (x[j] > x[j+1]) {
					work = x[j];
					x[j] = x[j+1];
					x[j+1] = work;
				}
			}
		}
		
		for (i = 0; i < x.length; i++) {
			if (i != 0)
				System.out.print(" ");
			System.out.print(x[i]);
		}
		System.out.print("\n");
		scanner.close();
	}
}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:3:1: error: unknown type name 'class'
    3 | class Main {
      | ^~~~~
main.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | class Main {
      |            ^
Language: C

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

   for(i=0;i<3-1;i++){
      if(a[i]>a[i+1]){
         tmp=a[i];
         a[i]=a[i+1];
         a[i+1]=tmp;
      }
      else{}

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

   return 0;
}

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

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

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

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

x=STDIN.read
a=x.split[0].to_i
b=x.split[1].to_i
c=x.split[2].to_i

if a > b
  w = a;a = b;b= w;
end
if b > c
  w = b;b = c;c= w;
end
if a > b
  w = a;a = b;b= w;
end

puts sprintf("%d %d %d\n",a,b,c)

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | x=STDIN.read
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:1:3: error: 'STDIN' undeclared here (not in a function)
    1 | x=STDIN.read
      |   ^~~~~
main.c:2:1: error: expected ',' or ';' before 'a'
    2 | a=x.split[0].to_i
      | ^
main.c:7:9: warning: data definition has no type or storage class
    7 |   w = a;a = b;b= w;
      |         ^
main.c:7:9: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:7:13: error: 'b' undeclared here (not in a function)
    7 |   w = a;a = b;b= w;
      |             ^
main.c:7:15: warning: data definition has no type or storage class
    7 |   w = a;a = b;b= w;
      |               ^
main.c:7:15: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:7:18: error: 'w' undeclared here (not in a function)
    7 |   w = a;a = b;b= w;
      |                  ^
main.c:9:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
    9 | if b > c
      | ^~
main.c:10:9: warning: data definition has no type or storage class
   10 |   w = b;b = c;c= w;
      |         ^
main.c:10:9: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:10:9: error: redefinition of 'b'
main.c:7:15: note: previous definition of 'b' with type 'int'
    7 |   w = a;a = b;b= w;
      |               ^
main.c:10:13: error: 'c' undeclared here (not in a function)
   10 |   w = b;b = c;c= w;
      |             ^
main.c:10:15: warning: data definition has no type or storage class
   10 |   w = b;b = c;c= w;
      |               ^
main.c:10:15: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
main.c:12:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
   12 | if a > b
      | ^~
main.c:13:9: warning: data definition has no type or storage class
   13 |   w = a;a = b;b= w;
      |         ^
main.c:13:9: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:13:9: error: redefinition of 'a'
main.c:7:9: note: previous definition of 'a' with type 'int'
    7 |   w = a;a = b;b= w;
      |         ^
main.c:13:13: error: initializer element is not constant
   13 |   w = a;a = b;b= w;
      |             ^
main.c:13:15: warning: data definition has no type or storage class
   13 |   w = a;a = b;b= w;
      |               ^
main.c:13:15: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:13:15: error: redefinition of 'b'
main.c:10:9: note: previous definition of 'b' with type 'int'
   10 |   w = b;b = c;c= w;
      |         ^
main.c:14:1: error: unknown type name 'end'
   14 | end
      | ^~~
main.c:16:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sprintf'
   16 | puts sprintf("%d %d %d\n",a,b,c)
      |      ^~~~~~~
Language: C

#include<stdio.h>

int main(void)
{
  int kazu[3];
  int temp;

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

  for(i = 0 ; i < 2 ; i++){
     if(kazu[i] > kazu[i+1]){
       temp = kazu[i];
       kazu[i] = kazu[i+1];
       kazu[i+1] = temp;
       i--;
    }
  }

  for(i = 0 ; i < 2; i++){
    printf("%d ", kazu[i]);
  }
  printf("?\n");

Compiler output:
main.c: In function 'main':
main.c:8:24: error: 'a' undeclared (first use in this function)
    8 |   scanf("%d, %d, %d", &a, &b, &c);
      |                        ^
main.c:8:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:28: error: 'b' undeclared (first use in this function)
    8 |   scanf("%d, %d, %d", &a, &b, &c);
      |                            ^
main.c:8:32: error: 'c' undeclared (first use in this function)
    8 |   scanf("%d, %d, %d", &a, &b, &c);
      |                                ^
main.c:10:7: error: 'i' undeclared (first use in this function)
   10 |   for(i = 0 ; i < 2 ; i++){
      |       ^
main.c:22:3: error: expected declaration or statement at end of input
   22 |   printf("?\n");
      |   ^~~~~~
Language: C

#include <stdio.h>

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

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

  if(a<b && a<c){
    s[0]=a;
    if(b<c){s[1]=b; s[2]=c;}
    else{s[1]=c; s[2]=b;}  
  }
  else if(b<c){
    s[0]=b;
    if(a<c){s[1]=a; s[2]=b;}
    else{s[1]=b; s[2]=a;}
  }
  else{
    s[0]=c;
    if(a<b){s[1]=a; s[2]=b;}
    else{s[1]=b; s[2]=a;}
  }

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

}

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

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

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

Compiler output:
main.c: In function 'main':
main.c:16:8: error: expected expression before '%' token
   16 | printf(%d %d %d\n",b,c,a);
      |        ^
main.c:16:16: error: stray '\' in program
   16 | printf(%d %d %d\n",b,c,a);
      |                ^
main.c:16:18: warning: missing terminating " character
   16 | printf(%d %d %d\n",b,c,a);
      |                  ^
main.c:16:18: error: missing terminating " character
   16 | printf(%d %d %d\n",b,c,a);
      |                  ^~~~~~~~~
main.c:16:18: error: expected ';' before '}' token
   16 | printf(%d %d %d\n",b,c,a);
      |                  ^
      |                  ;
   17 | }
      | ~                 
main.c:18:2: error: expected ';' before '}' token
   18 | 0}
      |  ^
      |  ;
main.c: At top level:
main.c:19:1: error: expected identifier or '(' before 'return'
   19 | return 0;
      | ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:8: error: expected expression before '%' token
   16 | printf(%d %d %d\n",b,c,a);
      |        ^
main.c:16:16: error: stray '\' in program
   16 | printf(%d %d %d\n",b,c,a);
      |                ^
main.c:16:18: warning: missing terminating " character
   16 | printf(%d %d %d\n",b,c,a);
      |                  ^
main.c:16:18: error: missing terminating " character
   16 | printf(%d %d %d\n",b,c,a);
      |                  ^~~~~~~~~
main.c:16:18: error: expected ';' before '}' token
   16 | printf(%d %d %d\n",b,c,a);
      |                  ^
      |                  ;
   17 | }
      | ~                 
main.c: At top level:
main.c:19:1: error: expected identifier or '(' before 'return'
   19 | return 0;
      | ^~~~~~
main.c:20:1: error: expected identifier or '(' before '}' token
   20 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected '}' before 'else'
    7 | else{printf("%d %d %d",b,a,c);
      | ^~~~
main.c:10:1: error: expected '}' before 'else'
   10 | else{printf("%d %d %d",b,c,a)
      | ^~~~
main.c:10:30: error: expected ';' before '}' token
   10 | else{printf("%d %d %d",b,c,a)
      |                              ^
      |                              ;
   11 | }
      | ~                             
main.c: At top level:
main.c:14:1: error: expected identifier or '(' before 'return'
   14 | return 0;
      | ^~~~~~
main.c:15:1: error: expected identifier or '(' before '}' token
   15 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected '}' before 'else'
    7 | else{printf("%d %d %d",b,a,c);
      | ^~~~
main.c:10:1: error: expected '}' before 'else'
   10 | else{printf("%d %d %d",b,c,a)
      | ^~~~
main.c:10:30: error: expected ';' before '}' token
   10 | else{printf("%d %d %d",b,c,a)
      |                              ^
      |                              ;
   11 | }
      | ~                             
main.c: At top level:
main.c:14:1: error: expected identifier or '(' before '}' token
   14 | }
      | ^
main.c:15:1: error: expected identifier or '(' before 'return'
   15 | return 0;
      | ^~~~~~
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^
Language: C

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected '}' before 'else'
    7 | else{printf("%d %d %d",b,a,c);
      | ^~~~
main.c:10:1: error: expected '}' before 'else'
   10 | else{printf("%d %d %d",b,c,a)
      | ^~~~
main.c:10:30: error: expected ';' before '}' token
   10 | else{printf("%d %d %d",b,c,a)
      |                              ^
      |                              ;
   11 | }
      | ~                             
main.c: At top level:
main.c:15:1: error: expected identifier or '(' before 'return'
   15 | return 0;
      | ^~~~~~
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^
Language: C

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected '}' before 'else'
    7 | else{printf("%d %d %d",b,a,c);
      | ^~~~
main.c:10:1: error: expected '}' before 'else'
   10 | else{printf("%d %d %d",b,c,a);
      | ^~~~
main.c: At top level:
main.c:15:1: error: expected identifier or '(' before 'return'
   15 | return 0;
      | ^~~~~~
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^
Language: C

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected '}' before 'else'
    7 | else{printf("%d %d %d\n",b,a,c);
      | ^~~~
main.c:10:1: error: expected '}' before 'else'
   10 | else{printf("%d %d %d\n",b,c,a);
      | ^~~~
main.c: At top level:
main.c:15:1: error: expected identifier or '(' before 'return'
   15 | return 0;
      | ^~~~~~
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^
Language: C

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected '}' before 'else'
    7 | else{printf("%d %d %d\n",b,a,c);}
      | ^~~~
main.c: At top level:
main.c:20:1: error: expected identifier or '(' before 'return'
   20 | return 0;
      | ^~~~~~
main.c:21:1: error: expected identifier or '(' before '}' token
   21 | }
      | ^
Language: C

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

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

	

	return 0;
		
}

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

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

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

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

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

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

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

#include<stdio.h>
int main(void){
	int i, j, k;
	int a, b, c, d, e, f;
	scanf_s("%d %d %d", &i, &j, &k);
	if (i>k){
		a = i; b = k;
		k = a; i = b;
	}
	else if (j>k){
		c = j; d = k;
		k = c; j = k;
	}
	else if (i>j){
		e = i; f = j;
		j = e; i = f;
	}
	printf("%d %d %d", i,j,k);
	return 0;

}

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

#include<stdio.h>
int main(){
int a[a],i,x[3],j;
for(i=0;i<3;i++){scanf("%d"x[i]);}

for(i=0;i<3;i++){
for(j=0;j<3;j++){
if(x[i]<x[j]) a[i]=x[j]
}
}

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:7: error: 'a' undeclared (first use in this function)
    3 | int a[a],i,x[3],j;
      |       ^
main.c:3:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:28: error: expected ')' before 'x'
    4 | for(i=0;i<3;i++){scanf("%d"x[i]);}
      |                       ~    ^
      |                            )
main.c:8:24: error: expected ';' before '}' token
    8 | if(x[i]<x[j]) a[i]=x[j]
      |                        ^
      |                        ;
    9 | }
      | ~
Language: C

#include<stdio.h>
int main(){
int a[3],i,x[3],j;
for(i=0;i<3;i++){scanf("%d"x[i]);}

for(i=0;i<3;i++){
for(j=0;j<3;j++){
if(x[i]<x[j]) a[i]=x[j]
}
}

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:28: error: expected ')' before 'x'
    4 | for(i=0;i<3;i++){scanf("%d"x[i]);}
      |                       ~    ^
      |                            )
main.c:8:24: error: expected ';' before '}' token
    8 | if(x[i]<x[j]) a[i]=x[j]
      |                        ^
      |                        ;
    9 | }
      | ~
Language: C

#include<stdio.h>
int main(){
int a[];
int b,x;
int i;

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

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

printf("%d %d %d",a,a,a);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: array size missing in 'a'
    3 | int a[];
      |     ^
main.c:11:13: error: expected expression before ';' token
   11 | for(i=0;i>0=;i--){
      |             ^
Language: C

#include<stdio.h>
int main(){
int a[];
int b,x;
int i;

scanf("%d",&a);

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

printf("%d %d %d",a,a,a);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: array size missing in 'a'
    3 | int a[];
      |     ^
main.c:9:13: error: expected expression before ';' token
    9 | for(i=0;i>0=;i--){
      |             ^
Language: C

#include<stdio.h>
int main(){
int a[];
int b,x;
int i;

scanf("%d",&a);

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

printf("%d %d %d",a);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: array size missing in 'a'
    3 | int a[];
      |     ^
main.c:9:13: error: expected expression before ';' token
    9 | for(i=0;i>0=;i--){
      |             ^
Language: C

#include<stdio.h>
int main(){
int a[];
int b,x;
int i;

scanf("%d",&a);

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

printf("%d",a);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: array size missing in 'a'
    3 | int a[];
      |     ^
main.c:9:13: error: expected expression before ';' token
    9 | for(i=0;i>0=;i--){
      |             ^
Language: C

#include<stdio.h>
int main(){
int a[];
int b,x;
int i;

scanf("%d",&a);

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

printf("%d",a);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: array size missing in 'a'
    3 | int a[];
      |     ^
Language: C

#include<stdio.h>
int main(){
int a[];
int b,x;
int i;

scanf("%d",&a);

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

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

Compiler output:
main.c: In function 'main':
main.c:3:5: error: array size missing in 'a'
    3 | int a[];
      |     ^
Language: C

#include<stdio.h>
int main(){
int a[];
int b,x;
int i;

scanf("%d",&a);

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

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

Compiler output:
main.c: In function 'main':
main.c:3:5: error: array size missing in 'a'
    3 | int a[];
      |     ^
main.c:9:6: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
    9 | for(i=a-1;i>0;i--){
      |      ^
Language: C

#include<stdio.h>
int main(){
int a[];
int b,x;
int i;

scanf("%d",&a);

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

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

Compiler output:
main.c: In function 'main':
main.c:3:5: error: array size missing in 'a'
    3 | int a[];
      |     ^
main.c:9:6: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
    9 | for(i=a-1;i>0;i--){
      |      ^
Language: C

#include<stdio.h>
int main(){
int a[];
int b,x;
int i;

scanf("%d",&a);

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

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

Compiler output:
main.c: In function 'main':
main.c:3:5: error: array size missing in 'a'
    3 | int a[];
      |     ^
main.c:9:6: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
    9 | for(i=a-1;i>0;i--){
      |      ^
Language: C

#include<stdio.h>

int main(void){

	int i, j, n[3],min, temp;

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

	for (i = 0; i < 3; i++){
		min = i;
		for (j = i + 1; j < 3; j++){

			if (n[min]>n[j]){
				min = j;
			}
		}

		temp = n[min];
		n[min] = n[i];
		n[i] = temp;
	}

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

	return 0;
}

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

#include<stdio.h>

int main(void){

	int i, j, n[3],min, temp;

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

	for (i = 0; i < 3; i++){
		min = i;
		for (j = i + 1; j < 3; j++){

			if (n[min]>n[j]){
				min = j;
			}
		}

		temp = n[min];
		n[min] = n[i];
		n[i] = temp;
	}

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

	return 0;
}

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

#include<stdio.h>

int main(void){

	int i, j, n[3],min, temp;

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

	for (i = 0; i < 3; i++){
		min = i;
		for (j = i + 1; j < 3; j++){

			if (n[min]>n[j]){
				min = j;
			}
		}

		temp = n[min];
		n[min] = n[i];
		n[i] = temp;
	}

	
		printf("%d %d %d", n[j],n[j+1],[j+2]);
	

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |                 scanf_s("%d", &n[i]);
      |                 ^~~~~~~
      |                 scanf
main.c:26:48: error: expected expression before '[' token
   26 |                 printf("%d %d %d", n[j],n[j+1],[j+2]);
      |                                                ^
Language: C

#include<stdio.h>

int main(void){

	int i, j, n[3],min, temp;

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

	for (i = 0; i < 3; i++){
		min = i;
		for (j = i + 1; j < 3; j++){

			if (n[min]>n[j]){
				min = j;
			}
		}

		temp = n[min];
		n[min] = n[i];
		n[i] = temp;
	}

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |                 scanf_s("%d", &n[i]);
      |                 ^~~~~~~
      |                 scanf
main.c:26:50: error: expected expression before '[' token
   26 |                 printf("%d %d %d\n", n[j],n[j+1],[j+2]);
      |                                                  ^
Language: C

#include<stdio.h>

int main(void){

	int i, j, n[3],min, temp;

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

	for (i = 0; i < 3; i++){
		min = i;
		for (j = i + 1; j < 3; j++){

			if (n[min]>n[j]){
				min = j;
			}
		}

		temp = n[min];
		n[min] = n[i];
		n[i] = temp;
	}

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

	return 0;
}

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

#include<stdio.h>

int main(void){

	int i, j, n[3],min, temp;

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

	for (i = 0; i < 3; i++){
		min = i;
		for (j = i + 1; j < 3; j++){

			if (n[min]>n[j]){
				min = j;
			}
		}

		temp = n[min];
		n[min] = n[i];
		n[i] = temp;
	}

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

	return 0;
}

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

#include <stdio.h>

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

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

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

 

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

// ConsoleApplication3.cpp : ??????????????? ??¢????????±????????§????????¨????????? ?????????????????????????????????
//
#include "stdafx.h"


int main()
{
	int x, y, z;
	char a;

	x = 11;
	y = 2;
	z = 3;

	if (x > y && y > z) {
		printf("%d %d %d", x, y, z);
	}
	else if (y > z && z > x) {
		printf("%d %d %d", y, z, x);
	}
	else if (z > x && x > y) {
		printf("%d %d %d", z, x, y);
	}
	else if (x > z && z > y) {
		printf("%d %d %d", x, z, y);
	}
	else if (y > x && x > z) {
		printf("%d %d %d", y, x, z);
	}
	else if (z > y && y > x) {
		printf("%d %d %d", z, y, x);
	}

	return 0;
}

Compiler output:
main.c:3:10: fatal error: stdafx.h: No such file or directory
    3 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include "studio.h"

int main()
{
	int x, y, z;
	char a;

	x = 11;
	y = 2;
	z = 3;

	if (x > y && y > z) {
		printf("%d %d %d", x, y, z);
	}
	else if (y > z && z > x) {
		printf("%d %d %d", y, z, x);
	}
	else if (z > x && x > y) {
		printf("%d %d %d", z, x, y);
	}
	else if (x > z && z > y) {
		printf("%d %d %d", x, z, y);
	}
	else if (y > x && x > z) {
		printf("%d %d %d", y, x, z);
	}
	else if (z > y && y > x) {
		printf("%d %d %d", z, y, x);
	}

	return 0;
}

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

#include <stdio.h>

int a[3],b,i;

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

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

for(j=1;j<2;j++){

if(a[i]>a[j]){

b = a[i];

a[i] = a[j];

a[j] = b;

}

}

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


return 0;

}

Compiler output:
main.c:5:7: error: expected declaration specifiers or '...' before string constant
    5 | scanf("%d,%d,%d", &a[0], &a[1], &a[2]);
      |       ^~~~~~~~~~
main.c:5:19: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d,%d,%d", &a[0], &a[1], &a[2]);
      |                   ^
main.c:5:26: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d,%d,%d", &a[0], &a[1], &a[2]);
      |                          ^
main.c:5:33: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d,%d,%d", &a[0], &a[1], &a[2]);
      |                                 ^
main.c:7:1: error: expected identifier or '(' before 'for'
    7 | for(i=0;i<2;i++){
      | ^~~
main.c:7:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    7 | for(i=0;i<2;i++){
      |          ^
main.c:7:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    7 | for(i=0;i<2;i++){
      |              ^~
Language: C

#include <stdio.h>

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

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

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

for(j=1;j<2;j++){

if(a[i]>a[j]){

b = a[i];

a[i] = a[j];

a[j] = b;

}

}

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


return 0;

}

Compiler output:
main.c:5:7: error: expected declaration specifiers or '...' before string constant
    5 | scanf("%d,%d,%d", &a[0], &a[1], &a[2]);
      |       ^~~~~~~~~~
main.c:5:19: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d,%d,%d", &a[0], &a[1], &a[2]);
      |                   ^
main.c:5:26: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d,%d,%d", &a[0], &a[1], &a[2]);
      |                          ^
main.c:5:33: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d,%d,%d", &a[0], &a[1], &a[2]);
      |                                 ^
main.c:7:1: error: expected identifier or '(' before 'for'
    7 | for(i=0;i<2;i++){
      | ^~~
main.c:7:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    7 | for(i=0;i<2;i++){
      |          ^
main.c:7:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    7 | for(i=0;i<2;i++){
      |              ^~
Language: C

#include <stdio.h>

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

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

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

for(j=1;j<2;j++){

if(a[i]>a[j]){

b = a[i];

a[i] = a[j];

a[j] = b;

}

}

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


return 0;

}

Compiler output:
main.c:5:7: error: expected declaration specifiers or '...' before string constant
    5 | scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |       ^~~~~~~~~~
main.c:5:19: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |                   ^
main.c:5:26: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |                          ^
main.c:5:33: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |                                 ^
main.c:7:1: error: expected identifier or '(' before 'for'
    7 | for(i=0;i<2;i++){
      | ^~~
main.c:7:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    7 | for(i=0;i<2;i++){
      |          ^
main.c:7:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    7 | for(i=0;i<2;i++){
      |              ^~
Language: C

#include <stdio.h>

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

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

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

for(j=1;j<2;j++){

if(a[i]>a[j]){

b = a[i];

a[i] = a[j];

a[j] = b;

}

}

}

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


return 0;

}

Compiler output:
main.c:5:7: error: expected declaration specifiers or '...' before string constant
    5 | scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |       ^~~~~~~~~~
main.c:5:19: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |                   ^
main.c:5:26: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |                          ^
main.c:5:33: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |                                 ^
main.c:7:1: error: expected identifier or '(' before 'for'
    7 | for(i=0;i<2;i++){
      | ^~~
main.c:7:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    7 | for(i=0;i<2;i++){
      |          ^
main.c:7:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    7 | for(i=0;i<2;i++){
      |              ^~
main.c:25:8: error: expected declaration specifiers or '...' before string constant
   25 | printf("%d %d %d\n",a[0],a[1],a[2]);
      |        ^~~~~~~~~~~~
main.c:25:21: error: expected declaration specifiers or '...' before 'a'
   25 | printf("%d %d %d\n",a[0],a[1],a[2]);
      |                     ^
main.c:25:26: error: expected declaration specifiers or '...' before 'a'
   25 | printf("%d %d %d\n",a[0],a[1],a[2]);
      |                          ^
main.c:25:31: error: expected declaration specifiers or '...' before 'a'
   25 | printf("%d %d %d\n",a[0],a[1],a[2]);
      |                               ^
main.c:28:1: error: expected identifier or '(' before 'return'
   28 | return 0;
      | ^~~~~~
main.c:30:1: error: expected identifier or '(' before '}' token
   30 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:24: error: expected expression before '%' token
    4 | scanf("%d %d %d",&a,&b,%c);
      |                        ^
main.c:13:13: error: expected expression before '%' token
   13 | else if(b<a%%a<c)
      |             ^
main.c:23:25: error: expected ';' before '}' token
   23 | printf("%d %d %d",c,a,b)
      |                         ^
      |                         ;
   24 | }
      | ~                        
main.c:27:25: error: expected ';' before '}' token
   27 | printf("%d %d %d",c,b,a)
      |                         ^
      |                         ;
   28 | }
      | ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:24: error: expected expression before '%' token
    4 | scanf("%d %d %d",&a,&b,%c);
      |                        ^
main.c:13:13: error: expected expression before '%' token
   13 | else if(b<a%%a<c)
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:24: error: expected expression before '%' token
    4 | scanf("%d %d %d",&a,&b,%c);
      |                        ^
main.c:13:13: error: expected expression before '%' token
   13 | else if(b<a%%a<c)
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:24: error: expected expression before '%' token
    4 | scanf("%d %d %d",&a,&b,%c);
      |                        ^
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:4:24: error: expected expression before '%' token
    4 | scanf("%d %d %d",&a,&b,%c);
      |                        ^
Language: C

// ConsoleApplication3.cpp : ??????????????? ??¢????????±????????§????????¨????????? ?????????????????????????????????
//

#include "stdafx.h"
#define scanf scanf_s

//#include "stdio.h"

int main()
{
	int x, y, z;
	//char a;
	scanf("%d %d %d", &x, &y, &z);

	//x = 1;
	//y = 2;
	//z = 3;

	if (x <= y && y <= z) {
		printf("%d %d %d", x, y, z);
	}
	else if (y <= z && z <= x) {
		printf("%d %d %d", y, z, x);
	}
	else if (z <= x && x <= y) {
		printf("%d %d %d", z, x, y);
	}
	else if (x <= z && z <= y) {
		printf("%d %d %d", x, z, y);
	}
	else if (y <= x && x <= z) {
		printf("%d %d %d", y, x, z);
	}
	else if (z <= y && y <= x) {
		printf("%d %d %d", z, y, x);
	}

	//scanf("%c", &a);

	return 0;
}

Compiler output:
main.c:4:10: fatal error: stdafx.h: No such file or directory
    4 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

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

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

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

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

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

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

#include<stdio.h>
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;
b=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:25:1: error: expected declaration or statement at end of input
   25 | return 0;
      | ^~~~~~
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;
}
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:25:1: error: expected declaration or statement at end of input
   25 | return 0;
      | ^~~~~~
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;
}
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:25:1: error: expected declaration or statement at end of input
   25 | return 0;
      | ^~~~~~
Language: C

#include<stdio.h>

int main(void)
{
	int max, dur, min;
	int temp;

	scanf_s("%d %d %d", &max, &dur, &min);

	if (min > dur){
		temp = min;
		min = dur;
		dur = temp;
	}
	if (min > max){
		temp = min;
		min = max;
		max = temp;
	}
	if (dur > max){
		temp = max;
		max = dur;
		dur = temp;
	}

	printf("%d %d %d", min, dur, max);

	putchar('\n');

	return 0;

}

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

#include<stdio.h>

int main(void)
{
	int max, dur, min;
	int temp;

	scanf_s("%d %d %d", &max, &dur, &min);

	if (min > dur){
		temp = min;
		min = dur;
		dur = temp;
	}
	if (dur > max){
		temp = max;
		max = dur;
		dur = temp;
	}
	if (min > dur){
		temp = min;
		min = max;
		max = temp;
	}


	printf("%d %d %d", min, dur, max);

	putchar('\n');

	return 0;

}

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

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

Compiler output:
main.c: In function 'main':
main.c:10:6: error: 'ctemp' undeclared (first use in this function); did you mean 'cTemp'?
   10 |  b = ctemp;
      |      ^~~~~
      |      cTemp
main.c:10:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:22: error: expected ')' before 'b'
   24 | printf("%a %b %c\n",a b c);
      |       ~              ^~
      |                      )
Language: C

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

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