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

#include <stdio.h>

int main()
{
int a[3];

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

if (a[j]>a[j+1]){
b=a[j];
a[j]=a[j+1];
a[j+1]=b;
}
if(a[j+1]>a[j+2]){
b=a[j+1];
a[j+1]=a[j+2];
a[j+2]=b;
}

if (a[j]>a[j+1]){
b=a[j];
a[j]=a[j+1];
a[j+1]=b;
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected identifier before numeric constant
    7 | scanf("%d %d %d",&a[0],&a[1],&[2]);
      |                                ^
a.cc: In lambda function:
a.cc:7:34: error: expected '{' before ')' token
    7 | scanf("%d %d %d",&a[0],&a[1],&[2]);
      |                                  ^
a.cc: In function 'int main()':
a.cc:7:31: error: taking address of rvalue [-fpermissive]
    7 | scanf("%d %d %d",&a[0],&a[1],&[2]);
      |                               ^~~
a.cc:9:7: error: 'j' was not declared in this scope
    9 | if (a[j]>a[j+1]){
      |       ^
a.cc:10:1: error: 'b' was not declared in this scope
   10 | b=a[j];
      | ^
a.cc:14:6: error: 'j' was not declared in this scope
   14 | if(a[j+1]>a[j+2]){
      |      ^
a.cc:15:1: error: 'b' was not declared in this scope
   15 | b=a[j+1];
      | ^
a.cc:20:7: error: 'j' was not declared in this scope
   20 | if (a[j]>a[j+1]){
      |       ^
a.cc:21:1: error: 'b' was not declared in this scope
   21 | b=a[j];
      | ^
Language: C++

#include <stdio.h>

int main()
{
int a[3];

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

if (a[j]>a[j+1]){
b=a[j];
a[j]=a[j+1];
a[j+1]=b;
}
else
if(a[j+1]>a[j+2]){
b=a[j+1];
a[j+1]=a[j+2];
a[j+2]=b;
}
else
if (a[j]>a[j+1]){
b=a[j];
a[j]=a[j+1];
a[j+1]=b;
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected identifier before numeric constant
    7 | scanf("%d %d %d",&a[0],&a[1],&[2]);
      |                                ^
a.cc: In lambda function:
a.cc:7:34: error: expected '{' before ')' token
    7 | scanf("%d %d %d",&a[0],&a[1],&[2]);
      |                                  ^
a.cc: In function 'int main()':
a.cc:7:31: error: taking address of rvalue [-fpermissive]
    7 | scanf("%d %d %d",&a[0],&a[1],&[2]);
      |                               ^~~
a.cc:9:7: error: 'j' was not declared in this scope
    9 | if (a[j]>a[j+1]){
      |       ^
a.cc:10:1: error: 'b' was not declared in this scope
   10 | b=a[j];
      | ^
a.cc:16:1: error: 'b' was not declared in this scope
   16 | b=a[j+1];
      | ^
a.cc:22:1: error: 'b' was not declared in this scope
   22 | b=a[j];
      | ^
Language: C++

#include <stdio.h>

int main()
{
int a[3];

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

if (a[j]>a[j+1]){
b=a[j];
a[j]=a[j+1];
a[j+1]=b;
}
else
if(a[j+1]>a[j+2]){
b=a[j+1];
a[j+1]=a[j+2];
a[j+2]=b;
}
else
if (a[j]>a[j+1]){
b=a[j];
a[j]=a[j+1];
a[j+1]=b;
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'j' was not declared in this scope
    9 | if (a[j]>a[j+1]){
      |       ^
a.cc:10:1: error: 'b' was not declared in this scope
   10 | b=a[j];
      | ^
a.cc:16:1: error: 'b' was not declared in this scope
   16 | b=a[j+1];
      | ^
a.cc:22:1: error: 'b' was not declared in this scope
   22 | b=a[j];
      | ^
Language: C++

#include <stdio.h>

int main()
{
int a[3];

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'b' was not declared in this scope
   10 | b=a[0];
      | ^
a.cc:16:1: error: 'b' was not declared in this scope
   16 | b=a[1];
      | ^
a.cc:22:1: error: 'b' was not declared in this scope
   22 | b=a[0];
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before '<' token
    6 |         if (a=<b&&b=<c)
      |               ^
a.cc:6:21: error: expected primary-expression before '<' token
    6 |         if (a=<b&&b=<c)
      |                     ^
a.cc:8:20: error: expected primary-expression before '<' token
    8 |         else if (a=<c&&c=<b)
      |                    ^
a.cc:8:26: error: expected primary-expression before '<' token
    8 |         else if (a=<c&&c=<b)
      |                          ^
a.cc:10:20: error: expected primary-expression before '<' token
   10 |         else if (b=<a&&a=<c)
      |                    ^
a.cc:10:26: error: expected primary-expression before '<' token
   10 |         else if (b=<a&&a=<c)
      |                          ^
a.cc:12:20: error: expected primary-expression before '<' token
   12 |         else if (b=<c&&c=<a)
      |                    ^
a.cc:12:26: error: expected primary-expression before '<' token
   12 |         else if (b=<c&&c=<a)
      |                          ^
a.cc:14:20: error: expected primary-expression before '<' token
   14 |         else if (c=<a&&a=<b)
      |                    ^
a.cc:14:26: error: expected primary-expression before '<' token
   14 |         else if (c=<a&&a=<b)
      |                          ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: 'i' was not declared in this scope
    5 | for (i = 1 ; i < 3 ; i++){
      |      ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:1: error: 'else' without a previous 'if'
   18 | else if (b <= a, c)
      | ^~~~
a.cc:26:1: error: 'else' without a previous 'if'
   26 | else
      | ^~~~
Language: C++

#include <stdio.h>

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

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

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

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

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

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

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

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


return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:1: error: 'else' without a previous 'if'
   12 | else if(b<=a&&a<=c);
      | ^~~~
a.cc:15:1: error: 'else' without a previous 'if'
   15 | else if(c<=a&&a<=b);
      | ^~~~
a.cc:18:1: error: 'else' without a previous 'if'
   18 | else if(b<=c&&c<=a);
      | ^~~~
a.cc:21:1: error: 'else' without a previous 'if'
   21 | else if(a<=c&&c<=b);
      | ^~~~
a.cc:24:1: error: 'else' without a previous 'if'
   24 | else if(c<=b&&b<=a);
      | ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: unable to find string literal operator 'operator""b' with 'const char [7]', 'long unsigned int' arguments
    6 | printf("%d %d\n"b,a);
      |        ^~~~~~~~~~
a.cc:8:8: error: unable to find string literal operator 'operator""a' with 'const char [7]', 'long unsigned int' arguments
    8 | printf("%d %d\n"a,b);
      |        ^~~~~~~~~~
a.cc:10:8: error: unable to find string literal operator 'operator""c' with 'const char [7]', 'long unsigned int' arguments
   10 | printf("%d %d\n"c,b);
      |        ^~~~~~~~~~
a.cc:12:8: error: unable to find string literal operator 'operator""b' with 'const char [7]', 'long unsigned int' arguments
   12 | printf("%d %d\n"b,c);
      |        ^~~~~~~~~~
a.cc:14:8: error: unable to find string literal operator 'operator""a' with 'const char [7]', 'long unsigned int' arguments
   14 | printf("%d %d\n"a,c);
      |        ^~~~~~~~~~
a.cc:16:8: error: unable to find string literal operator 'operator""c' with 'const char [7]', 'long unsigned int' arguments
   16 | printf("%d %d\n"c,a);
      |        ^~~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:2: error: expected '}' before 'else'
   11 |  else
      |  ^~~~
a.cc:9:19: note: to match this '{'
    9 |  else if(b>c&&a<c){
      |                   ^
a.cc: At global scope:
a.cc:15:1: error: expected unqualified-id before 'else'
   15 | else if(a>b){
      | ^~~~
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: 'C' was not declared in this scope
    5 |         if(a<b&&b<C){
      |                   ^
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 > c){
    d = a;
    a = c;
    c = d;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:20:4: error: expected '}' at end of input
   20 |   }
      |    ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected primary-expression before '%' token
    5 |  if (a < b%%b>c&&a>c){
      |            ^
a.cc:6:22: error: invalid operands of types 'const char [10]' and 'int' to binary 'operator&'
    6 |   printf("%d %d %d\n"&c,&a,&b);
      |          ~~~~~~~~~~~~^~
      |          |            |
      |          |            int
      |          const char [10]
a.cc:9:22: error: invalid operands of types 'const char [10]' and 'int' to binary 'operator&'
    9 |   printf("%d %d %d\n"&a,&c,&b);
      |          ~~~~~~~~~~~~^~
      |          |            |
      |          |            int
      |          const char [10]
a.cc:12:22: error: invalid operands of types 'const char [10]' and 'int' to binary 'operator&'
   12 |   printf("%d %d %d\n"&b,&a,&c);
      |          ~~~~~~~~~~~~^~
      |          |            |
      |          |            int
      |          const char [10]
a.cc:15:23: error: expected primary-expression before '%' token
   15 |   printf("%d %d %d\n",%b,&c,&a);
      |                       ^
a.cc:18:22: error: invalid operands of types 'const char [10]' and 'int' to binary 'operator&'
   18 |   printf("%d %d %d\n"&c,&b,&a);
      |          ~~~~~~~~~~~~^~
      |          |            |
      |          |            int
      |          const char [10]
a.cc:20:18: error: lvalue required as left operand of assignment
   20 |  else if(a<b&&b>c&&a=c){
      |          ~~~~~~~~^~~
a.cc:21:22: error: invalid operands of types 'const char [10]' and 'int' to binary 'operator&'
   21 |   printf("%d %d %d\n"&a,&c,&b);
      |          ~~~~~~~~~~~~^~
      |          |            |
      |          |            int
      |          const char [10]
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected primary-expression before '%' token
    5 |  if (a < b%%b>c&&a>c){
      |            ^
a.cc:6:22: error: invalid operands of types 'const char [10]' and 'int' to binary 'operator&'
    6 |   printf("%d %d %d\n"&c,&a,&b);
      |          ~~~~~~~~~~~~^~
      |          |            |
      |          |            int
      |          const char [10]
a.cc:9:22: error: invalid operands of types 'const char [10]' and 'int' to binary 'operator&'
    9 |   printf("%d %d %d\n"&a,&c,&b);
      |          ~~~~~~~~~~~~^~
      |          |            |
      |          |            int
      |          const char [10]
a.cc:12:22: error: invalid operands of types 'const char [10]' and 'int' to binary 'operator&'
   12 |   printf("%d %d %d\n"&b,&a,&c);
      |          ~~~~~~~~~~~~^~
      |          |            |
      |          |            int
      |          const char [10]
a.cc:15:23: error: expected primary-expression before '%' token
   15 |   printf("%d %d %d\n",%b,&c,&a);
      |                       ^
a.cc:18:22: error: invalid operands of types 'const char [10]' and 'int' to binary 'operator&'
   18 |   printf("%d %d %d\n"&c,&b,&a);
      |          ~~~~~~~~~~~~^~
      |          |            |
      |          |            int
      |          const char [10]
a.cc:20:18: error: lvalue required as left operand of assignment
   20 |  else if(a<b&&b>c&&a=c){
      |          ~~~~~~~~^~~
a.cc:21:22: error: invalid operands of types 'const char [10]' and 'int' to binary 'operator&'
   21 |   printf("%d %d %d\n"&a,&c,&b);
      |          ~~~~~~~~~~~~^~
      |          |            |
      |          |            int
      |          const char [10]
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected primary-expression before '%' token
    5 |  if (a < b%%b>c&&a>c){
      |            ^
a.cc:6:22: error: invalid operands of types 'const char [10]' and 'int' to binary 'operator&'
    6 |   printf("%d %d %d\n"&c,&a,&b);
      |          ~~~~~~~~~~~~^~
      |          |            |
      |          |            int
      |          const char [10]
a.cc:9:22: error: invalid operands of types 'const char [10]' and 'int' to binary 'operator&'
    9 |   printf("%d %d %d\n"&a,&c,&b);
      |          ~~~~~~~~~~~~^~
      |          |            |
      |          |            int
      |          const char [10]
a.cc:12:22: error: invalid operands of types 'const char [10]' and 'int' to binary 'operator&'
   12 |   printf("%d %d %d\n"&b,&a,&c);
      |          ~~~~~~~~~~~~^~
      |          |            |
      |          |            int
      |          const char [10]
a.cc:15:23: error: expected primary-expression before '%' token
   15 |   printf("%d %d %d\n",%b,&c,&a);
      |                       ^
a.cc:18:22: error: invalid operands of types 'const char [10]' and 'int' to binary 'operator&'
   18 |   printf("%d %d %d\n"&c,&b,&a);
      |          ~~~~~~~~~~~~^~
      |          |            |
      |          |            int
      |          const char [10]
a.cc:20:18: error: lvalue required as left operand of assignment
   20 |  else if(a<b&&b>c&&a=c){
      |          ~~~~~~~~^~~
a.cc:21:22: error: invalid operands of types 'const char [10]' and 'int' to binary 'operator&'
   21 |   printf("%d %d %d\n"&a,&c,&b);
      |          ~~~~~~~~~~~~^~
      |          |            |
      |          |            int
      |          const char [10]
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected primary-expression before '%' token
    5 |  if (a < b%%b>c&&a>c){
      |            ^
a.cc:20:18: error: lvalue required as left operand of assignment
   20 |  else if(a<b&&b>c&&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&&a>c){
  printf("%d %d %d\n",c,a,b);
   }
 else if(a<b&&b>c&&a<c){
  printf("%d %d %d\n",a,c,b);
  }
 else if(a>b&&b<c&&a<c){
  printf("%d %d %d\n",b,a,c);
  }
 else if(a>b&&b<c&&a>c){
  printf("%d %d %d\n",b,c,a);
  }
 else if(a>b&&b>c&&a>c){
  printf("%d %d %d\n",c,b,a);
  }
 else if(a<b&&b>c&&a=c){
  printf("%d %d %d\n",a,c,b);
  }
 else {
printf("%d%d%d\n",a,b,c);
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:18: error: lvalue required as left operand of assignment
   20 |  else if(a<b&&b>c&&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&&a>c){
  printf("%d %d %d\n",c,a,b);
   }
 else if(a<b&&b>c&&a<c){
  printf("%d %d %d\n",a,c,b);
  }
 else if(a>b&&b<c&&a<c){
  printf("%d %d %d\n",b,a,c);
  }
 else if(a>b&&b<c&&a>c){
  printf("%d %d %d\n",b,c,a);
  }
 else if(a>b&&b>c&&a>c){
  printf("%d %d %d\n",c,b,a);
  }
 else if(a<b&&b>c){
  printf("%d %d %d\n",a,c,b);
  }
 else if(a>c&&a>b){
  printf("%d %d %d\n",b,c,a) 
  }
 else {
printf("%d %d %d\n",a,b,c);
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:29: error: expected ';' before '}' token
   24 |   printf("%d %d %d\n",b,c,a)
      |                             ^
      |                             ;
   25 |   }
      |   ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:28:18: error: expected '}' at end of input
   28 |         return 0;
      |                  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:25: error: invalid operands of types 'const char [9]' and 'int' to binary 'operator&'
    4 |         scanf("%d %d %d"&a,&b,&c);
      |               ~~~~~~~~~~^~
      |               |          |
      |               |          int
      |               const char [9]
a.cc:10:32: error: unable to find string literal operator 'operator""a' with 'const char [10]', 'long unsigned int' arguments
   10 |                         printf("%d %d %d\n"a,c,b);
      |                                ^~~~~~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:25: error: invalid operands of types 'const char [9]' and 'int' to binary 'operator&'
    4 |         scanf("%d %d %d"&a,&b,&c);
      |               ~~~~~~~~~~^~
      |               |          |
      |               |          int
      |               const char [9]
Language: C++

#include <stdio.h>

int main (void){

int a=0;
int b=0;
int c=0;

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

if(a<b && b<c){
printf("%d %d %d",a,b,c);
}
eise 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<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:
a.cc: In function 'int main()':
a.cc:14:1: error: 'eise' was not declared in this scope
   14 | eise if(a<c && c<b){
      | ^~~~
a.cc:18:1: error: 'else' without a previous 'if'
   18 | else if(b<a && a<c){
      | ^~~~
Language: C++

#include <iostream>
int main() {

int a,b,c;

std::cin >>a>>b>>c;

if(a<b){
if(b<c){
std::cout << a<<" "<<b<<" "<<c<<endl;
}else if(a<c){
std::cout << a<<" "<<c<<" "<<b<<endl;
}else{std::cout << c<<" "<<a<<" "<<b<<endl;}
}else{
if(b>c)
{std::cout << c<<" "<<b<<" "<<a<<endl;}
}else if(a<c){std::cout << b<<" "<<a<<" "<<c<<endl;}
else{std::cout << b<<" "<<c<<" "<<a<<endl;}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 | std::cout << a<<" "<<b<<" "<<c<<endl;
      |                                 ^~~~
      |                                 std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 | std::cout << a<<" "<<c<<" "<<b<<endl;
      |                                 ^~~~
      |                                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 | }else{std::cout << c<<" "<<a<<" "<<b<<endl;}
      |                                       ^~~~
      |                                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:16:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 | {std::cout << c<<" "<<b<<" "<<a<<endl;}
      |                                  ^~~~
      |                                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:17:2: error: 'else' without a previous 'if'
   17 | }else if(a<c){std::cout << b<<" "<<a<<" "<<c<<endl;}
      |  ^~~~
a.cc:17:47: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 | }else if(a<c){std::cout << b<<" "<<a<<" "<<c<<endl;}
      |                                               ^~~~
      |                                               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:18:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 | else{std::cout << b<<" "<<c<<" "<<a<<endl;}
      |                                      ^~~~
      |                                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
int main() {

int a,b,c;

std::cin >>a>>b>>c;

if(a<b){
if(b<c){
std::cout << a<<" "<<b<<" "<<c<<"\n";
}else if(a<c){
std::cout << a<<" "<<c<<" "<<b<<"\n";
}else{std::cout << c<<" "<<a<<" "<<b<<"\n";}
}else{
if(b>c)
{std::cout << c<<" "<<b<<" "<<a<<"\n";}
}else if(a<c){std::cout << b<<" "<<a<<" "<<c<<"\n";}
else{std::cout << b<<" "<<c<<" "<<a<<"\n";}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:2: error: 'else' without a previous 'if'
   17 | }else if(a<c){std::cout << b<<" "<<a<<" "<<c<<"\n";}
      |  ^~~~
Language: C++

#include <iostream>
int main() {

int a,b,c;

std::cin >>a>>b>>c;

if(a<b){
if(b<c){
std::cout << a<<" "<<b<<" "<<c<<"\n";
}else if(a<c){
std::cout << a<<" "<<c<<" "<<b<<"\n";
}else{std::cout << c<<" "<<a<<" "<<b<<"\n";}
}
else{
if(b>c)
{std::cout << c<<" "<<b<<" "<<a<<"\n";}
}else if(a<c){std::cout << b<<" "<<a<<" "<<c<<"\n";}
else{std::cout << b<<" "<<c<<" "<<a<<"\n";}}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:2: error: 'else' without a previous 'if'
   18 | }else if(a<c){std::cout << b<<" "<<a<<" "<<c<<"\n";}
      |  ^~~~
a.cc: At global scope:
a.cc:20:1: error: expected unqualified-id before 'return'
   20 | return 0;
      | ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

#include <stdio.h>

int main(void)
{
    int array[3];
    int i;
    int temp;

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

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'j' was not declared in this scope
   13 |         for(j = 1; i + j <= 2; j ++)
      |             ^
Language: C++

#include <iostream>
int main(){
int a[3];

std::cin >> a[0] >> a[1] >> a[2];
for(int i=3;i>0;i--){
 for(int j=0;j<i-1;i++){
    if a[j]<a[j+1]
    swap(a[j],a[j+1]);
 }
}
std;:cout << a[0] << " " << a[1] << " " << a[2] <<"\n";

return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected '(' before 'a'
    8 |     if a[j]<a[j+1]
      |        ^
      |        (
a.cc:12:4: error: expected primary-expression before ';' token
   12 | std;:cout << a[0] << " " << a[1] << " " << a[2] <<"\n";
      |    ^
a.cc:12:5: error: expected primary-expression before ':' token
   12 | std;:cout << a[0] << " " << a[1] << " " << a[2] <<"\n";
      |     ^
Language: C++

#include <iostream>

int main(){
int a[3];

std::cin >> a[0] >> a[1] >> a[2];
for(int i=3;i>0;i--){
 for(int j=0;j<i-1;i++){
    if a[j]<a[j+1]
    swap(a[j],a[j+1]);
 }
}
std;:cout << a[0] << " " << a[1] << " " << a[2] <<"\n";

return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected '(' before 'a'
    9 |     if a[j]<a[j+1]
      |        ^
      |        (
a.cc:13:4: error: expected primary-expression before ';' token
   13 | std;:cout << a[0] << " " << a[1] << " " << a[2] <<"\n";
      |    ^
a.cc:13:5: error: expected primary-expression before ':' token
   13 | std;:cout << a[0] << " " << a[1] << " " << a[2] <<"\n";
      |     ^
Language: C++

#include <iostream>

int main(){
int a[3];

std::cin >> a[0] >> a[1] >> a[2];
for(int i=3;i>0;i--){
 for(int j=0;j<i-1;i++){
    if (a[j]<a[j+1])
    swap(a[j],a[j+1]);
 }
}
std;:cout << a[0] << " " << a[1] << " " << a[2] <<"\n";

return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'swap' was not declared in this scope
   10 |     swap(a[j],a[j+1]);
      |     ^~~~
a.cc:10:5: note: suggested alternatives:
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
                 from /usr/include/c++/14/string:68,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
In file included from /usr/include/c++/14/bits/exception_ptr.h:41,
                 from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/ios:41:
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
a.cc:13:4: error: expected primary-expression before ';' token
   13 | std;:cout << a[0] << " " << a[1] << " " << a[2] <<"\n";
      |    ^
a.cc:13:5: error: expected primary-expression before ':' token
   13 | std;:cout << a[0] << " " << a[1] << " " << a[2] <<"\n";
      |     ^
Language: C++

#include <iostream>
#include <algorithm>

int main(){
int a[3];

std::cin >> a[0] >> a[1] >> a[2];
for(int i=3;i>0;i--){
 for(int j=0;j<i-1;i++){
    if (a[j]<a[j+1])
    swap(a[j],a[j+1]);
 }
}
std;:cout << a[0] << " " << a[1] << " " << a[2] <<"\n";

return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'swap' was not declared in this scope
   11 |     swap(a[j],a[j+1]);
      |     ^~~~
a.cc:11:5: note: suggested alternatives:
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
                 from /usr/include/c++/14/string:68,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/tuple:2823:5: note:   'std::swap'
 2823 |     swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete;
      |     ^~~~
In file included from /usr/include/c++/14/bits/exception_ptr.h:41,
                 from /usr/include/c++/14/exception:166,
                 from /usr/include/c++/14/ios:41:
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
/usr/include/c++/14/bits/exception_ptr.h:229:5: note:   'std::__exception_ptr::swap'
  229 |     swap(exception_ptr& __lhs, exception_ptr& __rhs)
      |     ^~~~
a.cc:14:4: error: expected primary-expression before ';' token
   14 | std;:cout << a[0] << " " << a[1] << " " << a[2] <<"\n";
      |    ^
a.cc:14:5: error: expected primary-expression before ':' token
   14 | std;:cout << a[0] << " " << a[1] << " " << a[2] <<"\n";
      |     ^
Language: C++

#include <iostream>


int main(){
int a[3];
int d;
std::cin >> a[0] >> a[1] >> a[2];
for(int i=3;i>0;i--){
 for(int j=0;j<i-1;i++){
    if (a[j]>a[j+1])
     d = a[j];
     a[j] = a[j+1];
     a[j+1] = d;
 }
}
std;:cout << a[0] << " " << a[1] << " " << a[2] <<"\n";

return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:4: error: expected primary-expression before ';' token
   16 | std;:cout << a[0] << " " << a[1] << " " << a[2] <<"\n";
      |    ^
a.cc:16:5: error: expected primary-expression before ':' token
   16 | std;:cout << a[0] << " " << a[1] << " " << a[2] <<"\n";
      |     ^
Language: C++

#include <stdio.h>
#include <iostream>
using namespace std;

int main(void)
{		
	int ary[3];
	for (int i = 0; i < 3; i++) {
		cin >> ary[i];
	}
	
	sort(ary, 3);
	
	cout << ary[0] << " " << ary[1] << " " << ary[2] << endl;
	
	return 0;
}

void sort(int ary[], int n)
{
	for (int i = 1; i < n; i++) {
		for (int j = 0; j < i; j++) {
			if (ary[i] < ary[i-j]) {
				int temp = ary[i];
				for (k = i; k > j; k--) {
					ary[k] = ary[k-1];
				}
				ary[j] = temp;
				break;
			}
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   12 |         sort(ary, 3);
      |         ^~~~
      |         short
a.cc: In function 'void sort(int*, int)':
a.cc:25:38: error: 'k' was not declared in this scope
   25 |                                 for (k = i; k > j; k--) {
      |                                      ^
Language: C++

#include <stdio.h>
#include <iostream>
using namespace std;

void sort(int ary[], int n);

int main(void)
{		
	int ary[3];
	for (int i = 0; i < 3; i++) {
		cin >> ary[i];
	}
	
	sort(ary, 3);
	
	cout << ary[0] << " " << ary[1] << " " << ary[2] << endl;
	
	return 0;
}

void sort(int ary[], int n)
{
	for (int i = 1; i < n; i++) {
		for (int j = 0; j < i; j++) {
			if (ary[i] < ary[i-j]) {
				int temp = ary[i];
				for (k = i; k > j; k--) {
					ary[k] = ary[k-1];
				}
				ary[j] = temp;
				break;
			}
		}
	}
}

Compiler output:
a.cc: In function 'void sort(int*, int)':
a.cc:27:38: error: 'k' was not declared in this scope
   27 |                                 for (k = i; k > j; k--) {
      |                                      ^
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=;
}
if(b>c){
t=b;
b=c;
c=t;
}
if(a>b){
t=a;
a=b;
b=t;
}
cout <<a <<" " <<b <<" " <<c <<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected primary-expression before ';' token
   11 | b=;
      |   ^
Language: C++

#include <iostream>
using namespace std;
int main(){

int a[3];
cin>>a[0]>>b[1]>>c[2];
sort(a,a+3);
cout<<a[0]<<b[1]<<c[2];

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'b' was not declared in this scope
    6 | cin>>a[0]>>b[1]>>c[2];
      |            ^
a.cc:6:18: error: 'c' was not declared in this scope
    6 | cin>>a[0]>>b[1]>>c[2];
      |                  ^
a.cc:7:1: error: 'sort' was not declared in this scope; did you mean 'short'?
    7 | sort(a,a+3);
      | ^~~~
      | short
Language: C++

#include <stdio.h>
  
int main(void)
{
 
  int i, j, tmp;
 
  /* ??°??????????´????????????? */
  int number[100];
 
  /* ??°???????????°?????\??? */
  int total= 3
 
  for (i=0; i<total; ++i)
    scanf("%d", &number[i]);
 
  /* ??°???????????????????????? */
  for (i=0; i<total; ++i) {
    for (j=i+1; j<total; ++j) {
      if (number[i] > number[j]) {
        tmp =  number[i];
        number[i] = number[j];
        number[j] = tmp;
      }
    }
  }
 
  /* ???????????????????????°???????????? */
  printf("???????????????????????°???\n");
  for (i=0; i<total; ++i)
    printf("%d\n", number[i]);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: expected ',' or ';' before 'for'
   14 |   for (i=0; i<total; ++i)
      |   ^~~
a.cc:14:25: error: expected ';' before ')' token
   14 |   for (i=0; i<total; ++i)
      |                         ^
      |                         ;
Language: C++

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

int main(){
    int a;
    for(int = 0; i < 3; i++){
        cin >> a[i];
    }
    cout << sort(a.begin(),a.end()) << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected unqualified-id before '=' token
    6 |     for(int = 0; i < 3; i++){
      |             ^
a.cc:6:12: error: expected ';' before '=' token
    6 |     for(int = 0; i < 3; i++){
      |            ^~
      |            ;
a.cc:6:13: error: expected primary-expression before '=' token
    6 |     for(int = 0; i < 3; i++){
      |             ^
a.cc:6:18: error: 'i' was not declared in this scope
    6 |     for(int = 0; i < 3; i++){
      |                  ^
a.cc:6:23: error: expected ')' before ';' token
    6 |     for(int = 0; i < 3; i++){
      |        ~              ^
      |                       )
a.cc:6:25: error: 'i' was not declared in this scope
    6 |     for(int = 0; i < 3; i++){
      |                         ^
a.cc:9:20: error: request for member 'begin' in 'a', which is of non-class type 'int'
    9 |     cout << sort(a.begin(),a.end()) << endl;
      |                    ^~~~~
a.cc:9:30: error: request for member 'end' in 'a', which is of non-class type 'int'
    9 |     cout << sort(a.begin(),a.end()) << endl;
      |                              ^~~
Language: C++

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

int main(){
    int a;
    for(int = 0; i < 3; i++){
        cin >> a[i];
    }
    sort(a.begin(),a.end());
    cout << a << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected unqualified-id before '=' token
    6 |     for(int = 0; i < 3; i++){
      |             ^
a.cc:6:12: error: expected ';' before '=' token
    6 |     for(int = 0; i < 3; i++){
      |            ^~
      |            ;
a.cc:6:13: error: expected primary-expression before '=' token
    6 |     for(int = 0; i < 3; i++){
      |             ^
a.cc:6:18: error: 'i' was not declared in this scope
    6 |     for(int = 0; i < 3; i++){
      |                  ^
a.cc:6:23: error: expected ')' before ';' token
    6 |     for(int = 0; i < 3; i++){
      |        ~              ^
      |                       )
a.cc:6:25: error: 'i' was not declared in this scope
    6 |     for(int = 0; i < 3; i++){
      |                         ^
a.cc:9:12: error: request for member 'begin' in 'a', which is of non-class type 'int'
    9 |     sort(a.begin(),a.end());
      |            ^~~~~
a.cc:9:22: error: request for member 'end' in 'a', which is of non-class type 'int'
    9 |     sort(a.begin(),a.end());
      |                      ^~~
Language: C++

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

int main(){
    int a;
    for(int = 0; i < 4; i++){
        cin >> a[i];
    }
    sort(a.begin(),a.end());
    cout << a << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected unqualified-id before '=' token
    6 |     for(int = 0; i < 4; i++){
      |             ^
a.cc:6:12: error: expected ';' before '=' token
    6 |     for(int = 0; i < 4; i++){
      |            ^~
      |            ;
a.cc:6:13: error: expected primary-expression before '=' token
    6 |     for(int = 0; i < 4; i++){
      |             ^
a.cc:6:18: error: 'i' was not declared in this scope
    6 |     for(int = 0; i < 4; i++){
      |                  ^
a.cc:6:23: error: expected ')' before ';' token
    6 |     for(int = 0; i < 4; i++){
      |        ~              ^
      |                       )
a.cc:6:25: error: 'i' was not declared in this scope
    6 |     for(int = 0; i < 4; i++){
      |                         ^
a.cc:9:12: error: request for member 'begin' in 'a', which is of non-class type 'int'
    9 |     sort(a.begin(),a.end());
      |            ^~~~~
a.cc:9:22: error: request for member 'end' in 'a', which is of non-class type 'int'
    9 |     sort(a.begin(),a.end());
      |                      ^~~
Language: C++

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

int main(){
    int a;
    for(int = 0; i < 3; i++){
        cin >> a[i];
    }
    sort(a.begin(),a.end());
    cout << a[0] << " " << a[1] << " " << a[2] << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected unqualified-id before '=' token
    6 |     for(int = 0; i < 3; i++){
      |             ^
a.cc:6:12: error: expected ';' before '=' token
    6 |     for(int = 0; i < 3; i++){
      |            ^~
      |            ;
a.cc:6:13: error: expected primary-expression before '=' token
    6 |     for(int = 0; i < 3; i++){
      |             ^
a.cc:6:18: error: 'i' was not declared in this scope
    6 |     for(int = 0; i < 3; i++){
      |                  ^
a.cc:6:23: error: expected ')' before ';' token
    6 |     for(int = 0; i < 3; i++){
      |        ~              ^
      |                       )
a.cc:6:25: error: 'i' was not declared in this scope
    6 |     for(int = 0; i < 3; i++){
      |                         ^
a.cc:9:12: error: request for member 'begin' in 'a', which is of non-class type 'int'
    9 |     sort(a.begin(),a.end());
      |            ^~~~~
a.cc:9:22: error: request for member 'end' in 'a', which is of non-class type 'int'
    9 |     sort(a.begin(),a.end());
      |                      ^~~
a.cc:10:14: error: invalid types 'int[int]' for array subscript
   10 |     cout << a[0] << " " << a[1] << " " << a[2] << endl;
      |              ^
a.cc:10:29: error: invalid types 'int[int]' for array subscript
   10 |     cout << a[0] << " " << a[1] << " " << a[2] << endl;
      |                             ^
a.cc:10:44: error: invalid types 'int[int]' for array subscript
   10 |     cout << a[0] << " " << a[1] << " " << a[2] << endl;
      |                                            ^
Language: C++

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

int main(){
    int a[];
    for(int = 0; i < 3; i++){
        cin >> a[i];
    }
    sort(a.begin(),a.end());
    cout << a[0] << " " << a[1] << " " << a[2] << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: storage size of 'a' isn't known
    5 |     int a[];
      |         ^
a.cc:6:13: error: expected unqualified-id before '=' token
    6 |     for(int = 0; i < 3; i++){
      |             ^
a.cc:6:12: error: expected ';' before '=' token
    6 |     for(int = 0; i < 3; i++){
      |            ^~
      |            ;
a.cc:6:13: error: expected primary-expression before '=' token
    6 |     for(int = 0; i < 3; i++){
      |             ^
a.cc:6:18: error: 'i' was not declared in this scope
    6 |     for(int = 0; i < 3; i++){
      |                  ^
a.cc:6:23: error: expected ')' before ';' token
    6 |     for(int = 0; i < 3; i++){
      |        ~              ^
      |                       )
a.cc:6:25: error: 'i' was not declared in this scope
    6 |     for(int = 0; i < 3; i++){
      |                         ^
Language: C++

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

int main(){
    int a,b,c,d;
    cin >> a >> b >> c;

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

    cout << a << " " << b << " " << c << edl;
    
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:42: error: 'edl' was not declared in this scope
   24 |     cout << a << " " << b << " " << c << edl;
      |                                          ^~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main() {
    vector<int> v(3);
    for(int& d : v)cin >> d;
    sort(v.begin(), v.end());

    for(vecor<int>::iterator ite = v.begin(); ite != v.end(); ite++){
        cout << *ite;
        if(ite!=v.end()-1) cout << " ";
    }
    cout << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'vecor' was not declared in this scope
   11 |     for(vecor<int>::iterator ite = v.begin(); ite != v.end(); ite++){
      |         ^~~~~
a.cc:11:15: error: expected primary-expression before 'int'
   11 |     for(vecor<int>::iterator ite = v.begin(); ite != v.end(); ite++){
      |               ^~~
a.cc:11:47: error: 'ite' was not declared in this scope
   11 |     for(vecor<int>::iterator ite = v.begin(); ite != v.end(); ite++){
      |                                               ^~~
Language: C++

include<stdio.h>

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
 
int main(){
    int a[3];
    for(int i=0; i<N; ++i) std::cin>> a[i];
 
    sort(A,A+3);
 
    for(int i=0; i<N-1; ++i) std::cout << a[i] <<" ";
    std::cout << a[N-1] <<"\n";
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: 'N' was not declared in this scope
    6 |     for(int i=0; i<N; ++i) std::cin>> a[i];
      |                    ^
a.cc:8:10: error: 'A' was not declared in this scope
    8 |     sort(A,A+3);
      |          ^
a.cc:8:5: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    8 |     sort(A,A+3);
      |     ^~~~
      |     std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:2:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
a.cc:10:20: error: 'N' was not declared in this scope
   10 |     for(int i=0; i<N-1; ++i) std::cout << a[i] <<" ";
      |                    ^
a.cc:11:20: error: 'N' was not declared in this scope
   11 |     std::cout << a[N-1] <<"\n";
      |                    ^
Language: C++

#include<iostream>
#include<algorithm>
  
int main(){
    int a[3];
    for(int i=0; i<N; ++i) std::cin>> a[i];
  
    sort(a,a+3);
  
    for(int i=0; i<N-1; ++i) std::cout << a[i] <<" ";
    std::cout << a[N-1] <<"\n";
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: 'N' was not declared in this scope
    6 |     for(int i=0; i<N; ++i) std::cin>> a[i];
      |                    ^
a.cc:8:5: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    8 |     sort(a,a+3);
      |     ^~~~
      |     std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:2:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
a.cc:10:20: error: 'N' was not declared in this scope
   10 |     for(int i=0; i<N-1; ++i) std::cout << a[i] <<" ";
      |                    ^
a.cc:11:20: error: 'N' was not declared in this scope
   11 |     std::cout << a[N-1] <<"\n";
      |                    ^