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

using namespace std;
int main(){
    int a,b,c,tmp;
    cin >> 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;
    }
   cout << a << " " << b << " " << c << endl;
   return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> a >> b >> c;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:20:4: error: 'cout' was not declared in this scope
   20 |    cout << a << " " << b << " " << c << endl;
      |    ^~~~
a.cc:20:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:41: error: 'endl' was not declared in this scope
   20 |    cout << a << " " << b << " " << c << endl;
      |                                         ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: expected initializer before 'b'
    4 |     int a b c;
      |           ^
a.cc:5:26: error: 'a' was not declared in this scope
    5 |     scanf("%d %d %d\n", &a, &b, &c);
      |                          ^
a.cc:5:30: error: 'b' was not declared in this scope
    5 |     scanf("%d %d %d\n", &a, &b, &c);
      |                              ^
a.cc:5:34: error: 'c' was not declared in this scope
    5 |     scanf("%d %d %d\n", &a, &b, &c);
      |                                  ^
Language: C++

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



Compiler output:
a.cc:15:1: error: extended character 　 is not valid in an identifier
   15 | 　　　　printf("b c a\n");
      | ^
a.cc:15:1: error: extended character 　 is not valid in an identifier
a.cc:15:1: error: extended character 　 is not valid in an identifier
a.cc:15:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:15:1: error: '\U00003000\U00003000\U00003000\U00003000printf' was not declared in this scope
   15 | 　　　　printf("b c a\n");
      | ^~~~~~~~~~~~~~
Language: C++

#include <iostream>

using namespace std;

void swap(int& x, int& y){
    int tmp;
    tmp = x;
    x = y;
    y = tmp;
}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:24:21: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<'
   24 |     cout << a < " " << b << " " << c << endl;
      |                 ~~~ ^~ ~
      |                 |      |
      |                 |      int
      |                 const char [2]
Language: C++

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

int main () {
int a, b, c;
cin >> a >> b >> c;
vector<int>vec = {a, b, c};
sort(vet.begin(), vet.end());
for (int t = 0; t < vet.size(); t++) {
cout << vec.at(t) << " ";
} cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 'vet' was not declared in this scope; did you mean 'vec'?
   10 | sort(vet.begin(), vet.end());
      |      ^~~
      |      vec
Language: C++

#include<iostream>
#include<stdio.h>

void Number_3 (int a, int b, int c);

int main(){
    int a,b,c;
    
    scanf("%d %d %d",&a,&b.&c);
    Number_3(a,b,c);
    
    return 0;
}

void Number_3(int a, int b, int c){
    if(a<b && b<c) printf("%d %d %d",a,b,c);
    else if(a<c && c<b) printf("%d %d %d",a,c,b);
    else if(b<a && a<c) printf("%d %d %d",b,a,c);
    else if(b<c && c<a) printf("%d %d %d",b,c,a);
    else if(c<a && a<b) printf("%d %d %d",c,a,b);
    else if(c<b && b<a) printf("%d %d %d",c,b,a);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: expected unqualified-id before '&' token
    9 |     scanf("%d %d %d",&a,&b.&c);
      |                            ^
Language: C++

a, b, c = map(int, input().split())

def print_num(a, b, c):
    print(str(a) + ' ' + str(b) + ' ' + str(c))

if a <= b and b <= c:
    print_num(a, b, c)
if a <= c and c <= b:
    print_num(a, c, b)
if b <= a and a <= c:
    print_num(b, a, c)
if b <= c and c <= a:
    print_num(b, c, a)
if c <= a and a <= b:
    print_num(c, a, b)
if c <= b and b <= a:
    print_num(c, b, a)



Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b, c = map(int, input().split())
      | ^
Language: C++

array = list(map(int, input().split()))
num = 3
def print_array():
    for i in range(num):
        if i != num-1:
            print(array[i], end=' ')
        else:
            print(array[i])
# insertion sort
for i in range(num):
    insert = array[i]
    j = 0
    while array[j] < insert:
        j+=1
    for k in range(i, j, -1):
        array[k] = array[k - 1]
    array[j] = insert
print_array()



Compiler output:
a.cc:9:3: error: invalid preprocessing directive #insertion
    9 | # insertion sort
      |   ^~~~~~~~~
a.cc:1:1: error: 'array' does not name a type
    1 | array = list(map(int, input().split()))
      | ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{  int i,t,j;
int a[3];
for(i=0;i<3;i++)
{
    cin>>a[i];
}
   for(i=0;i<3;i++)
   {
    for(j=i+1;j<3;j++)
    {
      if(a[i]>a[j])
      {
          t=a[i];
          a[i]=a[j];
          a[j]=t;
      }
    }
   }
   for(i=0;i<3;i++)
   {
       cout<<a[i]<<' '<<;
   }
cout<<endl;

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:24:25: error: expected primary-expression before ';' token
   24 |        cout<<a[i]<<' '<<;
      |                         ^
Language: C++

#include<iostream>
using namespace std;
int main()
{  int i,t,j;
int a[3];
for(i=0;i<3;i++)
{
    cin>>a[i];
}
   for(i=0;i<3;i++)
   {
    for(j=i+1;j<3;j++)
    {
      if(a[i]>a[j])
      {
          t=a[i];
          a[i]=a[j];
          a[j]=t;
      }
    }
   }
   for(i=0;i<3;i++)
   {
       cout<<a[i]<<' '<<;
   }

  cout<<endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:24:25: error: expected primary-expression before ';' token
   24 |        cout<<a[i]<<' '<<;
      |                         ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int a[4],i;
  for(i=0;i<3;i++){
    cin >> a[i];
  }
  sort(a,a+3);
  for(i=0;i<3;i++){
    cout << a[i];
    if(i<2){
      cout << " ";
    }
  }
  cout << '\n';
  return 0;
}
  



Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    9 |   sort(a,a+3);
      |   ^~~~
      |   short
Language: C++

#include<iostream>
int main() {
	int A, B, C;
	if (A < B && B < C) {
		std::cout << A << "<" << B << "<" << C << std::endl;
	}
	if (A < C && C < B) {
		std::cout << A << "<" << C << "<" << B << std::endl;
	}
	if (B < A && A < C) {
		std::cout << B << "<" << A << "<" << C << std::endl;
	if (C < A && A < B) {
		std::cout << C << "<" << A << "<" << B << std::endl;
	}
	if (B < C && C < A) {
		std::cout << B << "<" << C << "<" << A << std::endl;
	}
	if (C < B && B < A) {
		std::cout << C << "<" << B << "<" << A << std::endl;
	}
}


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

#include <stdio.h>

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


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

#include <iostream>
using namespace std;
int main()
{
 int a,b,c,m;
 cin>>a>>b>>c;
 if(a>b)
 {
 m=a;
 a=b;
 b=m;
 }
 if(a>c)
 {
 m=a;
 a=c;
 c=m;
 }
 if(b>c)
 {
 m=b; 
 b=c; 
 c=m;
}


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

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


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


Compiler output:
a.cc:18:18: error: stray '\' in program
   18 | printf("%d %d %d"\n,a,b,c)
      |                  ^
a.cc: In function 'int main()':
a.cc:18:18: error: expected ')' before 'n'
   18 | printf("%d %d %d"\n,a,b,c)
      |       ~          ^~
      |                  )
a.cc:18:27: error: expected ';' before '}' token
   18 | printf("%d %d %d"\n,a,b,c)
      |                           ^
      |                           ;
   19 | }
      | ~
Language: C++

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


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


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

#include <iostream>

using namespace std;

int main(){
    const int num=3;
    
    int x[num];
    cin >> x[0] >> x[1] >> x[2];
    
    for(int i=num-1; i>0; --i)
        for(int j=0; j<i; ++j)
        {
            if(x[j]>x[j+1]){
                int temp = x[j];
                x[j] = x[j+1];
                x[j+1] = temp
            }
        }
    
    
    cout << x[0] <<" "<< x[1] <<" "<< x[2] << endl;
    
    
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:30: error: expected ';' before '}' token
   17 |                 x[j+1] = temp
      |                              ^
      |                              ;
   18 |             }
      |             ~
Language: C++

#include <stdio.h>

using namespace std;

int main(){
	int nya,nyu,nyo;
	scanf("%d %d %d",&a,&b,&c);
	if(a < b && b < c)
		printf("Yes\n");
	else{
		printf("No\n");
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: 'a' was not declared in this scope
    7 |         scanf("%d %d %d",&a,&b,&c);
      |                           ^
a.cc:7:30: error: 'b' was not declared in this scope
    7 |         scanf("%d %d %d",&a,&b,&c);
      |                              ^
a.cc:7:33: error: 'c' was not declared in this scope
    7 |         scanf("%d %d %d",&a,&b,&c);
      |                                 ^
Language: C++

#include <stdio.h>

using namespace std;

int main(){
	int nyo,nyu,nyo;
	scanf("%d %d %d",&nyo,&nyu,&nyo);
	if(nyo > nyu && nyu > nyo)
		printf("Yes\n");
	else{
		printf("No\n");
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: redeclaration of 'int nyo'
    6 |         int nyo,nyu,nyo;
      |                     ^~~
a.cc:6:13: note: 'int nyo' previously declared here
    6 |         int nyo,nyu,nyo;
      |             ^~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int max(int a, int b) {
    return a > b ? a : b;
}
int min(int a, int b) {
    return a < b ? a : b;
}

int main() {
    int x, y, z;
    cin >> x >> y >> z;
    int r1 = max(x, y)
    r1 = max(r1, z);
    cout << r1 << " ";
    
    
    int r3 = min(x, y);
    r3 = min(r3, z);
    
    cout << x+y+z - r1 - r3 << " ";
    cout << r3;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: expected ',' or ';' before 'r1'
   16 |     r1 = max(r1, z);
      |     ^~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int max(int a, int b) {
    return a > b ? a : b;
}
int min(int a, int b) {
    return a < b ? a : b;
}

int main() {
    int x, y, z;
    cin >> x >> y >> z;
    
    int r1 = max(x, y);
    r1 = max(r1, z);
    
    int r3 = min(x, y);
    r3 = min(r3, z);
    
    int r2 = x + y + z - r1 - r3;
    
    cout << r3 << " ";
    cout <<  << " ";
    cout << r1;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:14: error: expected primary-expression before '<<' token
   25 |     cout <<  << " ";
      |              ^~
Language: C++




int main(){
    int a,b,c,d;
    printf("%d %d %d",&a,&b,&c);
    if (a<c<b){
    b=d;
    c=b;
    d=c;
    }
    if (b<a<c){
        a=d;
        b=a;
        d=a;
    }
}




Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'printf' was not declared in this scope
    6 |     printf("%d %d %d",&a,&b,&c);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 |
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=a;
        a=c;
        c=d;
    }
    if (a>b){
        d=b;
        b=c;
        c=d;
    }
        printf("%d %d %d",a,b,c);
        return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before '}' token
    9 |         b=d
      |            ^
      |            ;
   10 |     }
      |     ~
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=a;
        a=c;
        c=d;
    }
    if (a>b){
        d=b;
        b=c;
        c=d;
    }
        printf("%d %d %d\n",a,b,c);
        return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before '}' token
    8 |         b=d
      |            ^
      |            ;
    9 |     }
      |     ~
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=a;
        a=c;
        c=d;
    }
    if (b>c){
        d=b;
        b=c;
        c=d;
    }
        printf("%d %d %d\n",a,b,c);
        return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before '}' token
    8 |         b=d
      |            ^
      |            ;
    9 |     }
      |     ~
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <algorithm>
using namespace std;

int main(void)
{
	int a[3];
	cin >> a[0] >> a[1] >> a[2];
	sort(a, a + 3);
	cout << a[0] << " " << a[1] << " " << a[2] << "\n";
	return 0;



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

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


Compiler output:
a.cc:2:1: error: ISO C++ forbids declaration of 'swap' with no type [-fpermissive]
    2 | swap(int *a,int *b){
      | ^~~~
a.cc: In function 'int swap(int*, int*)':
a.cc:6:1: warning: no return statement in function returning non-void [-Wreturn-type]
    6 | }
      | ^
a.cc: In function 'int main()':
a.cc:11:21: error: 'j' was not declared in this scope
   11 |                 for(j=2;j>i;j--){
      |                     ^
Language: C++

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


Compiler output:
a.cc:2:1: error: ISO C++ forbids declaration of 'swap' with no type [-fpermissive]
    2 | swap(int *a,int *b){
      | ^~~~
a.cc: In function 'int swap(int*, int*)':
a.cc:6:1: warning: no return statement in function returning non-void [-Wreturn-type]
    6 | }
      | ^
a.cc: In function 'int main()':
a.cc:13:41: error: invalid conversion from 'int' to 'int*' [-fpermissive]
   13 |                                 swap(a[j],a[j-1]);
      |                                      ~~~^
      |                                         |
      |                                         int
a.cc:2:11: note:   initializing argument 1 of 'int swap(int*, int*)'
    2 | swap(int *a,int *b){
      |      ~~~~~^
a.cc:13:48: error: invalid conversion from 'int' to 'int*' [-fpermissive]
   13 |                                 swap(a[j],a[j-1]);
      |                                           ~~~~~^
      |                                                |
      |                                                int
a.cc:2:18: note:   initializing argument 2 of 'int swap(int*, int*)'
    2 | swap(int *a,int *b){
      |             ~~~~~^
Language: C++

#include <iostream>
#include <algorithm>

int main() {
    int a[ 3 ] ;
    std::cin >> a[ 0 ] >> a[ 1 ] >> a[ 2 ] ;
    std::sort( a , a + 3)
    
    std::cout << a[ 0 ] << " " << a[ 1 ] << " " << a[ 2 ] << std::endl ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected ';' before 'std'
    7 |     std::sort( a , a + 3)
      |                          ^
      |                          ;
    8 | 
    9 |     std::cout << a[ 0 ] << " " << a[ 1 ] << " " << a[ 2 ] << std::endl ;
      |     ~~~
Language: C++

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

int main() {
    vector<int> a
    
    cin >> a[0] >> a[1] >> a[2];
    
    sort(a.begin(), a.end());
    
    cout << a[0] << " " << b[1] << " " << c[2] << endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'cin'
    7 |     cin >> a[0] >> a[1] >> a[2];
      |     ^~~
a.cc:9:10: error: 'a' was not declared in this scope
    9 |     sort(a.begin(), a.end());
      |          ^
a.cc:11:28: error: 'b' was not declared in this scope
   11 |     cout << a[0] << " " << b[1] << " " << c[2] << endl;
      |                            ^
a.cc:11:43: error: 'c' was not declared in this scope
   11 |     cout << a[0] << " " << b[1] << " " << c[2] << endl;
      |                                           ^
Language: C++

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

int main() {
    vector<int> a
    
    cin >> a[0] >> a[1] >> a[2];
    
    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:7:5: error: expected initializer before 'cin'
    7 |     cin >> a[0] >> a[1] >> a[2];
      |     ^~~
a.cc:9:10: error: 'a' was not declared in this scope
    9 |     sort(a.begin(), a.end());
      |          ^
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before '}' token
    8 |          t=a,a=b,b=t
      |                     ^
      |                     ;
    9 |     }
      |     ~                
a.cc:11:21: error: expected ';' before '}' token
   11 |          t=b,b=c,c=t
      |                     ^
      |                     ;
   12 |     }
      |     ~                
a.cc:14:21: error: expected ';' before '}' token
   14 |          t=a,a=b,b=t
      |                     ^
      |                     ;
   15 |     }
      |     ~
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=t; 
    }
    if(b>c){
         t=b;b=c;c=t;
    }
    if(a>b){
         t=a;a=b;b=t; 
    }
    cout <<a<<" "<<b<<" "<<c<<endl;
    return 0;
}


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

#include <iostream>
using namespace std;

int main(){
int a,b,c=0;
a <=10000;
b <=10000;
c <=10000;

cin >> a >> b >> c ;

if(a<b&&b<c&&a<c){
cout << a << b << c;
}else if(a<b&&b>c&&a<c){
cout << a << c << b;
}else if(a>b&&b<c&&a<c){
cout << b << a << c;
}else if(a>b&&b<c&&a>c){
cout << b << c << a;
}else if(a>b&&b>c&&a>c){
cout << c << b << a;
}else if(a<b&&b>c&&a>c){
cout << c << a << b;
}else{
cout << a << b << c;

return 0;

}


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

#include <iostream> 
#include <array>
using namespace std;
int main(void)
{
	std::array<int,3> a;
	cin >> a[0] >> a[1] >> a[2];
	std::sort(a.begin, a.end);
	for (int i : a) {
		cout << i << " ";
	}
	cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
    8 |         std::sort(a.begin, a.end);
      |              ^~~~
      |              qsort
Language: C++

#include <iostream> 
#include <array>
using namespace std;
int main(void)
{
	std::array<int,3> a;
	cin >> a[0] >> a[1] >> a[2];
	std::sort(a.begin(), a.end());
	for (int i : a) {
		cout << i << " ";
	}
	cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
    8 |         std::sort(a.begin(), a.end());
      |              ^~~~
      |              qsort
Language: C++

three=input()
a=three.split()[0]
b=three.split()[1]
c=three.split()[2]

d=min(a,b)
e=max(a,b)

if c<d:
 print("{0} {1} {2}".format(c,d,e))
elif c>e:
 print("{0} {1} {2}".format(d,e,c))
else
 print("{0} {1} {2}".format(d,,c,e))


  


Compiler output:
a.cc:1:1: error: 'three' does not name a type
    1 | three=input()
      | ^~~~~
Language: C++

three=input()
a=three.split()[0]
b=three.split()[1]
c=three.split()[2]

d=min(a,b)
e=max(a,b)

if c<d:
 print("{0} {1} {2}".format(c,d,e))
elif c>e:
 print("{0} {1} {2}".format(d,e,c))
else
 print("{0} {1} {2}".format(d,c,e))


  


Compiler output:
a.cc:1:1: error: 'three' does not name a type
    1 | three=input()
      | ^~~~~
Language: C++

three=input()
a=three.split()[0]
b=three.split()[1]
c=three.split()[2]

d=min(a,b)
e=max(a,b)

if c<d:
 print("{0} {1} {2}".format(c,d,e))
elif c>e:
 print("{0} {1} {2}".format(d,e,c))
else:
 print("{0} {1} {2}".format(d,c,e))


  


Compiler output:
a.cc:1:1: error: 'three' does not name a type
    1 | three=input()
      | ^~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:3:14: error: array must be initialized with a brace-enclosed initializer
    3 |     int a[3]=0;
      |              ^
Language: C++

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


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

#include<iostream>

using namespace std;

int main () {
  int a,b,c;
  cin >> a >> b >> c;
  if (a <= b && b <= c){
    cout << a << " " << b << " " << c << endl;
  }else if (a <= c && c <= b){
    cout << a << " " << c << " " << b << endl;
  }else if (b <= a && a <= c){
    cout << b << " " << a << " " << c << endl;
  }else if (b <= c && c <= a){
    cout << b << " " << c << " " << a << endl;
  }else if (c <= a && a <=./ b){
    cout << c << " " << a << " " << b << endl;
  }else {
    cout << c << " " << b << " " << a << endl;
  }

  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:16:27: error: expected primary-expression before '.' token
   16 |   }else if (c <= a && a <=./ b){
      |                           ^
a.cc:16:28: error: expected unqualified-id before '/' token
   16 |   }else if (c <= a && a <=./ b){
      |                            ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a;
    cin >> a;
    int b;
    cin >> b;
　　int c;
    cin >> c;
    if (a>=b && b>=c) {
        cout << c << " " << b << " " << a << endl;}
    else if (a>=c && b<=c){
        cout << b << " " << c << " " << a << endl;}
    else if (a<=b && c<=a) {
        cout << c << " " << a << " " << b << endl;}
    else if (a<=c && c<=b) {
        cout << a << " " << c << " " << b << endl;}
    else if (a<=b && b<=c) {
        cout << a << " " << b << " " << c << endl;}
    else if (b<=a && a<=c) {
        cout << b << " " << a << " " << c << endl;}
    return 0;
}




Compiler output:
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　　int c;
      | ^
a.cc:9:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:1: error: '\U00003000\U00003000int' was not declared in this scope
    9 | 　　int c;
      | ^~~~~~~
a.cc:10:12: error: 'c' was not declared in this scope
   10 |     cin >> c;
      |            ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a;
    cin >> a;
    int b;
    cin >> b;
　　int c;
    cin >> c;
    if (a>=b && b>=c) {
        cout << c << " " << b << " " << a << endl;}
    else if (a>=c && b<=c){
        cout << b << " " << c << " " << a << endl;}
    else if (a<=b && c<=a) {
        cout << c << " " << a << " " << b << endl;}
    else if (a<=c && c<=b) {
        cout << a << " " << c << " " << b << endl;}
    else if (a<=b && b<=c) {
        cout << a << " " << b << " " << c << endl;}
    else {
        cout << b << " " << a << " " << c << endl;}
    return 0;
}




Compiler output:
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　　int c;
      | ^
a.cc:9:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:1: error: '\U00003000\U00003000int' was not declared in this scope
    9 | 　　int c;
      | ^~~~~~~
a.cc:10:12: error: 'c' was not declared in this scope
   10 |     cin >> c;
      |            ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a;
    cin >> a;
    int b;
    cin >> b;
　　int c;
    cin >> c;
    if (a>=b && b>=c) {
        cout << c << " " << b << " " << a << endl;
} else if (a>=c && b<=c){
        cout << b << " " << c << " " << a << endl;
}else if (a<=b && c<=a) {
cout << c << " " << a << " " << b << endl;
}   else if (a<=c && c<=b) {
        cout << a << " " << c << " " << b << endl;
} else if (a<=b && b<=c) {
        cout << a << " " << b << " " << c << endl;
} else {
        cout << b << " " << a << " " << c << endl;}
    return 0;
}




Compiler output:
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　　int c;
      | ^
a.cc:9:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:1: error: '\U00003000\U00003000int' was not declared in this scope
    9 | 　　int c;
      | ^~~~~~~
a.cc:10:12: error: 'c' was not declared in this scope
   10 |     cin >> c;
      |            ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a;
    cin >> a;
    int b;
    cin >> b;
　　int c;
    cin >> c;
    if (a>=b && b>=c) {
        cout << c << " " << b << " " << a << endl;
        } else if (a>=c && b<=c){
        cout << b << " " << c << " " << a << endl;
        }else if (a<=b && c<=a) {
        cout << c << " " << a << " " << b << endl;
        }   else if (a<=c && c<=b) {
        cout << a << " " << c << " " << b << endl;
        } else if (a<=b && b<=c) {
        cout << a << " " << b << " " << c << endl;
        } else {
        cout << b << " " << a << " " << c << endl;
        }
    return 0;
}




Compiler output:
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　　int c;
      | ^
a.cc:9:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:1: error: '\U00003000\U00003000int' was not declared in this scope
    9 | 　　int c;
      | ^~~~~~~
a.cc:10:12: error: 'c' was not declared in this scope
   10 |     cin >> c;
      |            ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a;
    cin >> a;
    int b;
    cin >> b;
　　int c;
    cin >> c;
    if (a>=b && b>=c) {
        cout << c << " " << b << " " << a << endl;
    }else if (a>=c && b<=c){
        cout << b << " " << c << " " << a << endl;
    }else if (a<=b && c<=a) {
        cout << c << " " << a << " " << b << endl;
    }   else if (a<=c && c<=b) {
        cout << a << " " << c << " " << b << endl;
    } else if (a<=b && b<=c) {
        cout << a << " " << b << " " << c << endl;
    } else {
        cout << b << " " << a << " " << c << endl;
    }
    return 0;
}




Compiler output:
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　　int c;
      | ^
a.cc:9:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:1: error: '\U00003000\U00003000int' was not declared in this scope
    9 | 　　int c;
      | ^~~~~~~
a.cc:10:12: error: 'c' was not declared in this scope
   10 |     cin >> c;
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<'
   12 |     cout<<a<<" "<<b<" "<<c<<endl;
      |                     ~~~^~~
      |                     |    |
      |                     |    int
      |                     const char [2]
Language: C++

#include <iostream>

using namespace std;

int main(void)
{
    int data[3], temp;
    
    cin >> data[0] >> data[1] >> data[2];
    while (!(data[0] < data[1] && data[1] < data[2])) {
        for (int i = 0; i < (sizeof(data) / int) - 1; ++i) {
            if (data[i] > data[i + 1]) {
                temp = data[i];
                data[i] = data[i + 1];
                data[i + 1] = temp;
            }
        }
    }
    cout << data[0] << data[1] << data[2] << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:45: error: expected primary-expression before 'int'
   11 |         for (int i = 0; i < (sizeof(data) / int) - 1; ++i) {
      |                                             ^~~
a.cc:11:44: error: expected ')' before 'int'
   11 |         for (int i = 0; i < (sizeof(data) / int) - 1; ++i) {
      |                             ~              ^~~~
      |                                            )
Language: C++

#include <iostream>

using namespace std;

int main(void)
{
    int data[3], temp;
    
    cin >> data[0] >> data[1] >> data[2];
    while (!(data[0] < data[1] && data[1] < data[2])) {
        for (int i = 0; i < (sizeof(data) / (int)) - 1; ++i) {
            if (data[i] > data[i + 1]) {
                temp = data[i];
                data[i] = data[i + 1];
                data[i + 1] = temp;
            }
        }
    }
    cout << data[0] << data[1] << data[2] << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:46: error: expected primary-expression before 'int'
   11 |         for (int i = 0; i < (sizeof(data) / (int)) - 1; ++i) {
      |                                              ^~~
a.cc:11:46: error: expected ')' before 'int'
   11 |         for (int i = 0; i < (sizeof(data) / (int)) - 1; ++i) {
      |                                             ~^~~
      |                                              )
a.cc:11:55: error: expected ')' before ';' token
   11 |         for (int i = 0; i < (sizeof(data) / (int)) - 1; ++i) {
      |                             ~                         ^
      |                                                       )
Language: C++

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:21: error: 'i' was not declared in this scope
   19 |         temp = data[i];
      |                     ^
Language: C++

a, b, c= map(int, input().split())
if a<=b<=c:print(a, b, c)
if b<a<=c:print(b, a, c)
if a<=c<=b:print(a, c, b)
if b<c<=a:print(b, c, a)
if c<a<=b:print(c, a, b)
if c<=b<=a:print(c, b, a)


Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b, c= map(int, input().split())
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int a,b,c;
    cin >> a;
    cin >> b;
    cin >> c;
     
    if(a<b && b<c){
        cout << "a"cout << "b"cout << "c";}
    if else{(a<b $$ c<d)
             cout << "a"cout << "c"cout << "b";}
        }
    if else{(b<a $$ c<d)
             cout << "b"cout << "a"cout << "c";}
        }
        cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: unable to find string literal operator 'operator""cout' with 'const char [2]', 'long unsigned int' arguments
   10 |         cout << "a"cout << "b"cout << "c";}
      |                 ^~~~~~~
a.cc:10:28: error: unable to find string literal operator 'operator""cout' with 'const char [2]', 'long unsigned int' arguments
   10 |         cout << "a"cout << "b"cout << "c";}
      |                            ^~~~~~~
a.cc:11:8: error: expected '(' before 'else'
   11 |     if else{(a<b $$ c<d)
      |        ^~~~
      |        (
a.cc: At global scope:
a.cc:14:5: error: expected unqualified-id before 'if'
   14 |     if else{(b<a $$ c<d)
      |     ^~
a.cc:16:9: error: expected declaration before '}' token
   16 |         }
      |         ^
a.cc:17:9: error: 'cout' does not name a type
   17 |         cout << endl;
      |         ^~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int a,b,c;
    cin >> a;
    cin >> b;
    cin >> c;
     
    if(a<b && b<c){
        cout << "a"cout << "b"cout << "c";}
    if else{(a>b)
             cout << "a"cout << "c"cout << "b";}
        }
    if else{(b<a $$ c<d)
             cout << "b"cout << "a"cout << "c";}
        }
        cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: unable to find string literal operator 'operator""cout' with 'const char [2]', 'long unsigned int' arguments
   10 |         cout << "a"cout << "b"cout << "c";}
      |                 ^~~~~~~
a.cc:10:28: error: unable to find string literal operator 'operator""cout' with 'const char [2]', 'long unsigned int' arguments
   10 |         cout << "a"cout << "b"cout << "c";}
      |                            ^~~~~~~
a.cc:11:8: error: expected '(' before 'else'
   11 |     if else{(a>b)
      |        ^~~~
      |        (
a.cc: At global scope:
a.cc:14:5: error: expected unqualified-id before 'if'
   14 |     if else{(b<a $$ c<d)
      |     ^~
a.cc:16:9: error: expected declaration before '}' token
   16 |         }
      |         ^
a.cc:17:9: error: 'cout' does not name a type
   17 |         cout << endl;
      |         ^~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

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

  cout<<"No"<<endl;
}
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before user-defined string literal
    8 |     cout<<a" "b" "c <<endl;
      |            ^~~~
      |            ;
a.cc:10:3: error: expected '}' before 'else'
   10 |   else
      |   ^~~~
a.cc:7:10: note: to match this '{'
    7 |   if(b<c){
      |          ^
a.cc:12:14: error: expected ';' before user-defined string literal
   12 |       cout<<a" "c" "b <<endl;
      |              ^~~~
      |              ;
a.cc:13:5: error: expected '}' before 'else'
   13 |     else
      |     ^~~~
a.cc:11:12: note: to match this '{'
   11 |     if(a<c){
      |            ^
a.cc:14:14: error: expected ';' before user-defined string literal
   14 |       cout<<c" "a" "b <<endl;
      |              ^~~~
      |              ;
a.cc: At global scope:
a.cc:17:1: error: expected declaration before '}' token
   17 | }else{
      | ^
a.cc:17:2: error: expected unqualified-id before 'else'
   17 | }else{
      |  ^~~~
a.cc:31:1: error: expected unqualified-id before 'return'
   31 | return 0;
      | ^~~~~~
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
int a,b,c;
if(a<b){
  if(b<c){
    cout<< a ;" "; b ;" "; c <<endl;
  
  else
    if(a<c){
      cout<< a ;" "; c ;" "; b <<endl;
    else
      cout<< c ;" "; a ;" "; b <<endl;  
    }
  }
}else{
  if(c<b){
    cout<< c ;" "; b ;" "; a <<endl;
  
  else
    if(a<c){
      cout<< b ;" "; a ;" "; c <<endl;
    else
      cout<< b ;" "; c ;" "; a <<endl;  
    }
  }

}
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |     cout<< a ;" "; b ;" "; c <<endl;
      |                            ~~^~~~~~
a.cc:9:3: error: expected '}' before 'else'
    9 |   else
      |   ^~~~
a.cc:6:10: note: to match this '{'
    6 |   if(b<c){
      |          ^
a.cc:11:32: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |       cout<< a ;" "; c ;" "; b <<endl;
      |                              ~~^~~~~~
a.cc:12:5: error: expected '}' before 'else'
   12 |     else
      |     ^~~~
a.cc:10:12: note: to match this '{'
   10 |     if(a<c){
      |            ^
a.cc:13:32: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   13 |       cout<< c ;" "; a ;" "; b <<endl;
      |                              ~~^~~~~~
a.cc: At global scope:
a.cc:16:1: error: expected declaration before '}' token
   16 | }else{
      | ^
a.cc:16:2: error: expected unqualified-id before 'else'
   16 | }else{
      |  ^~~~
a.cc:29:1: error: expected unqualified-id before 'return'
   29 | return 0;
      | ^~~~~~
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main(){
int a[3]={0};
for (int i=0;i<3;i++)cin>>a[i];
sort(a,a+3);
for (int i=0;i<3;i++)cout<<a[i]" ";

cout<<endl;

return 0;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:8:32: error: expected ';' before string constant
    8 | for (int i=0;i<3;i++)cout<<a[i]" ";
      |                                ^~~
      |                                ;
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a,b,c,i;
    cin >> a >> b >> c;
    if (a > b){
        i = a;
        a = b;
        b = i;
    }
    if (b > c){
        i = b;
        b = c;
        c = b;
    }
    printf(a + " " + b + " " + c);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   17 |     printf(a + " " + b + " " + c);
      |            ~~~~~~~~~~~ ^ ~~~
      |                    |     |
      |                    |     const char [2]
      |                    const char*
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a,b,c,i;
    cin >> a >> b >> c;
    if (a > b){
        i = a;
        a = b;
        b = i;
    }
    if (b > c){
        i = b;
        b = c;
        c = i;
    }
    printf(a + " " + b + " " + c);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   17 |     printf(a + " " + b + " " + c);
      |            ~~~~~~~~~~~ ^ ~~~
      |                    |     |
      |                    |     const char [2]
      |                    const char*
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;
 int main(){
    vecter<int> a(3);
    for(int i=0;i<3;i++){
        cin>>a[i];
    }
    
    sort(a.begin(),a.begin() + 3);
 }
 


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'vecter' was not declared in this scope
    7 |     vecter<int> a(3);
      |     ^~~~~~
a.cc:7:12: error: expected primary-expression before 'int'
    7 |     vecter<int> a(3);
      |            ^~~
a.cc:9:14: error: 'a' was not declared in this scope
    9 |         cin>>a[i];
      |              ^
a.cc:12:10: error: 'a' was not declared in this scope
   12 |     sort(a.begin(),a.begin() + 3);
      |          ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;
 int main(){
    vector<int> a(3);
    for(int i=0;i<3;i++){
        cin>>a[i];
    }
    
    sort(a.begin(),a.end());
    fori(int i=0;i<3;i++){
        cout<<a[i]
    
    
 }
 


Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected primary-expression before 'int'
   13 |     fori(int i=0;i<3;i++){
      |          ^~~
a.cc:13:18: error: 'i' was not declared in this scope
   13 |     fori(int i=0;i<3;i++){
      |                  ^
a.cc:17:3: error: expected '}' at end of input
   17 |  }
      |   ^
a.cc:6:12: note: to match this '{'
    6 |  int main(){
      |            ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;
 int main(){
    vector<int> a(3);
    for(int i=0;i<3;i++){
        cin>>a[i];
    }
    
    sort(a.begin(),a.end());
    fori(int i=0;i<3;i++){
        cout<<a[i]}
    
    
 }
 


Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected primary-expression before 'int'
   13 |     fori(int i=0;i<3;i++){
      |          ^~~
a.cc:13:18: error: 'i' was not declared in this scope
   13 |     fori(int i=0;i<3;i++){
      |                  ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: expected unqualified-id before '=' token
   13 |     for(int=0;i<3;i++){
      |            ^
a.cc:13:12: error: expected ';' before '=' token
   13 |     for(int=0;i<3;i++){
      |            ^
      |            ;
a.cc:13:12: error: expected primary-expression before '=' token
a.cc:13:15: error: 'i' was not declared in this scope
   13 |     for(int=0;i<3;i++){
      |               ^
a.cc:13:18: error: expected ')' before ';' token
   13 |     for(int=0;i<3;i++){
      |        ~         ^
      |                  )
a.cc:13:19: error: 'i' was not declared in this scope
   13 |     for(int=0;i<3;i++){
      |                   ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: expected ';' before '}' token
   14 |         cout<<a[i]}
      |                   ^
      |                   ;
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;
 int main(){
    vector<int> a(3);
    for(int i=0;i<3;i++){
        cin>>a[i];
    }
    
    sort(a.begin(),a.end());
    for(int i=0;i<3;i++){
        cout<<a[i]<<;
        if(i<3){cout<<" "}
        
    }
    
    
 }
 


Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: expected primary-expression before ';' token
   14 |         cout<<a[i]<<;
      |                     ^
a.cc:15:26: error: expected ';' before '}' token
   15 |         if(i<3){cout<<" "}
      |                          ^
      |                          ;