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

#include<iostream>
#include<string>
#include<math.h>
  
using namespace std;

int small(int x, int y){
	
	if(x<=y){
	 return x;}
	
	else {
	return y;}
}

int main(){
int a,b,c,d,e,f,g,h;

cin >> a >> b >>c;
d=small(a,b);//min(a,b)
e=-small(-a,-b);//max(a,b)

f=small(d,c); //min(a,b,c)
g=-small(-e,-c);　//max(a,b,c)

if(d==f){h=e;}
else{h=d;}



cout<<f<<" "<<h<<" "<<g<<endl;
	return 0;
}



Compiler output:
a.cc:24:17: error: extended character 　 is not valid in an identifier
   24 | g=-small(-e,-c);　//max(a,b,c)
      |                 ^
a.cc: In function 'int main()':
a.cc:24:17: error: '\U00003000' was not declared in this scope
   24 | g=-small(-e,-c);　//max(a,b,c)
      |                 ^~
a.cc:27:1: error: 'else' without a previous 'if'
   27 | else{h=d;}
      | ^~~~
Language: C++

#include<cstdio>
#include<iostream>
using namespace std;

int main(){
    int a[3];

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

    sort(a,a+3);

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

    return 0;                                              
}



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

#include<cstdio>
#include<iostream>
using namespace std;

int main(){
    int a[3];

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

    sort(a,a+3);

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

    return 0;                                              
}


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

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

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


Compiler output:
a.cc:1:10: fatal error: iostresm: No such file or directory
    1 | #include <iostresm>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
 vector<int> a(3,0);
 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:1:10: fatal error: iostresm: No such file or directory
    1 | #include <iostresm>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include "stdafx.h"
#include<iostream>

void Swap(int *a, int *b)
{
	int temp = *a;
	*a = *b;
	*b = temp;
}

int main()
{
	using namespace std;

	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);
	}
	else if (b > c)
	{
		Swap(&b, &c);
		if (a > b)
			Swap(&a, &b);
	}
	cout << a << " " << b << " " << c;

	return 0;
}


Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before ')' token
    8 |  for (i=0,i<3;i++) {
      |                  ^
      |                  ;
Language: C++

#include <iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
 switch(a,b,c){
  case ((a<=b)&&(b<=c)):
   cout << "a b c" <<endl;
   break;
  case ((a<=c)&&(c<=b)):
   cout << "a c b" <<endl;
   break;
  case ((c<=b)&&(b<=a)):
   cout << "c b a" <<endl;
   break;
  case ((b<=a)&&(a<=c)):
   cout << "b a c" <<endl;
   break;
 }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: the value of 'a' is not usable in a constant expression
    7 |   case ((a<=b)&&(b<=c)):
      |          ^
a.cc:4:5: note: 'int a' is not const
    4 | int a,b,c;
      |     ^
a.cc:7:10: error: the value of 'a' is not usable in a constant expression
    7 |   case ((a<=b)&&(b<=c)):
      |          ^
a.cc:4:5: note: 'int a' is not const
    4 | int a,b,c;
      |     ^
a.cc:10:10: error: the value of 'a' is not usable in a constant expression
   10 |   case ((a<=c)&&(c<=b)):
      |          ^
a.cc:4:5: note: 'int a' is not const
    4 | int a,b,c;
      |     ^
a.cc:10:10: error: the value of 'a' is not usable in a constant expression
   10 |   case ((a<=c)&&(c<=b)):
      |          ^
a.cc:4:5: note: 'int a' is not const
    4 | int a,b,c;
      |     ^
a.cc:13:10: error: the value of 'c' is not usable in a constant expression
   13 |   case ((c<=b)&&(b<=a)):
      |          ^
a.cc:4:9: note: 'int c' is not const
    4 | int a,b,c;
      |         ^
a.cc:13:10: error: the value of 'c' is not usable in a constant expression
   13 |   case ((c<=b)&&(b<=a)):
      |          ^
a.cc:4:9: note: 'int c' is not const
    4 | int a,b,c;
      |         ^
a.cc:16:10: error: the value of 'b' is not usable in a constant expression
   16 |   case ((b<=a)&&(a<=c)):
      |          ^
a.cc:4:7: note: 'int b' is not const
    4 | int a,b,c;
      |       ^
a.cc:16:10: error: the value of 'b' is not usable in a constant expression
   16 |   case ((b<=a)&&(a<=c)):
      |          ^
a.cc:4:7: note: 'int b' is not const
    4 | int a,b,c;
      |       ^
Language: C++

#include<iostream>
using namespace std;

int main(){
int a;int b;int c;int f;
cin >>a;cin >>b;cin >>c;
if (a>b){int f=a;int a=b;int b=f};
if (b>c){int f:b;int c=b;int c=f};
return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: expected ',' or ';' before '}' token
    7 | if (a>b){int f=a;int a=b;int b=f};
      |                                 ^
a.cc:8:15: error: found ':' in nested-name-specifier, expected '::'
    8 | if (b>c){int f:b;int c=b;int c=f};
      |               ^
      |               ::
a.cc:8:14: error: 'f' is not a class, namespace, or enumeration
    8 | if (b>c){int f:b;int c=b;int c=f};
      |              ^
a.cc:8:17: error: qualified-id in declaration before ';' token
    8 | if (b>c){int f:b;int c=b;int c=f};
      |                 ^
a.cc:8:30: error: redeclaration of 'int c'
    8 | if (b>c){int f:b;int c=b;int c=f};
      |                              ^
a.cc:8:22: note: 'int c' previously declared here
    8 | if (b>c){int f:b;int c=b;int c=f};
      |                      ^
Language: C++

#include<iostream>
using namespace std;

int main(){
int a;int b;int c;int f;
cin >>a;cin >>b;cin >>c;
if (a>b){int f=a;int a=b;int b=f};
if (b>c){int f=b;int c=b;int c=f};
return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: expected ',' or ';' before '}' token
    7 | if (a>b){int f=a;int a=b;int b=f};
      |                                 ^
a.cc:8:30: error: redeclaration of 'int c'
    8 | if (b>c){int f=b;int c=b;int c=f};
      |                              ^
a.cc:8:22: note: 'int c' previously declared here
    8 | if (b>c){int f=b;int c=b;int c=f};
      |                      ^
Language: C++

#include<iostream>
using namespace std;

int main(){
int a;int b;int c;int f;
cin >>a;cin >>b;cin >>c;
if (a>b){int f=a;
int a=b;
int b=f};
if (b>c){int f=b;
int c=b;
int c=f};
return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected ',' or ';' before '}' token
    9 | int b=f};
      |        ^
a.cc:12:5: error: redeclaration of 'int c'
   12 | int c=f};
      |     ^
a.cc:11:5: note: 'int c' previously declared here
   11 | int c=b;
      |     ^
Language: C++

#include<iostream>
using namespace std;

int main(){
int a;int b;int c;int f;
cin >>a;cin >>b;cin >>c;
if (a>b){int f=a;
int a=b;
int b=f;};
if (b>c){int f=b;
int c=b;
int c=f;};
return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: redeclaration of 'int c'
   12 | int c=f;};
      |     ^
a.cc:11:5: note: 'int c' previously declared here
   11 | int c=b;
      |     ^
Language: C++

#include <stdio.h>
#include <iostream>
#include <vector>
using namespace std;
#define REP(i, n) for(int i = 0; i < (int)(n); i++)
#define SZ(x) ((int)(x).size())
#define all(x) (x).begin(),(x).end()
typedef long long ll;

int main()
{
	int i,j,k;
	cin >> i >> j >> k;
	vector<int> v;
  /*
  int i;
	cin >> i;
	*/
  v.push_back(i);
	v.push_back(j);
	v.push_back(k);
  sort(all(v));
  REP(i,SZ(v)){
	  cout << v[i];
		if (i!=SZ(v)){
		  cout << " ";
		}
	}
	cout << endl;
}




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

int main() {
	int test[3];
	cin >> test[0] >> test[1] >> test[2];
	for (int i = 0 ; i < (3-1) ; i++) {
		for(int j = i+1 ; j < 3 ; j++){
			if (test[i] > test[j]) {
					swap(test[i], test[j]);
			}
		}
	}
	//出力
	for (int i = 0; i < 3; i++) {
		if (i != 2) {
			cout << test[i] << " ";
		}
		else {
			cout << test[i];
		}
	}
	cout << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> test[0] >> test[1] >> test[2];
      |         ^~~
a.cc:7:41: error: 'swap' was not declared in this scope
    7 |                                         swap(test[i], test[j]);
      |                                         ^~~~
a.cc:14:25: error: 'cout' was not declared in this scope
   14 |                         cout << test[i] << " ";
      |                         ^~~~
a.cc:17:25: error: 'cout' was not declared in this scope
   17 |                         cout << test[i];
      |                         ^~~~
a.cc:20:9: error: 'cout' was not declared in this scope
   20 |         cout << endl;
      |         ^~~~
a.cc:20:17: error: 'endl' was not declared in this scope
   20 |         cout << endl;
      |                 ^~~~
Language: C++


int main(){

        int a,b,c,t;

        cin >> a;
        cin >> b;
        cin >> c;

        if(a > b){

                t = a;
                a = b;
                b = t;

        }

        else if(b > c){

                t = b;
                b = c;
                c = t;

        }

        else 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:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> a;
      |         ^~~
a.cc:34:9: error: 'cout' was not declared in this scope
   34 |         cout << a << " " << b << " " << c << endl;
      |         ^~~~
a.cc:34:46: error: 'endl' was not declared in this scope
   34 |         cout << a << " " << b << " " << c << endl;
      |                                              ^~~~
Language: C++

import java.util.Scanner;

class Main{

public static void main(String args[]){
Scanner sc=new Scanner(System.in);

int[] buf=new int[3];

for(int i=0;i<buf.length;i++){
    buf[i]=sc.nextInt();
}

int work;
for(int i=0;i<buf.length;i++){
   for(int j=0;j<buf.length-i-1;j++){
       if(buf[j]>buf[j+1]){
            work=buf[j];
            buf[j]=buf[j+1];
            buf[j+1]=work;
       }
   }
}


System.out.print(buf[0]+" "+buf[1]+" "+buf[2]);


}

}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:7: error: expected ':' before 'static'
    5 | public static void main(String args[]){
      |       ^~~~~~~
      |       :
a.cc:5:25: error: 'String' has not been declared
    5 | public static void main(String args[]){
      |                         ^~~~~~
a.cc:31:2: error: expected ';' after class definition
   31 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:1: error: 'Scanner' was not declared in this scope
    6 | Scanner sc=new Scanner(System.in);
      | ^~~~~~~
a.cc:8:4: error: structured binding declaration cannot have type 'int'
    8 | int[] buf=new int[3];
      |    ^~
a.cc:8:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:8:4: error: empty structured binding declaration
a.cc:8:7: error: expected initializer before 'buf'
    8 | int[] buf=new int[3];
      |       ^~~
a.cc:10:15: error: 'buf' was not declared in this scope
   10 | for(int i=0;i<buf.length;i++){
      |               ^~~
a.cc:11:12: error: 'sc' was not declared in this scope
   11 |     buf[i]=sc.nextInt();
      |            ^~
a.cc:15:15: error: 'buf' was not declared in this scope
   15 | for(int i=0;i<buf.length;i++){
      |               ^~~
a.cc:26:1: error: 'System' was not declared in this scope
   26 | System.out.print(buf[0]+" "+buf[1]+" "+buf[2]);
      | ^~~~~~
a.cc:26:18: error: 'buf' was not declared in this scope
   26 | System.out.print(buf[0]+" "+buf[1]+" "+buf[2]);
      |                  ^~~
Language: C++

import java.util.Scanner;

class Main{

public static void main(String args[]){
Scanner sc=new Scanner(System.in);

int[] buf=new int[3];

for(int i=0;i<buf.length;i++){
    buf[i]=sc.nextInt();
}

int work;
for(int i=0;i<buf.length;i++){
   for(int j=0;j<buf.length-i-1;j++){
       if(buf[j]>buf[j+1]){
            work=buf[j];
            buf[j]=buf[j+1];
            buf[j+1]=work;
       }
   }
}


System.out.print(buf[0]+" "+buf[1]+" "+buf[2]+\n);

sc.close();
}

}


Compiler output:
a.cc:26:47: error: stray '\' in program
   26 | System.out.print(buf[0]+" "+buf[1]+" "+buf[2]+\n);
      |                                               ^
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:7: error: expected ':' before 'static'
    5 | public static void main(String args[]){
      |       ^~~~~~~
      |       :
a.cc:5:25: error: 'String' has not been declared
    5 | public static void main(String args[]){
      |                         ^~~~~~
a.cc:31:2: error: expected ';' after class definition
   31 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:1: error: 'Scanner' was not declared in this scope
    6 | Scanner sc=new Scanner(System.in);
      | ^~~~~~~
a.cc:8:4: error: structured binding declaration cannot have type 'int'
    8 | int[] buf=new int[3];
      |    ^~
a.cc:8:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:8:4: error: empty structured binding declaration
a.cc:8:7: error: expected initializer before 'buf'
    8 | int[] buf=new int[3];
      |       ^~~
a.cc:10:15: error: 'buf' was not declared in this scope
   10 | for(int i=0;i<buf.length;i++){
      |               ^~~
a.cc:11:12: error: 'sc' was not declared in this scope
   11 |     buf[i]=sc.nextInt();
      |            ^~
a.cc:15:15: error: 'buf' was not declared in this scope
   15 | for(int i=0;i<buf.length;i++){
      |               ^~~
a.cc:26:1: error: 'System' was not declared in this scope
   26 | System.out.print(buf[0]+" "+buf[1]+" "+buf[2]+\n);
      | ^~~~~~
a.cc:26:18: error: 'buf' was not declared in this scope
   26 | System.out.print(buf[0]+" "+buf[1]+" "+buf[2]+\n);
      |                  ^~~
a.cc:26:48: error: 'n' was not declared in this scope
   26 | System.out.print(buf[0]+" "+buf[1]+" "+buf[2]+\n);
      |                                                ^
a.cc:28:1: error: 'sc' was not declared in this scope
   28 | sc.close();
      | ^~
Language: C++

import java.util.Scanner;

class Main{

public static void main(String args[]){
Scanner sc=new Scanner(System.in);

int[] buf=new int[3];

for(int i=0;i<buf.length;i++){
    buf[i]=sc.nextInt();
}

int work;
for(int i=0;i<buf.length;i++){
   for(int j=0;j<buf.length-i-1;j++){
       if(buf[j]>buf[j+1]){
            work=buf[j];
            buf[j]=buf[j+1];
            buf[j+1]=work;
       }
   }
}


System.out.printf(buf[0]+" "+buf[1]+" "+buf[2]\n);

sc.close();
}

}


Compiler output:
a.cc:26:47: error: stray '\' in program
   26 | System.out.printf(buf[0]+" "+buf[1]+" "+buf[2]\n);
      |                                               ^
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:7: error: expected ':' before 'static'
    5 | public static void main(String args[]){
      |       ^~~~~~~
      |       :
a.cc:5:25: error: 'String' has not been declared
    5 | public static void main(String args[]){
      |                         ^~~~~~
a.cc:31:2: error: expected ';' after class definition
   31 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:1: error: 'Scanner' was not declared in this scope
    6 | Scanner sc=new Scanner(System.in);
      | ^~~~~~~
a.cc:8:4: error: structured binding declaration cannot have type 'int'
    8 | int[] buf=new int[3];
      |    ^~
a.cc:8:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:8:4: error: empty structured binding declaration
a.cc:8:7: error: expected initializer before 'buf'
    8 | int[] buf=new int[3];
      |       ^~~
a.cc:10:15: error: 'buf' was not declared in this scope
   10 | for(int i=0;i<buf.length;i++){
      |               ^~~
a.cc:11:12: error: 'sc' was not declared in this scope
   11 |     buf[i]=sc.nextInt();
      |            ^~
a.cc:15:15: error: 'buf' was not declared in this scope
   15 | for(int i=0;i<buf.length;i++){
      |               ^~~
a.cc:26:1: error: 'System' was not declared in this scope
   26 | System.out.printf(buf[0]+" "+buf[1]+" "+buf[2]\n);
      | ^~~~~~
a.cc:26:19: error: 'buf' was not declared in this scope
   26 | System.out.printf(buf[0]+" "+buf[1]+" "+buf[2]\n);
      |                   ^~~
a.cc:28:1: error: 'sc' was not declared in this scope
   28 | sc.close();
      | ^~
Language: C++

import java.util.Scanner;

class Main{

public static void main(String args[]){
Scanner sc=new Scanner(System.in);

int[] buf=new int[3];

for(int i=0;i<buf.length;i++){
    buf[i]=sc.nextInt();
}

int work;
for(int i=0;i<buf.length;i++){
   for(int j=0;j<buf.length-i-1;j++){
       if(buf[j]>buf[j+1]){
            work=buf[j];
            buf[j]=buf[j+1];
            buf[j+1]=work;
       }
   }
}


System.out.print(buf[0]+" "+buf[1]+" "+buf[2]);
System.out.println();

sc.close();
}

}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:7: error: expected ':' before 'static'
    5 | public static void main(String args[]){
      |       ^~~~~~~
      |       :
a.cc:5:25: error: 'String' has not been declared
    5 | public static void main(String args[]){
      |                         ^~~~~~
a.cc:32:2: error: expected ';' after class definition
   32 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:1: error: 'Scanner' was not declared in this scope
    6 | Scanner sc=new Scanner(System.in);
      | ^~~~~~~
a.cc:8:4: error: structured binding declaration cannot have type 'int'
    8 | int[] buf=new int[3];
      |    ^~
a.cc:8:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:8:4: error: empty structured binding declaration
a.cc:8:7: error: expected initializer before 'buf'
    8 | int[] buf=new int[3];
      |       ^~~
a.cc:10:15: error: 'buf' was not declared in this scope
   10 | for(int i=0;i<buf.length;i++){
      |               ^~~
a.cc:11:12: error: 'sc' was not declared in this scope
   11 |     buf[i]=sc.nextInt();
      |            ^~
a.cc:15:15: error: 'buf' was not declared in this scope
   15 | for(int i=0;i<buf.length;i++){
      |               ^~~
a.cc:26:1: error: 'System' was not declared in this scope
   26 | System.out.print(buf[0]+" "+buf[1]+" "+buf[2]);
      | ^~~~~~
a.cc:26:18: error: 'buf' was not declared in this scope
   26 | System.out.print(buf[0]+" "+buf[1]+" "+buf[2]);
      |                  ^~~
a.cc:29:1: error: 'sc' was not declared in this scope
   29 | sc.close();
      | ^~
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include <boost/foreach.hpp>
using namespace std;

void show(vector<int>& v)
{
        BOOST_FOREACH(int x, v) {
                cout << x<<" " ;
        }
        cout<<endl;
}

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


Compiler output:
a.cc:4:10: fatal error: boost/foreach.hpp: No such file or directory
    4 | #include <boost/foreach.hpp>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>

using namespace std;

#define INPUT_MIN 0
#define INPUT_MAX 100

void swap(int *num1, int *num2);

int main()
{
	int a = 0, b = 0, c = 0;
	
	cin >> a;
	cin >> b;
	cin >> c;
	
	if( (INPUT_MIN > a) || (INPUT_MAX < a) )
	{
		return 1;
	}
	
	if( (INPUT_MIN > b) || (INPUT_MAX < b) )
	{
		return 1;
	}
	
	if( (INPUT_MIN > c) || (INPUT_MAX < c) )
	{
		return 1;
	}
	
	if(a > b)
	{
		swap(&a, &b);
	}
	
	if(b > c)
	{
		swap(&b, &c);
	}
	
	if(a > b)
	{
		swap(&a, &b);
	}
	
	cout << a << " " << " " << endl;
	
	return 0;
}

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


Compiler output:
a.cc: In function 'void swap(int*, int)':
a.cc:58:17: error: invalid type argument of unary '*' (have 'int')
   58 |         *num1 = *num2;
      |                 ^~~~~
a.cc:59:9: error: invalid type argument of unary '*' (have 'int')
   59 |         *num2 = tmp;
      |         ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int x[];
    for(int i ;i<3;i++){
        cin>>x[i];
    }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: storage size of 'x' isn't known
    4 |     int x[];
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int x=[];
    for(int i ;i<3;i++){
        cin>>x[i];
    }
    
}


Compiler output:
a.cc: In lambda function:
a.cc:4:13: error: expected '{' before ';' token
    4 |     int x=[];
      |             ^
a.cc: In function 'int main()':
a.cc:4:11: error: invalid user-defined conversion from 'main()::<lambda()>' to 'int' [-fpermissive]
    4 |     int x=[];
      |           ^~
a.cc:4:11: note: candidate is: 'constexpr main()::<lambda()>::operator void (*)()() const' (near match)
    4 |     int x=[];
      |           ^
a.cc:4:11: note:   no known conversion from 'void (*)()' to 'int'
a.cc:6:15: error: invalid types 'int[int]' for array subscript
    6 |         cin>>x[i];
      |               ^
Language: C++

#include<iostream>
#include<algolithm>
using namespace std;
int main(){
    int x[3];
    for(int i ;i<3;i++){
        cin>>x[i];
    }
    sort(x);

    
}


Compiler output:
a.cc:2:9: fatal error: algolithm: No such file or directory
    2 | #include<algolithm>
      |         ^~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<algolithm>
using namespace std;
int main(){
    int x[3];
    for(int i ;i<3;i++){
        cin>>x[i];
    }
    sort(x,x+3);

    
}


Compiler output:
a.cc:2:9: fatal error: algolithm: No such file or directory
    2 | #include<algolithm>
      |         ^~~~~~~~~~~
compilation terminated.
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'vector' was not declared in this scope
    5 |     vector<int> x;
      |     ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include<algorithm>
  +++ |+#include <vector>
    3 | using namespace std;
a.cc:5:12: error: expected primary-expression before 'int'
    5 |     vector<int> x;
      |            ^~~
a.cc:7:14: error: 'x' was not declared in this scope
    7 |         cin>>x[i];
      |              ^
a.cc:9:10: error: 'x' was not declared in this scope
    9 |     sort(x.begin(),x.end());
      |          ^
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
int main(){
    int x[3];
    for(int i ;i<3;i++){
        cin>>x[i];
    }
    sort(x.begin(),x.end());
     for(int i ;i<3;i++){
        cout<<x[i]<<" ";
    }   
    cout<<endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: request for member 'begin' in 'x', which is of non-class type 'int [3]'
   10 |     sort(x.begin(),x.end());
      |            ^~~~~
a.cc:10:22: error: request for member 'end' in 'x', which is of non-class type 'int [3]'
   10 |     sort(x.begin(),x.end());
      |                      ^~~
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
int main(){
    int x[3];
    for(int i ;i<3;i++){
        cin>>x[i];
    }
    sort(x,x+3);

    cout<<x[0]<<" "<<x[1]<<<<" "x[2]<<endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:28: error: expected primary-expression before '<<' token
   12 |     cout<<x[0]<<" "<<x[1]<<<<" "x[2]<<endl;
      |                            ^~
a.cc:12:30: error: unable to find string literal operator 'operator""x' with 'const char [2]', 'long unsigned int' arguments
   12 |     cout<<x[0]<<" "<<x[1]<<<<" "x[2]<<endl;
      |                              ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: two or more data types in declaration of 'x'
    6 |     vector int x;
      |     ^~~~~~
a.cc:8:14: error: 'x' was not declared in this scope
    8 |         cin>>x[i];
      |              ^
a.cc:10:10: error: 'x' was not declared in this scope
   10 |     sort(x,x+3);
      |          ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: no match for call to '(std::vector<int>) ()'
   10 |     sort(x.begin,x().end());
      |                  ~^~
Language: C++

#include <iostream>
#include <cmath>
using namespace std;

void Sort(int a, int b, int c)
{
	int output1 = num1;
	int output2 = num2;
	int output3 = num3;

	cin >> num1, num2, num3;
	cout << output1 << " " << output2 << " " << output3 << endl;

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

	return 0;
}


Compiler output:
a.cc: In function 'void Sort(int, int, int)':
a.cc:7:23: error: 'num1' was not declared in this scope
    7 |         int output1 = num1;
      |                       ^~~~
a.cc:8:23: error: 'num2' was not declared in this scope
    8 |         int output2 = num2;
      |                       ^~~~
a.cc:9:23: error: 'num3' was not declared in this scope
    9 |         int output3 = num3;
      |                       ^~~~
a.cc:27:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
   27 |         return 0;
      |                ^
Language: C++

#include <iostream>
#include <conio.h>

using namespace std;

int  main()
{
	int x;
	int array[3], t;
	for (x = 0; x < 3; x++)
	{

		cin >> array[x];
	}
	for (x = 0; x < 3; x++)
	{
		for (int y = 0; y < 2; y++)
		{
			if (array[y] > array[y + 1])
			{
				t = array[y];
				array[y] = array[y + 1];
				array[y + 1] = t;
			}
		}
	}
	for (x = 0; x < 3; x++)
	{
		cout << array[x];
		cout << " ";
	}

	return 0;
}


Compiler output:
a.cc:2:10: fatal error: conio.h: No such file or directory
    2 | #include <conio.h>
      |          ^~~~~~~~~
compilation terminated.
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 (c > a) swap(c,a);
    cout << a << " " <<b <<  " " << c <<endl;
    returmn 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'returmn' was not declared in this scope
   10 |     returmn 0;
      |     ^~~~~~~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: 'g' was not declared in this scope
   16 |         }g++
      |          ^
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:7:23: error: expected ';' before 'if'
    7 |     if (a>b) swap(a,b)
      |                       ^
      |                       ;
    8 |     if (b>c) swap(b,c)
      |     ~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int X , Y;
cin >>X>>Y;
if(X == 0 && Y == 0) break;

if(X > Y) swap(X,Y);
cout<<X<<""<<Y<<endl;
}


Compiler output:
a.cc:4:1: error: 'cin' does not name a type
    4 | cin >>X>>Y;
      | ^~~
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if(X == 0 && Y == 0) break;
      | ^~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if(X > Y) swap(X,Y);
      | ^~
a.cc:8:1: error: 'cout' does not name a type
    8 | cout<<X<<""<<Y<<endl;
      | ^~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

#include<bits/stdc++.h>
int X , Y;
cin >>X>>Y;
if(X == 0 && Y == 0) break;

if(X > Y) swap(X,Y);
cout<<X<<""<<Y<<endl;
}


Compiler output:
a.cc:3:1: error: 'cin' does not name a type
    3 | cin >>X>>Y;
      | ^~~
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if(X == 0 && Y == 0) break;
      | ^~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(X > Y) swap(X,Y);
      | ^~
a.cc:7:1: error: 'cout' does not name a type
    7 | cout<<X<<""<<Y<<endl;
      | ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include<bits/stdc++.h>
int X , Y;
cin>>X>>Y;
if(X == 0 && Y == 0) break;

if(X > Y) swap(X,Y);
cout<<X<<""<<Y<<endl;
}


Compiler output:
a.cc:3:1: error: 'cin' does not name a type
    3 | cin>>X>>Y;
      | ^~~
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if(X == 0 && Y == 0) break;
      | ^~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(X > Y) swap(X,Y);
      | ^~
a.cc:7:1: error: 'cout' does not name a type
    7 | cout<<X<<""<<Y<<endl;
      | ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include<bits/stdc++.h>
int X , Y;
cin>>X>>Y;
if(X == 0 && Y == 0) break;

if(X > Y) swap(X,Y);
cout<<X<<" "<<Y<<endl;
}


Compiler output:
a.cc:3:1: error: 'cin' does not name a type
    3 | cin>>X>>Y;
      | ^~~
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if(X == 0 && Y == 0) break;
      | ^~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(X > Y) swap(X,Y);
      | ^~
a.cc:7:1: error: 'cout' does not name a type
    7 | cout<<X<<" "<<Y<<endl;
      | ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include<bits/stdc++.h>
int X,Y;
cin>>X>>Y;
if(X == 0 && Y == 0) break;

if(X > Y) swap(X,Y);
cout<<X<<" "<<Y<<endl;
}


Compiler output:
a.cc:3:1: error: 'cin' does not name a type
    3 | cin>>X>>Y;
      | ^~~
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if(X == 0 && Y == 0) break;
      | ^~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(X > Y) swap(X,Y);
      | ^~
a.cc:7:1: error: 'cout' does not name a type
    7 | cout<<X<<" "<<Y<<endl;
      | ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include<bits/stdc++.h>
int X, Y;
cin>>X>>Y;
if(X == 0 && Y == 0) break;

if(X > Y) swap(X, Y);
cout<<X<<" "<<Y<<endl;
}


Compiler output:
a.cc:3:1: error: 'cin' does not name a type
    3 | cin>>X>>Y;
      | ^~~
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if(X == 0 && Y == 0) break;
      | ^~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(X > Y) swap(X, Y);
      | ^~
a.cc:7:1: error: 'cout' does not name a type
    7 | cout<<X<<" "<<Y<<endl;
      | ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
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<<" "<<endl;
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected ';' before 'if'
    5 |  cin>>a>>b>>c
      |              ^
      |              ;
    6 | 
    7 |  if(a > b) swap(a,b);
      |  ~~
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<<" "<<endl;
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected ';' before 'if'
    5 |  cin>>a>>b>>c
      |              ^
      |              ;
    6 | 
    7 |  if(a > b) swap(a, b);
      |  ~~
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:5:14: error: expected ';' before 'if'
    5 |  cin>>a>>b>>c
      |              ^
      |              ;
    6 | 
    7 |  if(a > b) swap(a, b);
      |  ~~
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);
}



  


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>a>>b>>c;
      |   ^~~
a.cc:9:10: error: 'c' was not declared in this scope
    9 |   if(b > c) swap(b,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;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>a>>b>>c;
      |   ^~~
a.cc:9:10: error: 'c' was not declared in this scope
    9 |   if(b > c) swap(b,c);
      |          ^
a.cc:12:26: error: 'c' was not declared in this scope
   12 |   cout<<a<<"  "<<b<<" "<<c<<endl;
      |                          ^
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;
}


  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>a>>b>>c;
      |   ^~~
a.cc:9:10: error: 'c' was not declared in this scope
    9 |   if(b > c) swap(b, c);
      |          ^
a.cc:12:26: error: 'c' was not declared in this scope
   12 |   cout<<a<<"  "<<b<<" "<<c<<endl;
      |                          ^
Language: C++

#include <iostream>
#include <cmath>
using namespace std;

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

	if (c > b && b > a);
		cout << a << " " << b << " " << c << endl;
	
	else if (c > a && a > b);
		cout << b << " " << a << " " << c << endl;
	
	else if (b > c && c > a);
		cout << a << " " << c << " " << b << endl;
	
	else if (b > a && a > c);
		cout << c << " " << a << " " << b << endl;
	
	else if (a > c && c > b);
		cout << b << " " << c << " " << a << endl;

	else if (a > b && b > c);
		cout << c << " " << b << " " << a << endl;
	

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'else' without a previous 'if'
   13 |         else if (c > a && a > b);
      |         ^~~~
a.cc:16:9: error: 'else' without a previous 'if'
   16 |         else if (b > c && c > a);
      |         ^~~~
a.cc:19:9: error: 'else' without a previous 'if'
   19 |         else if (b > a && a > c);
      |         ^~~~
a.cc:22:9: error: 'else' without a previous 'if'
   22 |         else if (a > c && c > b);
      |         ^~~~
a.cc:25:9: error: 'else' without a previous 'if'
   25 |         else if (a > b && b > c);
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int A[3];
  for (int i = 0; i < 3; i++) {
    cin>>A[i];
  }
  swap(A[0],A[2]);
  for (int i = 0; i < 3; i++) {
    cout << A[i] << " ";
  }
  cout  << '\n';
  return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int A[3];
  for (int i = 0; i < 3; i++) {
    cin>>A[i];
  }
  swap(A[0],A[2]);
  cout << A[0]<<" "<<A[1]<<" "<<A[2];
  cout  << '\n';
  return 0;
}



Compiler output:
a.cc:17:5: error: redefinition of 'int main(int, const char**)'
   17 | int main(int argc, char const *argv[]) {
      |     ^~~~
a.cc:3:5: note: 'int main(int, const char**)' previously defined here
    3 | int main(int argc, char const *argv[]) {
      |     ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: expected primary-expression before '>' token
   16 | if (c>b&&>b>a)
      |          ^
Language: C++

#include <iostream>
#include <cmath>
using namespace std;

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

    if (c > b && b > a)
        cout << a << " " << b << " " << c << endl;
    
    else if (c > a && a > b)
        cout << b << " " << a << " " << c << endl;
    
    else if (b > c && c > a)
        cout << a << " " << c << " " << b << endl;
    
    else if (b > a && a > c)
        cout << c << " " << a << " " << b << endl;
    
    else if (a > c && c > b)
        cout << b << " " << c << " " << a << endl;

    else if (a > b && b > c)
        cout << c << " " << b << " " << a << endl;
    

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before 'if'
    8 |     cin >> a >> b >> c
      |                       ^
      |                       ;
    9 | 
   10 |     if (c > b && b > a)
      |     ~~                 
a.cc:13:5: error: 'else' without a previous 'if'
   13 |     else if (c > a && a > b)
      |     ^~~~
Language: C++

#include <iostream>
#include <cmath>
using namespace std;

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

    if (c > b && b > a){

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

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before 'if'
    8 |     cin >> a >> b >> c
      |                       ^
      |                       ;
    9 | 
   10 |     if (c > b && b > a){
      |     ~~                 
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else if (c > a && a > b)
      |     ^~~~
Language: C++

#include <iostream>
#include<cmath>
using namespace std;
int main(void){
 int a, b, c;
 cin >> a >> b >> c; 
 {
  if (a > b&&b > c) {
   cout << c << " " << b << " " << a << endl;
  }
  else if (a<b&&b>c&&c>a) {
   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;
  }
  else if (b < c&&c < a) {
   cout << b << " " << c << " " << a << endl;
  }
  else if (c < a&&a < b) {
   cout << c << " " << a << " " << b << endl;
  }
   return 0;
  }


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

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

int main() {
    int a, b, c;
    std::cin >> a;
    std::cin >> b;
    std::cin >> c;
    std::vector<int> v {a, b, c};
    std::sort (v.begin(), v.end());
    for (std::vector<int>::iterator i=v.begin(); i!=v.end(); ++i)
      std::cout << *i;
    std::endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: statement cannot resolve address of overloaded function
   14 |     std::endl;
      |              ^
Language: C++

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

int main() {
    int a, b, c;
    std::cin >> a;
    std::cin >> b;
    std::cin >> c;
    std::vector<int> v {a, b, c};
    std::sort (v.begin(), v.end());
    for (std::vector<int>::iterator i=v.begin(); i!=v.end(); ++i)
      std::cout << *i  << " ";
    << std::endl;
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: invalid types 'int[int]' for array subscript
   12 |     std::cout << a[0] << " " << a[1] << " " << a[2] << std::endl;
      |                   ^
a.cc:12:34: error: invalid types 'int[int]' for array subscript
   12 |     std::cout << a[0] << " " << a[1] << " " << a[2] << std::endl;
      |                                  ^
a.cc:12:49: error: invalid types 'int[int]' for array subscript
   12 |     std::cout << a[0] << " " << a[1] << " " << a[2] << std::endl;
      |                                                 ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a[3];
    
    cin a[0] >> a[1] >> a[2];
    
    int work;
    for(int i=2;i>0;++i){
        for(int k=0;k<i;++k){
            if(a[k] > a[k+1]){
                a[k]=work;
                a[k]=a[k+1];
                a[k+1]=work;
            }
        }
    }
    
    for(int i=0;i<3;++i){
        cout << a[i];
        if(i!=2){
            cout << " ";
        }
    }
    cout << endl;
    
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'a'
    7 |     cin a[0] >> a[1] >> a[2];
      |        ^~
      |        ;
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a[3];
    
    cin a[0] >> a[1] >> a[2];
    
    int work;
    for(int i=2;i<0;--i){
        for(int k=0;k<i;++k){
            if(a[k] > a[k+1]){
                a[k]=work;
                a[k]=a[k+1];
                a[k+1]=work;
            }
        }
    }
    
    for(int i=0;i<3;++i){
        cout << a[i];
        if(i!=2){
            cout << " ";
        }
    }
    cout << endl;
    
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'a'
    7 |     cin a[0] >> a[1] >> a[2];
      |        ^~
      |        ;
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a[3];
    
    cin a[0] >> a[1] >> a[2];
    
    int work;
    for(int i=2;i>0;--i){
        for(int k=0;k<i;++k){
            if(a[k] > a[k+1]){
                a[k]=work;
                a[k]=a[k+1];
                a[k+1]=work;
            }
        }
    }
    
    for(int i=0;i<3;++i){
        cout << a[i];
        if(i!=2){
            cout << " ";
        }
    }
    cout << endl;
    
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'a'
    7 |     cin a[0] >> a[1] >> a[2];
      |        ^~
      |        ;
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a[3];
    
    cin a[0] >> a[1] >> a[2];
    
    int work;
    for(int i=2;i>0;--i){
        for(int k=0;k<i;++k){
            if(a[k] > a[k+1]){
                a[k]=work;
                a[k]=a[k+1];
                a[k+1]=work;
            }
        }
    }
    
    cout << a[0] << " " << a[1] << " " << a[2] << endl;
    /*
    for(int i=0;i<3;++i){
        cout << a[i];
        if(i!=2){
            cout << " ";
        }
    }
    cout << endl;
    */
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'a'
    7 |     cin a[0] >> a[1] >> a[2];
      |        ^~
      |        ;
Language: C++

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

int main(){
    intma 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);
    
    count<<a<<" "<<b<<" "<<c<<endl;
    erturn 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'intma' was not declared in this scope; did you mean 'int'?
    6 |     intma a, b, c;
      |     ^~~~~
      |     int
a.cc:7:10: error: 'a' was not declared in this scope
    7 |     cin>>a>>b>>c;
      |          ^
a.cc:7:13: error: 'b' was not declared in this scope
    7 |     cin>>a>>b>>c;
      |             ^
a.cc:7:16: error: 'c' was not declared in this scope
    7 |     cin>>a>>b>>c;
      |                ^
a.cc:14:5: error: 'erturn' was not declared in this scope; did you mean 'extern'?
   14 |     erturn 0;
      |     ^~~~~~
      |     extern
Language: C++

//itp1_topic2_b
#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);
    
    count<<a<<" "<<b<<" "<<c<<endl;
    erturn 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
   13 |     count<<a<<" "<<b<<" "<<c<<endl;
      |     ~~~~~^~~
a.cc:14:5: error: 'erturn' was not declared in this scope; did you mean 'extern'?
   14 |     erturn 0;
      |     ^~~~~~
      |     extern
Language: C++

//itp1_topic2_b
#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;
    erturn 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'erturn' was not declared in this scope; did you mean 'extern'?
   14 |     erturn 0;
      |     ^~~~~~
      |     extern
Language: C++

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

int main(){
  int a,b,c;
  cin>>3a>>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:6:8: error: unable to find numeric literal operator 'operator""a'
    6 |   cin>>3a>>b>>c;
      |        ^~
Language: C++

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

int main(){
  int a,b,c;
  cin>>3a>>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:6:8: error: unable to find numeric literal operator 'operator""a'
    6 |   cin>>3a>>b>>c;
      |        ^~