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

#include<stdio.h>

int main(){

   int a[3];
   int i=0;
   int max=0;

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

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

   if(max == a[0]){
      if(a[1] < a[2]){
         printf("%d %d %d\n",max,a[2],a[1]);
      }
      else{
         printf("%d %d %d\n",max,a[1],a[2]);
      }
   else if(max == a[1]){
      if(a[0] < a[2]){
         printf("%d %d %d\n",max,a[2],a[0]);
      }
      else{
         printf("%d %d %d\n",max,a[0],a[2]);
      }
   }
   else{
      if(a[0] < a[1]){
         printf("%d %d %d\n",max,a[1],a[0]);
      }
      else{
         printf("%d %d %d\n",max,a[0],a[1]);
      }
   }
      
   return 0;

}

Compiler output:
main.c: In function 'main':
main.c:15:18: error: 'b' undeclared (first use in this function)
   15 |    else if(max < b[2]){
      |                  ^
main.c:15:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:28:4: error: expected '}' before 'else'
   28 |    else if(max == a[1]){
      |    ^~~~
Language: C

#include<stdio.h>

int main(){

   int a[3];
   int i=0;
   int max=0;

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

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

   if(max == a[0]){
      if(a[1] < a[2]){
         printf("%d %d %d\n",max,a[2],a[1]);
      }
      else{
         printf("%d %d %d\n",max,a[1],a[2]);
      }
   }
   else if(max == a[1]){
      if(a[0] < a[2]){
         printf("%d %d %d\n",max,a[2],a[0]);
      }
      else{
         printf("%d %d %d\n",max,a[0],a[2]);
      }
   }
   else{
      if(a[0] < a[1]){
         printf("%d %d %d\n",max,a[1],a[0]);
      }
      else{
         printf("%d %d %d\n",max,a[0],a[1]);
      }
   }
      
   return 0;

}

Compiler output:
main.c: In function 'main':
main.c:15:18: error: 'b' undeclared (first use in this function)
   15 |    else if(max < b[2]){
      |                  ^
main.c:15:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){

   int a,b,c;
   int max=0;
   int max_2=0;

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

while( !((a<b)&&(b<c)) ){
if(b < a) {
tmp = a;
a = b;
b = tmp;
}

if(c < b) {
tmp = b;
b = c;
c = tmp;

if(c < a) {
tmp = a;
a = b;
b = tmp;
}
}

   return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:1: error: 'tmp' undeclared (first use in this function)
   13 | tmp = a;
      | ^~~
main.c:13:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:32:1: error: expected declaration or statement at end of input
   32 | }
      | ^
Language: C

#include<stdio.h>

int main(){

   int a,b,c;
   int tmp=0;

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

while( !((a<b)&&(b<c)) ){
if(b < a) {
tmp = a;
a = b;
b = tmp;
}

if(c < b) {
tmp = b;
b = c;
c = tmp;

if(c < a) {
tmp = a;
a = b;
b = tmp;
}
}

   return 0;

}

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

#include <iostream>
#include <algorithm>

int main(){
	int a, b, c;
	std::cin >> a >> b >> c;
	if(a>b)
		std::swap(a,b);
	if(b>c)
		std::swap(b,c);
	if(a>b)
		std::swap(a,b);
	std::cout << a << ' ' << b << ' ' << c << std::endl;
	return 0;
}

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


int main(){

 int a,b,c;

 int buf;

 scanf=("%d %d %d",a,b,c); 
 while(a > b || b > c){
  
  if(a > b){
  buf = a;
  a = b;
  b = buf;
  }
  if(b > c){

   buf = b;
   b = c;
   c = buf;
  }
 }

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

 return 0;
}

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

#include <stdio.h>

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

y=0;
while(y<3){
while(x<3){
if(a[y]>a[x]){
z=a[y];
a[y]=a[x];
a[x]=z;
}
x++;
}
y++;
}

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


return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:9: error: expected ';' before 'int'
    4 | int a[3]
      |         ^
      |         ;
    5 | int x,y,z;
      | ~~~      
main.c:6:19: error: 'a' undeclared (first use in this function)
    6 | scanf("%d %d %d",&a[0],&a[1],&a[2]);
      |                   ^
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:20: error: expected ')' before 'a'
   21 | printf("%d %d %d\n"a[0],a[1],a[2]);
      |       ~            ^
      |                    )
Language: C

#include <stdio.h>

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

y=0;
while(y<3){
while(x<3){
if(a[y]>a[x]){
z=a[y];
a[y]=a[x];
a[x]=z;
}
x++;
}
y++;
}

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


return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:21:20: error: expected ')' before 'a'
   21 | printf("%d %d %d\n"a[0],a[1],a[2]);
      |       ~            ^
      |                    )
Language: C

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

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

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

	return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:7:9: error: 'tmp' undeclared (first use in this function)
    7 |         tmp=a;
      |         ^~~
main.c:7:9: 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);
int tmp;
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", a b c);
return 0;
}

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

#include <stdio.h>

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

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

#include <stdio.h>

void swap(int &a, int &b);

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

void swap(int &a, int &b) {
  int t;
  t = a;
  a = b;
  b = t;
}

Compiler output:
main.c:3:15: error: expected ';', ',' or ')' before '&' token
    3 | void swap(int &a, int &b);
      |               ^
main.c: In function 'main':
main.c:11:5: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
   11 |     swap(a, b);
      |     ^~~~
main.c: At top level:
main.c:22:15: error: expected ';', ',' or ')' before '&' token
   22 | void swap(int &a, int &b) {
      |               ^
Language: C

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

Compiler output:
main.c:3:15: error: expected ';', ',' or ')' before '&' token
    3 | void swap(int &a, int &b);
      |               ^
main.c: In function 'main':
main.c:11:5: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
   11 |     swap(&a, &b);
      |     ^~~~
main.c: At top level:
main.c:22:15: error: expected ';', ',' or ')' before '&' token
   22 | void swap(int &a, int &b) {
      |               ^
Language: C

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c: In function 'main':
main.c:9:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 |   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 | include <stdio.h>
main.c:9:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 |   scanf("%d %d %d", &a, &b, &c);
      |   ^~~~~
main.c:9:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:5: error: implicit declaration of function 'swap' [-Wimplicit-function-declaration]
   11 |     swap(&a, &b);
      |     ^~~~
main.c:19:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   19 |   printf("%d %d %d\n", a, b, c);
      |   ^~~~~~
main.c:19:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:19:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:19:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: At top level:
main.c:23:6: warning: conflicting types for 'swap'; have 'void(int *, int *)'
   23 | void swap(int *a, int *b) {
      |      ^~~~
main.c:11:5: note: previous implicit declaration of 'swap' with type 'void(int *, int *)'
   11 |     swap(&a, &b);
      |     ^~~~
Language: C

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

Compiler output:
main.c: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){
        if(b<c)
            printf("a<b<c\n");
        else{
            if(a<c)
                printf("a<c<b\n");
            else
                printf("c<a<b\n");
            }
    else{
        if(a<c)
            printf("b<a<c\n");
        else{
            if(b<c)
                printf("b<c<a\n");
            else
                printf("c<b<a\n");
            }
        }
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:5: error: expected '}' before 'else'
   15 |     else{
      |     ^~~~
main.c: At top level:
main.c:26:5: error: expected identifier or '(' before 'return'
   26 |     return 0;
      |     ^~~~~~
main.c:27:1: error: expected identifier or '(' before '}' token
   27 | }
      | ^
Language: C

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

Compiler output:
main.c:2:11: error: expected declaration specifiers or '...' before string constant
    2 |     scanf("%d %d %d",&a,&b,&c);
      |           ^~~~~~~~~~
main.c:2:22: error: expected declaration specifiers or '...' before '&' token
    2 |     scanf("%d %d %d",&a,&b,&c);
      |                      ^
main.c:2:25: error: expected declaration specifiers or '...' before '&' token
    2 |     scanf("%d %d %d",&a,&b,&c);
      |                         ^
main.c:2:28: error: expected declaration specifiers or '...' before '&' token
    2 |     scanf("%d %d %d",&a,&b,&c);
      |                            ^
main.c:3:5: error: expected identifier or '(' before 'if'
    3 |     if(a<b){
      |     ^~
main.c:24:5: error: expected identifier or '(' before 'return'
   24 |     return 0;
      |     ^~~~~~
main.c:25:1: error: expected identifier or '(' before '}' token
   25 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:9: error: expected '}' before 'else'
   16 |         else{
      |         ^~~~
main.c: At top level:
main.c:27:5: error: expected identifier or '(' before 'return'
   27 |     return 0;
      |     ^~~~~~
main.c:28:1: error: expected identifier or '(' before '}' token
   28 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:15:9: error: expected '}' before 'else'
   15 |         else{
      |         ^~~~
main.c: At top level:
main.c:26:5: error: expected identifier or '(' before 'return'
   26 |     return 0;
      |     ^~~~~~
main.c:27:1: error: expected identifier or '(' before '}' token
   27 | }
      | ^
Language: C

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

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

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

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

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

Compiler output:
main.c:1:2: error: invalid preprocessing directive #nclude; did you mean #include?
    1 | #nclude<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |     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 | #nclude<stdio.h>
main.c:8:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |     scanf("%d %d %d",&a,&b,&c);
      |     ^~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |         printf("%d %d %d\n",a,b,c);
      |         ^~~~~~
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   12 |             printf("%d %d %d\n",a,c,b);
      |             ^~~~~~
main.c:12:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |         printf("%d %d %d\n",b,a,c);
      |         ^~~~~~
main.c:15:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   17 |             printf("%d %d %d\n",b,c,a);
      |             ^~~~~~
main.c:17:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   20 |         printf("%d %d %d\n",c,b,a);
      |         ^~~~~~
main.c:20:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:22:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   22 |             printf("%d %d %d\n",c,a,b);
      |             ^~~~~~
main.c:22:13: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

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

Compiler output:
main.c:1:2: error: invalid preprocessing directive #nclude; did you mean #include?
    1 | #nclude<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |     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 | #nclude<stdio.h>
main.c:8:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |     scanf("%d %d %d",&a,&b,&c);
      |     ^~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |         printf("%d %d %d\n",a,b,c);
      |         ^~~~~~
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   12 |             printf("%d %d %d\n",a,c,b);
      |             ^~~~~~
main.c:12:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |         printf("%d %d %d\n",b,a,c);
      |         ^~~~~~
main.c:15:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   17 |             printf("%d %d %d\n",b,c,a);
      |             ^~~~~~
main.c:17:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   20 |         printf("%d %d %d\n",c,b,a);
      |         ^~~~~~
main.c:20:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:22:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   22 |             printf("%d %d %d\n",c,a,b);
      |             ^~~~~~
main.c:22:13: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:24:13: error: expected ';' before '}' token
   24 |     return 0
      |             ^
      |             ;
   25 | }
      | ~
Language: C

#include <stdio.h>

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

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

    
  

Compiler output:
main.c:16:11: error: expected declaration specifiers or '...' before '*' token
   16 | void swap(*x, *y)
      |           ^
main.c:16:15: error: expected declaration specifiers or '...' before '*' token
   16 | void swap(*x, *y)
      |               ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#define IMP_NM 3

int cmp(const void *a,const void *b){
return *(int *)a - *(int *)b;
}

int main(void){
int a[IMP_NM], i;
for(i = 0;i < IMP_NM;i++){
scanf("%d",&a[i]);
}
qsort(a,IMP_NM,sizeof(a[0]),cmp);
for(i = 0;i < IMP_NM;i++){
printf("%d",a[i]);
if(i != IMP_NM - 1){
printf(" ");
}
return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:7:35: error: expected ')' before 'b'
    7 |     {if(b<c)printf("%d %d %d\n", a b c);
      |                   ~               ^~
      |                                   )
main.c:8:40: error: expected ')' before 'c'
    8 |       else if(a<c)printf("%d %d %d\n",a c b);
      |                         ~              ^~
      |                                        )
main.c:9:33: error: expected ')' before 'a'
    9 |       else printf("%d %d %d\n",c a b);
      |                  ~              ^~
      |                                 )
main.c:12:35: error: expected ')' before 'a'
   12 |     {if(a<c) printf("%d %d %d\n",b a c);
      |                    ~              ^~
      |                                   )
main.c:13:41: error: expected ')' before 'c'
   13 |       else if(b<c) printf("%d %d %d\n",b c a);
      |                          ~              ^~
      |                                         )
main.c:14:33: error: expected ')' before 'b'
   14 |       else printf("%d %d %d\n",c b a);
      |                  ~              ^~
      |                                 )
Language: C

#include<stdio.h>

int main(){
	int A[3];
	int X,Y,Z;
	scanf("%d %d %d".A,A+1,A+2);
	for(X=0;X<2;X++)
		for(Y=0;Y<2;Y++)
			if(A[Y]>A[Y+1]){
				Z=A[Y];
				A[Y]=A[Y+1];
				A[Y+1]=Z;
			}
	pritnf("%d %d %d\n",A[0],A[1],A[2]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:25: error: request for member 'A' in something not a structure or union
    6 |         scanf("%d %d %d".A,A+1,A+2);
      |                         ^
main.c:14:9: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   14 |         pritnf("%d %d %d\n",A[0],A[1],A[2]);
      |         ^~~~~~
      |         printf
Language: C

#include<stdio.h>

int main(){
	int A[3];
	int X,Y,Z;
	scanf("%d %d %d".A,A+1,A+2);
	for(X=0;X<2;X++)
		for(Y=0;Y<2;Y++)
			if(A[Y]>A[Y+1]){
				Z=A[Y];
				A[Y]=A[Y+1];
				A[Y+1]=Z;
			}
	printf("%d %d %d\n",A[0],A[1],A[2]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:25: error: request for member 'A' in something not a structure or union
    6 |         scanf("%d %d %d".A,A+1,A+2);
      |                         ^
Language: C

#define s(a,b) if(a>b){a^=b^=a^=b;}
a;main(b,c){scanf("%d%d%d",&a,&b,&c);s(a,b)s(a,c)s(b,c)printf("%d %d %d\n",a,b,c);exit(0)}

Compiler output:
main.c:2:1: warning: data definition has no type or storage class
    2 | a;main(b,c){scanf("%d%d%d",&a,&b,&c);s(a,b)s(a,c)s(b,c)printf("%d %d %d\n",a,b,c);exit(0)}
      | ^
main.c:2:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:2:3: error: return type defaults to 'int' [-Wimplicit-int]
    2 | a;main(b,c){scanf("%d%d%d",&a,&b,&c);s(a,b)s(a,c)s(b,c)printf("%d %d %d\n",a,b,c);exit(0)}
      |   ^~~~
main.c: In function 'main':
main.c:2:3: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:2:3: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:2:13: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    2 | a;main(b,c){scanf("%d%d%d",&a,&b,&c);s(a,b)s(a,c)s(b,c)printf("%d %d %d\n",a,b,c);exit(0)}
      |             ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #define s(a,b) if(a>b){a^=b^=a^=b;}
main.c:2:13: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    2 | a;main(b,c){scanf("%d%d%d",&a,&b,&c);s(a,b)s(a,c)s(b,c)printf("%d %d %d\n",a,b,c);exit(0)}
      |             ^~~~~
main.c:2:13: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:56: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    2 | a;main(b,c){scanf("%d%d%d",&a,&b,&c);s(a,b)s(a,c)s(b,c)printf("%d %d %d\n",a,b,c);exit(0)}
      |                                                        ^~~~~~
main.c:2:56: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:56: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:2:56: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:2:83: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    2 | a;main(b,c){scanf("%d%d%d",&a,&b,&c);s(a,b)s(a,c)s(b,c)printf("%d %d %d\n",a,b,c);exit(0)}
      |                                                                                   ^~~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | #define s(a,b) if(a>b){a^=b^=a^=b;}
main.c:2:83: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
    2 | a;main(b,c){scanf("%d%d%d",&a,&b,&c);s(a,b)s(a,c)s(b,c)printf("%d %d %d\n",a,b,c);exit(0)}
      |                                                                                   ^~~~
main.c:2:83: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c:2:90: error: expected ';' before '}' token
    2 | a;main(b,c){scanf("%d%d%d",&a,&b,&c);s(a,b)s(a,c)s(b,c)printf("%d %d %d\n",a,b,c);exit(0)}
      |                                                                                          ^
      |                                                                                          ;
Language: C

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

Compiler output:
main.c:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i#include <stdio.h>
      |  ^
      |  if
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |     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 | #i#include <stdio.h>
main.c:8:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |     scanf("%d %d %d", &a,&b,&c);
      |     ^~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:24:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   24 |     printf("%d %d %d",a,b,c);
      |     ^~~~~~
main.c:24:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:24:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:24:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:9: error: 'x' undeclared (first use in this function)
   11 |         x = a;
      |         ^
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: 'y' undeclared (first use in this function)
   12 |         y = c;
      |         ^
main.c:13:9: error: 'z' undeclared (first use in this function)
   13 |         z = b;
      |         ^
main.c:21:9: error: implicit declaration of function 'printfg'; did you mean 'printf'? [-Wimplicit-function-declaration]
   21 |         printfg("%d %d %d\n",a ,b ,c);
      |         ^~~~~~~
      |         printf
main.c: At top level:
main.c:22:3: error: expected identifier or '(' before 'return'
   22 | } return 0;
      |   ^~~~~~
main.c:23:1: error: expected identifier or '(' before '}' token
   23 | }
      | ^
Language: C

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

void compare( int *a, int *b);

int main( int argc, char *argv[] ){
   int x, y, z;

   if ( scant( "%d*%d*%d", x, y, z ) != 3 ){
      exit( 1 );
   }

   compare( &x, &y );
   compare( &y, &z );
   compare( &z, &x );
}

void compare( int *a, int *b ){
   int tmp;

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

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'scant'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 |    if ( scant( "%d*%d*%d", x, y, z ) != 3 ){
      |         ^~~~~
      |         scanf
Language: C

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

void compare( int const *a, int const *b);

int main( int argc, char *argv[] ){
   int x, y, z;

   if ( scanf( "%d %d %d", &x, &y, &z ) != 3 ){
      exit( 1 );
   }

   compare( &x, &y );
   compare( &y, &z );
   compare( &x, &z );
}

void compare( int const *a, int const *b ){
   int tmp;

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

Compiler output:
main.c: In function 'compare':
main.c:22:10: error: assignment of read-only location '*a'
   22 |       *a = tmp;
      |          ^
main.c:23:10: error: assignment of read-only location '*a'
   23 |       *a = *b;
      |          ^
main.c:24:10: error: assignment of read-only location '*b'
   24 |       *b = tmp;
      |          ^
Language: C

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

void compare( int const *a, int const *b);

int main( int argc, char *argv[] ){
   int x, y, z;

   if ( scanf( "%d %d %d", &x, &y, &z ) != 3 ){
      exit( 1 );
   }

   compare( &x, &y );
   compare( &y, &z );
   compare( &x, &z );
}

void compare( int * const a, int * const b ){
   int tmp;

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

Compiler output:
main.c:18:6: error: conflicting types for 'compare'; have 'void(int * const,  int * const)'
   18 | void compare( int * const a, int * const b ){
      |      ^~~~~~~
main.c:4:6: note: previous declaration of 'compare' with type 'void(const int *, const int *)'
    4 | void compare( int const *a, int const *b);
      |      ^~~~~~~
Language: C

#include<stdio.h>
main(){
  int a;
  int b;
  int c;
  scanf("%d %d %d",&a &b &c);
  if(a<b && b<c){
    printf("%d %d %d\n",a,b,c);
  }
  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:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:23: error: invalid operands to binary & (have 'int *' and 'int')
    6 |   scanf("%d %d %d",&a &b &c);
      |                    ~~ ^
      |                    |
      |                    int *
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:25:3: error: expected declaration or statement at end of input
   25 |   return 0;
      |   ^~~~~~
Language: C

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

Compiler output:
main.c:1:5: warning: data definition has no type or storage class
    1 |     b=a[0];
      |     ^
main.c:1:5: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:7: error: 'a' undeclared here (not in a function)
    1 |     b=a[0];
      |       ^
main.c:2:5: warning: data definition has no type or storage class
    2 |     a[0]=a[1];
      |     ^
main.c:2:5: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:2:10: error: invalid initializer
    2 |     a[0]=a[1];
      |          ^
main.c:3:5: warning: data definition has no type or storage class
    3 |     a[1]=b;
      |     ^
main.c:3:5: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:3:5: error: conflicting types for 'a'; have 'int[1]'
main.c:2:5: note: previous definition of 'a' with type 'int[0]'
    2 |     a[0]=a[1];
      |     ^
main.c:3:10: error: invalid initializer
    3 |     a[1]=b;
      |          ^
main.c:4:3: error: expected identifier or '(' before '}' token
    4 |   }
      |   ^
main.c:5:3: error: expected identifier or '(' before 'if'
    5 |   if(a[1]>a[2]){
      |   ^~
main.c:10:3: error: expected identifier or '(' before 'if'
   10 |   if(a[0]>a[1]){
      |   ^~
main.c:15:10: error: expected declaration specifiers or '...' before string constant
   15 |   printf("%d %d %d\n",a[0],a[1],a[2]);
      |          ^~~~~~~~~~~~
main.c:15:23: error: expected declaration specifiers or '...' before 'a'
   15 |   printf("%d %d %d\n",a[0],a[1],a[2]);
      |                       ^
main.c:15:28: error: expected declaration specifiers or '...' before 'a'
   15 |   printf("%d %d %d\n",a[0],a[1],a[2]);
      |                            ^
main.c:15:33: error: expected declaration specifiers or '...' before 'a'
   15 |   printf("%d %d %d\n",a[0],a[1],a[2]);
      |                                 ^
main.c:16:5: error: expected identifier or '(' before 'return'
   16 |     return 0;
      |     ^~~~~~
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:38: error: expected ';' before string constant
    7 |                 cout << a << "<" << b "<" << c
      |                                      ^~~~
      |                                      ;
a.cc:10:38: error: expected ';' before string constant
   10 |                 cout << a << "<" << c "<" << b
      |                                      ^~~~
      |                                      ;
a.cc:13:38: error: expected ';' before string constant
   13 |                 cout << b << "<" << a "<" << c
      |                                      ^~~~
      |                                      ;
a.cc:16:38: error: expected ';' before string constant
   16 |                 cout << b << "<" << c "<" << a
      |                                      ^~~~
      |                                      ;
a.cc:19:38: error: expected ';' before string constant
   19 |                 cout << c << "<" << a "<" << b
      |                                      ^~~~
      |                                      ;
a.cc:22:38: error: expected ';' before string constant
   22 |                 cout << c << "<" << b "<" << a
      |                                      ^~~~
      |                                      ;
Language: C++

#include <iostream>
using namespace std;
int main() {
	int x, y, z;
	cin >> x >> y >> z;
	if ((x > = y) && (y > = z)) {
		cout << z << " " << y << " " << x << endl;
	}
	if ((y > = x) && (x > = z)) {
		cout << z << " " << x << " " << y << endl;
	}
	if ((x > = z) && (z > = y)) {
		cout << y << " " << z << " " << x << endl;
	}
	if ((y > = z) && (z > = x)) {
		cout << x << " " << z << " " << y << endl;
	}
	if ((z > = y) && (y > = x)) {
		cout << x << " " << y << " " << z << endl;
	}
	if ((z > = x) && (x > = y)) {
		cout << y << " " << x << " " << z << endl;
	}
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected primary-expression before '=' token
    6 |         if ((x > = y) && (y > = z)) {
      |                  ^
a.cc:6:31: error: expected primary-expression before '=' token
    6 |         if ((x > = y) && (y > = z)) {
      |                               ^
a.cc:9:18: error: expected primary-expression before '=' token
    9 |         if ((y > = x) && (x > = z)) {
      |                  ^
a.cc:9:31: error: expected primary-expression before '=' token
    9 |         if ((y > = x) && (x > = z)) {
      |                               ^
a.cc:12:18: error: expected primary-expression before '=' token
   12 |         if ((x > = z) && (z > = y)) {
      |                  ^
a.cc:12:31: error: expected primary-expression before '=' token
   12 |         if ((x > = z) && (z > = y)) {
      |                               ^
a.cc:15:18: error: expected primary-expression before '=' token
   15 |         if ((y > = z) && (z > = x)) {
      |                  ^
a.cc:15:31: error: expected primary-expression before '=' token
   15 |         if ((y > = z) && (z > = x)) {
      |                               ^
a.cc:18:18: error: expected primary-expression before '=' token
   18 |         if ((z > = y) && (y > = x)) {
      |                  ^
a.cc:18:31: error: expected primary-expression before '=' token
   18 |         if ((z > = y) && (y > = x)) {
      |                               ^
a.cc:21:18: error: expected primary-expression before '=' token
   21 |         if ((z > = x) && (x > = y)) {
      |                  ^
a.cc:21:31: error: expected primary-expression before '=' token
   21 |         if ((z > = x) && (x > = y)) {
      |                               ^
Language: C++

#inclide<bits/stdc++.h>
using namespace std;

int swap(int x, int y){
    int temp;
    temp = x;
    x = y;
    y = temp
    return x, y;
}

int main{
    int a, b, c;
    cin >> a >> b >> c;
    if(a > b){
        swap(a, b);
    }
    if(a > c){
        swap(a, c);
    }
    if(b > c){
        swap(b, c);
    }
    cout << a << " " << b << " " << c << endl;
    return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int swap(int, int)':
a.cc:8:13: error: expected ';' before 'return'
    8 |     y = temp
      |             ^
      |             ;
    9 |     return x, y;
      |     ~~~~~~   
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
a.cc: At global scope:
a.cc:12:5: error: cannot declare '::main' to be a global variable
   12 | int main{
      |     ^~~~
a.cc:13:5: error: expected primary-expression before 'int'
   13 |     int a, b, c;
      |     ^~~
a.cc:13:5: error: expected '}' before 'int'
a.cc:12:9: note: to match this '{'
   12 | int main{
      |         ^
a.cc:14:5: error: 'cin' does not name a type
   14 |     cin >> a >> b >> c;
      |     ^~~
a.cc:15:5: error: expected unqualified-id before 'if'
   15 |     if(a > b){
      |     ^~
a.cc:18:5: error: expected unqualified-id before 'if'
   18 |     if(a > c){
      |     ^~
a.cc:21:5: error: expected unqualified-id before 'if'
   21 |     if(b > c){
      |     ^~
a.cc:24:5: error: 'cout' does not name a type
   24 |     cout << a << " " << b << " " << c << endl;
      |     ^~~~
a.cc:25:5: error: expected unqualified-id before 'return'
   25 |     return 0;
      |     ^~~~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int swap(int x, int y){
    int temp;
    temp = x;
    x = y;
    y = temp
    return x, y;
}

int main{
    int a, b, c;
    cin >> a >> b >> c;
    if(a > b){
        swap(a, b);
    }
    if(a > c){
        swap(a, c);
    }
    if(b > c){
        swap(b, c);
    }
    cout << a << " " << b << " " << c << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int swap(int, int)':
a.cc:8:13: error: expected ';' before 'return'
    8 |     y = temp
      |             ^
      |             ;
    9 |     return x, y;
      |     ~~~~~~   
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
a.cc: At global scope:
a.cc:12:5: error: cannot declare '::main' to be a global variable
   12 | int main{
      |     ^~~~
a.cc:13:5: error: expected primary-expression before 'int'
   13 |     int a, b, c;
      |     ^~~
a.cc:13:5: error: expected '}' before 'int'
a.cc:12:9: note: to match this '{'
   12 | int main{
      |         ^
a.cc:14:5: error: 'cin' does not name a type
   14 |     cin >> a >> b >> c;
      |     ^~~
a.cc:15:5: error: expected unqualified-id before 'if'
   15 |     if(a > b){
      |     ^~
a.cc:18:5: error: expected unqualified-id before 'if'
   18 |     if(a > c){
      |     ^~
a.cc:21:5: error: expected unqualified-id before 'if'
   21 |     if(b > c){
      |     ^~
a.cc:24:5: error: 'cout' does not name a type
   24 |     cout << a << " " << b << " " << c << endl;
      |     ^~~~
a.cc:25:5: error: expected unqualified-id before 'return'
   25 |     return 0;
      |     ^~~~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int swap(int x, int y){
    int temp;
    temp = x;
    x = y;
    y = temp;
    return x, y;
}

int main{
    int a, b, c;
    cin >> a >> b >> c;
    if(a > b){
        swap(a, b);
    }
    if(a > c){
        swap(a, c);
    }
    if(b > c){
        swap(b, c);
    }
    cout << a << " " << b << " " << c << endl;
    return 0;
}


Compiler output:
a.cc:12:5: error: cannot declare '::main' to be a global variable
   12 | int main{
      |     ^~~~
a.cc:13:5: error: expected primary-expression before 'int'
   13 |     int a, b, c;
      |     ^~~
a.cc:13:5: error: expected '}' before 'int'
a.cc:12:9: note: to match this '{'
   12 | int main{
      |         ^
a.cc:14:5: error: 'cin' does not name a type
   14 |     cin >> a >> b >> c;
      |     ^~~
a.cc:15:5: error: expected unqualified-id before 'if'
   15 |     if(a > b){
      |     ^~
a.cc:18:5: error: expected unqualified-id before 'if'
   18 |     if(a > c){
      |     ^~
a.cc:21:5: error: expected unqualified-id before 'if'
   21 |     if(b > c){
      |     ^~
a.cc:24:5: error: 'cout' does not name a type
   24 |     cout << a << " " << b << " " << c << endl;
      |     ^~~~
a.cc:25:5: error: expected unqualified-id before 'return'
   25 |     return 0;
      |     ^~~~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^