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

main=getLine >>= putStrLn.calc.map (read::String->Int).words
	where
	calc1 [a,b,c]=if a<b
		then [a,b,c]
		else [b,a,c]
	calc2 [a,b,c]=if b<c
		then [a,b,c]
		else [a,c,b]
	calc=unwords.map show.calc1.calc2.calc1

Compiler output:
a.cc:1:1: error: 'main' does not name a type
    1 | main=getLine >>= putStrLn.calc.map (read::String->Int).words
      | ^~~~
Language: C++

main=getLine >>= putStrLn.calc.map (read::String->Int).words
	where
        calc :: [Int]->[Int]
	calc1 [a,b,c]=if a<b
		then [a,b,c]
		else [b,a,c]
	calc2 [a,b,c]=if b<c
		then [a,b,c]
		else [a,c,b]
	calc=unwords.map show.calc1.calc2.calc1

Compiler output:
a.cc:1:1: error: 'main' does not name a type
    1 | main=getLine >>= putStrLn.calc.map (read::String->Int).words
      | ^~~~
Language: C++

main=do
	x <- getLine	
	putStrLn.calc.map (read::String->Int).words x
		where
		calc :: [Int]->[Int]
		calc1 [a,b,c]=if a<b
			then [a,b,c]
			else [b,a,c]
		calc2 [a,b,c]=if b<c
			then [a,b,c]
			else [a,c,b]
		calc=calc1.calc2.calc1

Compiler output:
a.cc:1:1: error: 'main' does not name a type
    1 | main=do
      | ^~~~
Language: C++

main :: IO ()
main=do
	x <- getLine	
	putStrLn.calc.map (read::String->Int).words x
		where
		calc :: [Int]->[Int]
		calc1 [a,b,c]=if a<b
			then [a,b,c]
			else [b,a,c]
		calc2 [a,b,c]=if b<c
			then [a,b,c]
			else [a,c,b]
		calc=calc1.calc2.calc1

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

main = do
	x <- getLine	
	putStrLn.calc.map (read::String->Int).words x
		where
		calc :: [Int]->[Int]
		calc1 [a,b,c]=if a<b
			then [a,b,c]
			else [b,a,c]
		calc2 [a,b,c]=if b<c
			then [a,b,c]
			else [a,c,b]
		calc=calc1.calc2.calc1

Compiler output:
a.cc:1:1: error: 'main' does not name a type
    1 | main = do
      | ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'else' without a previous 'if'
    7 |   else if(c<b){b=temp; b=c; c=temp;}
      |   ^~~~
Language: C++

#include<stdio.h>

int main(void){


int a,b,c,x,y,z;


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


if(a>b){


x=a;


a=b;


b=x;


}


if(b>c){


y=b;


b=c;


c=y;


}


if(a>b){


z=a;


a=b;


b=z;


}


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


return 0;

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

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
main()
int a[2];
cin >> a[0] >> a[1] >> a[2];
sort(a,a+2);
cont<< a[0]<<" "<<a[2]<<endl

Compiler output:
a.cc:6:1: error: expected constructor, destructor, or type conversion before 'int'
    6 | int a[2];
      | ^~~
a.cc:7:1: error: 'cin' does not name a type
    7 | cin >> a[0] >> a[1] >> a[2];
      | ^~~
a.cc:8:5: error: expected constructor, destructor, or type conversion before '(' token
    8 | sort(a,a+2);
      |     ^
a.cc:9:1: error: 'cont' does not name a type; did you mean 'const'?
    9 | cont<< a[0]<<" "<<a[2]<<endl
      | ^~~~
      | const
Language: C++

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

Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:29: error: expected ';' before '}' token
    9 | cout<< a[0]<<" "<<a[2]<<endl
      |                             ^
      |                             ;
   10 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'sub' was not declared in this scope
    6 |                 sub=a;
      |                 ^~~
a.cc:11:17: error: 'sub' was not declared in this scope
   11 |                 sub=a;
      |                 ^~~
a.cc:16:17: error: 'sub' was not declared in this scope
   16 |                 sub=b;
      |                 ^~~
Language: C++

#include <iostream>
using namespace std;

int main() {
	int a, b, c;
	cin >> a >> b >> c;
	
	if (a=b && b=c && c=a) cout<<a<<" "<<b<<" "<<c;
	else if (a=b && b<c) cout<<a<<" "<<b<<" "<<c;
	else if (a=b && b>c) cout<<c<<" "<<a<<" "<<b;
	else if (a<b && b=c) cout<<a<<" "<<b<<" "<<c;
	else if (a>b && b=c) cout<<b<<" "<<c<<" "<<a;
	else if (a=c && c>b) cout<<b<<" "<<a<<" "<<c;
	else if (a=c && c<b) cout<<a<<" "<<c<<" "<<b;
	else if (a<b && b<c) cout<<a<<" "<<b<<" "<<c;
	else if (a<c && c<b) cout<<a<<" "<<c<<" "<<b;
	else if (b<a && a<c) cout<<b<<" "<<a<<" "<<c;
	else if (b<c && c<a) cout<<b<<" "<<c<<" "<<a;
	else if (c<a && a<b) cout<<c<<" "<<a<<" "<<b;
	else if (c<b && b<a) cout<<c<<" "<<b<<" "<<a;
	// your code goes here
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: lvalue required as left operand of assignment
    8 |         if (a=b && b=c && c=a) cout<<a<<" "<<b<<" "<<c;
      |                      ~~^~~~
a.cc:11:22: error: lvalue required as left operand of assignment
   11 |         else if (a<b && b=c) cout<<a<<" "<<b<<" "<<c;
      |                  ~~~~^~~~
a.cc:12:22: error: lvalue required as left operand of assignment
   12 |         else if (a>b && b=c) cout<<b<<" "<<c<<" "<<a;
      |                  ~~~~^~~~
Language: C++

#include <iostream>

int main()
{
using namespace std;
int a[3];
cin>>a[0]>>a[1]>>a[2];

for(int i=0; i<2; i++)
{
if(a[i]>a[i+1])
{
int tmp=a[i];
a[i]=a[i+1];
a[i+1]=tmp;
}
}
if(a[0]>a[1])
int tmp=a[0];
a[0]=a[1];
a[1]=tmp;
cout<<a[0]<<a[1]<<a[2]<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:6: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   21 | a[1]=tmp;
      |      ^~~
      |      tm
Language: C++

#include <iostream>

void flip(int* a,int* b)
{
if(a>b){
int *tmp = a;
a=b;
b=tmp;
}}

int main()
{
using namespace std;
int a[3];
cin>>a[0]>>a[1]>>a[2];

for(int i=0; i<2; i++)
flip(&a[i],&a[i+1]);

flip(&a[0],&a[1]);
cout<<*a[0]<<*a[1]<<*a[2]<<endl;
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:7: error: invalid type argument of unary '*' (have 'int')
   21 | cout<<*a[0]<<*a[1]<<*a[2]<<endl;
      |       ^~~~~
a.cc:21:14: error: invalid type argument of unary '*' (have 'int')
   21 | cout<<*a[0]<<*a[1]<<*a[2]<<endl;
      |              ^~~~~
a.cc:21:21: error: invalid type argument of unary '*' (have 'int')
   21 | cout<<*a[0]<<*a[1]<<*a[2]<<endl;
      |                     ^~~~~
a.cc:22:1: error: 'return0' was not declared in this scope
   22 | return0;
      | ^~~~~~~
Language: C++

#include <iostream>

void flip(int* a,int* b)
{
if(a>b){
int *tmp = a;
a=b;
b=tmp;
}}

int main()
{
using namespace std;
int a[3];
cin>>a[0]>>a[1]>>a[2];

for(int i=0; i<2; i++)
flip(&a[i],&a[i+1]);

flip(&a[0],&a[1]);
cout<<a[0]<<a[1]<<a[2]<<endl;
return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:1: error: 'return0' was not declared in this scope
   22 | return0;
      | ^~~~~~~
Language: C++

#include <iostream>

void flip(int* a,int* b)
{
if(a>b){
int *tmp = a;
a=b;
b=tmp;
}}

int main()
{
using namespace std;
int a[3];
cin>>a[0]>>a[1]>>a[2];

for(int i=0; i<2; i++)
flip(&a[i],&a[i+1]);

flip(&a[0],&a[1]);
cout<<*a[0]<<*a[1]<<*a[2]<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:7: error: invalid type argument of unary '*' (have 'int')
   21 | cout<<*a[0]<<*a[1]<<*a[2]<<endl;
      |       ^~~~~
a.cc:21:14: error: invalid type argument of unary '*' (have 'int')
   21 | cout<<*a[0]<<*a[1]<<*a[2]<<endl;
      |              ^~~~~
a.cc:21:21: error: invalid type argument of unary '*' (have 'int')
   21 | cout<<*a[0]<<*a[1]<<*a[2]<<endl;
      |                     ^~~~~
Language: C++

main :: IO ()
main = do
    str <- getLine
    let inputs = [read word :: Int | word <- words str]
    let a = head inputs
    let b = head $ tail inputs
    let c = head $ tail $ tail inputs

    putStrLn $ unwords $ map show $ order a b c

order :: Int -> Int -> Int -> [Int]
order a b c
    | a <= b = if b <= c then [a, b, c]
                else if c <= a then [c, a, b]
                  else [a, c, b]
    | otherwise = if a <= c then [b, a, c]
                    else if c <= b then [c, b, a]
                      else [b, c ,a]

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:27: error: expected ';' before '}' token
   14 |                 swap (a,c)
      |                           ^
      |                           ;
   15 |         }
      |         ~
Language: C++

#include <iostream>
#include <vector>
#include <sstream>
#include <cstdlib>
using namespace std;
vector<string> split(const string &str, char sep = ' ') {
    vector<string> v;
    stringstream ss(str);
    string buffer;
    while( getline(ss, buffer, sep) ) {
        v.push_back(buffer);
    }
    return v;
}

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

    string input;
    getline( cin, input);
    vector<string> splited = split(input);
    vector<int> casted;
    for(int i = 0; i < end(splited) - begin(splited); i++) {
        casted.push_back(atoi(splited[i].c_str()));
    }

    sort(casted.begin(), casted.end());

    cout << casted[0] << ' ' << casted[1] << ' ' << casted[2] << endl;
    return 0;
}

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

#include <iostream>
#include <vector>
#include <sstream>
#include <cstdlib>
using namespace std;
vector<string> split(const string &str, char sep = ' ') {
    vector<string> v;
    stringstream ss(str);
    string buffer;
    while( getline(ss, buffer, sep) ) {
        v.push_back(buffer);
    }
    return v;
}

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

    string input;
    getline( cin, input);
    vector<string> splited = split(input);
    vector<int> casted;
    for(int i = 0; i < std::end(splited) - std::begin(splited); i++) {
        casted.push_back(atoi(splited[i].c_str()));
    }

    std::sort(casted.begin(), casted.end());

    cout << casted[0] << ' ' << casted[1] << ' ' << casted[2] << endl;
    return 0;
}

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

#include <iostream>
#include <vector>
#include <sstream>
#include <cstdlib>
#include <iterator>
using namespace std;
vector<string> split(const string &str, char sep = ' ') {
    vector<string> v;
    stringstream ss(str);
    string buffer;
    while( getline(ss, buffer, sep) ) {
        v.push_back(buffer);
    }
    return v;
}

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

    string input;
    getline( cin, input);
    vector<string> splited = split(input);
    vector<int> casted;
    for(int i = 0; i < std::end(splited) - std::begin(splited); i++) {
        casted.push_back(atoi(splited[i].c_str()));
    }

    std::sort(casted.begin(), casted.end());

    cout << casted[0] << ' ' << casted[1] << ' ' << casted[2] << endl;
    return 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: 'sin' was not declared in this scope
    7 |  for(i = 0; i < 3; i++) sin >> a[i];
      |                         ^~~
Language: C++

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

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

#include <iostream>
using namespace std;
int main()
{
    int A[3];
    for( int i = 0; i< 3; i++) scanf("%d", &A[i]);
    
    sort(A, A + 3);

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

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

#include <iostream>
using namespace std;
int main()
{
    int A[3];
    cin >> A[0] >> A[1] >> A[2];
    sort(A, A + 3);

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

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

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner kb=new Scanner(System.in);
int[] a=new int[3];

for(int i=0;i<3;i++){
	a[i]=kb.nextInt();
}
int b=a[0];
for(int i=1;i<3;i++){
	if(b>a[i]){
		b=a[i-1];
		a[i-1]=a[i];
	}
}
System.out.printf("%d %d %d\n",a[0],a[1],a[2]);
		kb.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:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

#include<iostream>
using namespace std;

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

if (a>b){
x=a;
a=b;
b=x;
}
if(b>c){
x=b;
b=c;
b=x;
}
if(a>b){
x=a;
a=b;
b=x;
}
cout << a << "" << b << "" << c << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: expected ';' before 'a'
    6 | cin a >> b >> c;
      |    ^~
      |    ;
Language: C++

#include<iostream>
using namespace std;

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

if (a>b){
x=a;
a=b;
b=x;
}
if(b>c){
x=b;
b=c;
b=x;
}
if(a>b){
x=a;
a=b;
b=x;
}
cout << a << " " << b << " " << c << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: expected ';' before 'a'
    6 | cin a >> b >> c;
      |    ^~
      |    ;
Language: C++


#include <iostream>
#include <vector>

using namespace std;

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

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

#include <iostream>
#include <vector>

using namespace std;

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

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

#include <stdio.h>

using namespace std;

#define SIZE(array)		( (sizeof(array)) / (sizeof(*array)) )

int main()
{
	int num[3];

	for (int i = 0; i < SIZE(num); i++)
		scanf_s("%d", &num[i]);

	for (int i = SIZE(num) - 1; i > 0; i--)
	{
		if (num[i] < num[i-1])
		{
			int tmp	 = num[i-1];
			num[i-1] = num[i];
			num[i]	 = tmp;
		}
	}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   12 |                 scanf_s("%d", &num[i]);
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include <stdio.h>

#define SIZE(array)		( (sizeof(array)) / (sizeof(*array)) )

int main()
{
	int num[3];

	for (int i = 0; i < SIZE(num); i++)
		scanf_s("%d", &num[i]);

	for (int i = SIZE(num) - 1; i > 0; i--)
	{
		if (num[i] < num[i-1])
		{
			int tmp	 = num[i-1];
			num[i-1] = num[i];
			num[i]	 = tmp;
		}
	}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   10 |                 scanf_s("%d", &num[i]);
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include <stdio.h>

#define SIZE(array)		( (sizeof(array)) / (sizeof(*array)) )

int main()
{
	int num[3];

	for (int i = 0; i < SIZE(num); i++)
		scanf_s("%d", &num[i]);

	for (int i = SIZE(num) - 1; i > 0; i--)
	{
		if (num[i] < num[i-1])
		{
			int tmp	 = num[i-1];
			num[i-1] = num[i];
			num[i]	 = tmp;
		}
	}

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   10 |                 scanf_s("%d", &num[i]);
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include <iostream>

using namespace std;

 

int main() {

 int a,b,c;

 cin>>a>>b>>c

 if(a>=b>=c){

  cout<<a<<endl;

 }else{

  cout<<b<<endl; 	

 }else{

  cout<<c<<endl;	

 }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: expected ';' before 'if'
   11 |  cin>>a>>b>>c
      |              ^
      |              ;
   12 | 
   13 |  if(a>=b>=c){
      |  ~~           
a.cc:17:3: error: 'else' without a previous 'if'
   17 |  }else{
      |   ^~~~
a.cc:21:3: error: 'else' without a previous 'if'
   21 |  }else{
      |   ^~~~
Language: C++

#include <iostream>

using namespace std;

 

int main() {

	int a,b,c;

	cin >>a>>b>>c;

	if(a>=b>=c){

		cout<<a<<endl;

	}else{

		cout<<b<<endl;

		}else{

			cout<<c<<endl;

		}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:18: error: 'else' without a previous 'if'
   21 |                 }else{
      |                  ^~~~
Language: C++

#include <iostream>

using namespace std;

 

int main() {

 int a,b,c;

 cin>>a>>b>>c

 if(a>=b>=c){

  cout<<a<<endl;

 }else{

  cout<<b<<endl 	

 }else{

  cout<<c<<endl;	

 }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: expected ';' before 'if'
   11 |  cin>>a>>b>>c
      |              ^
      |              ;
   12 | 
   13 |  if(a>=b>=c){
      |  ~~           
a.cc:17:3: error: 'else' without a previous 'if'
   17 |  }else{
      |   ^~~~
a.cc:19:16: error: expected ';' before '}' token
   19 |   cout<<b<<endl
      |                ^
      |                ;
   20 | 
   21 |  }else{
      |  ~              
a.cc:21:3: error: 'else' without a previous 'if'
   21 |  }else{
      |   ^~~~
Language: C++

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

int main() {
	// your code goes here
int a,b,c;
cin>>a>>b>>c;
if (a<=b){
  if(a<=c){
    if(b<=c){
      cout<<a<<""<<b<<""<<c<<endl;
    }else{
      cout<<a<<""<<c<<""<<b<<endl;
    }	
  }else{
  	cout<<c<<""<<a<<""<<b<<endl;
  }
 }else{if(b<=c){
  	if(a<=c){
  	   cout<<b<<""<<a<<""<<c<<endl;	
  	}else{
  	   cout<<b<<""<<c<<""<<a<<endl;
  	}
  }else{
  	cout<<c<<""<<b<<""<<a<<endl;
  }
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:6: error: 'else' without a previous 'if'
   19 |     }else{if (c<a,b){
      |      ^~~~
a.cc:25:6: error: 'else' without a previous 'if'
   25 |     }else{
      |      ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    int a,b,c;
    cin>>a>>b>>c;
    if (a<b && a<c){
        if (b<=c){
            cout<<a<<" "<<b<<" "<<c<<endl;
            }else{
                cout<<a<<" "<<c<<" "<<b<<endl;
    }}else{if (b<a && b<c){
        if (a<=c){
            cout<<b<<" "<<a<<" "<<c<<endl;
            }
        }else{
        cout<<b<<" "<<c<<" "<<a<<endl;
        }
    }else{if (c<a && c<b){
        if (a<=b){
            cout<<c<<" "<<a<<" "<<b<<endl;
        }}else{
            cout<<c<<" "<<b<<" "<<a<<endl;
        }
    }else{
        cout<<a<<" "<<c<<" "<<b<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:6: error: 'else' without a previous 'if'
   19 |     }else{if (c<a && c<b){
      |      ^~~~
a.cc:25:6: error: 'else' without a previous 'if'
   25 |     }else{
      |      ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: unable to find string literal operator 'operator""b' with 'const char [3]', 'long unsigned int' arguments
    8 |                 cout<<"a"b"c";
      |                           ^~~
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;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before 'b'
    8 |                 cout<<a b c;
      |                        ^~
      |                        ;
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;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before user-defined string literal
    8 |                 cout<<a" "b" "c<<endl;
      |                        ^~~~
      |                        ;
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;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before 'b'
    8 |                 cout<<a b c<<endl;
      |                        ^~
      |                        ;
Language: C++

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

int main() {
	// your code goes here
	int a,b,c;
	cin>>a>>b>>c;
    if(a<=b && b<=c && a<=c){
    	cout<<a<<" "<<b<<" "<<c<<endl;
    }
    if(a<=b && b>=c && a<=c){
    	cout<<a<<" "<<c<<" "<<b<<endl;
    }
    if(a>=b && b<=c && a<=c){
    	cout<<b<<" "<<a<<" "<<c<<endl;
    }
    if(a=>b && b<=c && a>=c){
    	cout<<b<<" "<<c<<" "<<a<<endl;
    }
   if(a<=b && b>=c && a>=c){
    	cout<<c<<" "<<a<<" "<<b<<endl;
    }
   if(a>=b && b>=c && a>=c){
    	cout<<c<<" "<<b<<" "<<a<<endl;
    }
   
    
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: expected primary-expression before '>' token
   17 |     if(a=>b && b<=c && a>=c){
      |          ^
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;
	}
        else(a<c && c<b){
                cout<<a<<c<<b;
        }
        else(b<a && a<c){
                cout<<b<<a<<c;
        }
        else(b<c && c<a){
                cout<<b<<c<<a;
        }
        else(c<a && a<b){
                cout<<c<<a<<b;
        }
        else(c<b && b<a){
                cout<<c<<b<<a;
        }
}

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

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
    1 | #inculde<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:2: error: 'cin' was not declared in this scope
    6 |  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 | #inculde<bits/stdc++.h>
a.cc:8:4: error: 'cout' was not declared in this scope
    8 |    cout<<"c b a"<<endl;
      |    ^~~~
a.cc:8:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:19: error: 'endl' was not declared in this scope
    8 |    cout<<"c b a"<<endl;
      |                   ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inculde<bits/stdc++.h>
a.cc: At global scope:
a.cc:10:3: error: expected unqualified-id before 'if'
   10 |   if(c>=b && b>=a && c>=a)
      |   ^~
a.cc:11:41: error: 'x' does not name a type
   11 |    cout<<"a b c"<<endl;                 x
      |                                         ^
a.cc:12:2: error: expected declaration before '}' token
   12 |  }
      |  ^
a.cc:13:2: error: expected unqualified-id before 'if'
   13 |  if(a>=c && c>=b && a>=b)
      |  ^~
a.cc:15:2: error: expected declaration before '}' token
   15 |  }
      |  ^
a.cc:16:2: error: expected unqualified-id before 'if'
   16 |  if(b>=a && a>=c && b>=c)
      |  ^~
a.cc:18:2: error: expected declaration before '}' token
   18 |  }
      |  ^
a.cc:19:2: error: expected unqualified-id before 'if'
   19 |  if(b>=c && c>=a && b>=a)
      |  ^~
a.cc:21:2: error: expected declaration before '}' token
   21 |  }
      |  ^
a.cc:22:2: error: expected unqualified-id before 'if'
   22 |  if(c>=a && a>=b && c>=b)
      |  ^~
a.cc:24:2: error: expected declaration before '}' token
   24 |  }
      |  ^
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C++

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

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

#include<iostream>
using namespace std;

int main(){
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;}

count<<a<<" "<<b<<" "<<c<<end1;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: 'a' was not declared in this scope
    5 | cin>>a>>b>>c;
      |      ^
a.cc:5:9: error: 'b' was not declared in this scope
    5 | cin>>a>>b>>c;
      |         ^
a.cc:5:12: error: 'c' was not declared in this scope
    5 | cin>>a>>b>>c;
      |            ^
a.cc:7:11: error: 't' was not declared in this scope; did you mean 'tm'?
    7 | if (a>b) {t=a;a=b;b=t;}
      |           ^
      |           tm
a.cc:8:11: error: 't' was not declared in this scope; did you mean 'tm'?
    8 | if (b>c) {t=b;b=c;c=t;}
      |           ^
      |           tm
a.cc:9:11: error: 't' was not declared in this scope; did you mean 'tm'?
    9 | if (a>b) {t=a;a=b;b=t;}
      |           ^
      |           tm
a.cc:11:1: error: 'count' was not declared in this scope
   11 | count<<a<<" "<<b<<" "<<c<<end1;
      | ^~~~~
a.cc:11:27: error: 'end1' was not declared in this scope
   11 | count<<a<<" "<<b<<" "<<c<<end1;
      |                           ^~~~
Language: C++

#include<stdio.h>

int main(){
   int a,b,c;
   int tmp;
    
    do{
     scanf("%d",&a);
    
    }while(a>10000||a<1);
    
    do{
    
     scanf("%d",&b);

    }while(b>10000||b<1);

    do{
    
     scanf("%d",&c);

    }while(c>10000||c<1);

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

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

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


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

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

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

Compiler output:
a.cc:2:1: error: expected unqualified-id before '?' token
    2 | ??
      | ^
Language: C++

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

 do{
   scanf("%d",&a);  
 }while(a>10000||a<1);

 do{
   scanf("%d",&b);  
 }while(b>10000||b<1);

 do{
   scanf("%d",&c);  
 }while(c>10000||c<1);

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

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

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

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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:28:1: error: 'pritnf' was not declared in this scope; did you mean 'printf'?
   28 | pritnf("%d %d %d\n",a,b,c);
      | ^~~~~~
      | printf
Language: C++

# include <iostream>

int main(){
  int a,b,c;
  int temp;
  std::cin >> a >> b >> c;
   
  if( b > c){
    temp = c;
    c = b;
    b = temp;
  }
  if( a > b){
    temp = b;
    b = a;
    a = temp;
  }
  if( b > c){
    temp = c;
    c = b;
    b = temp;
  }
 
  std::cout <<  a << " " << b << " " << c " " << std::end;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:42: error: expected ';' before string constant
   24 |   std::cout <<  a << " " << b << " " << c " " << std::end;
      |                                          ^~~~
      |                                          ;
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];

  sort(a.begin(), a.end());
  cout << a[0] << " " << a[1] << " " << a[2] << endl;
  return 0;
}

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

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

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

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

for(int i = 0; i < num; i++) {
        std::cin >> inputNum[i];
    }

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'for'
    1 | for(int i = 0; i < num; i++) {
      | ^~~
a.cc:1:16: error: 'i' does not name a type
    1 | for(int i = 0; i < num; i++) {
      |                ^
a.cc:1:25: error: 'i' does not name a type
    1 | for(int i = 0; i < num; i++) {
      |                         ^
Language: C++

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

	}
	

	if (a > c)
	{
		dummy = a;
		a = c;
		c = dummy;
	}
	
	if (b > c)
	{
		dummy = b;
		b = c;
		c = dummy;
	}
	cout << a<< " " << b <<" "<< c << endl;
	return 0;

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

#include <iostream>


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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected primary-expression before '<' token
    8 |     if (a =< b && a =< c){
      |            ^
a.cc:8:22: error: expected primary-expression before '<' token
    8 |     if (a =< b && a =< c){
      |                      ^
Language: C++

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		// 3?????????????????????????????????????????´??°?????¨????????????????????????
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		if (a < b) {

			if (b < c) {
				System.out.printf("%d %d %d\n", a, b, c);
			}

		} else if (a < c) {

			if (c < b) {
				System.out.printf("%d %d %d\n", a, c, b);

			}
		} else if (b < a) {
			if (a < c) {
				System.out.printf("%d %d %d\n", b, a, c);
			}
		} else if (b < c) {

			if (c < a) {
				System.out.printf("%d %d %d\n", b, c, a);
			}
		} else if (c < a) {
			if (a < b) {
				System.out.printf("%d %d %d\n", c, a, b);
			}
		} else if (c < b) {
			if (b < a) {
				System.out.printf("%d %d %d\n", c, b, a);
			}
		}

	}
}

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:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream>;
      |                    ^
a.cc: In function 'int main()':
a.cc:6:1: error: 'sort' was not declared in this scope; did you mean 'short'?
    6 | sort(a,a+3);
      | ^~~~
      | short
Language: C++

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

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream>;
      |                    ^
a.cc: In function 'int main()':
a.cc:7:1: error: 'sort' was not declared in this scope; did you mean 'short'?
    7 | sort(a,a+3);
      | ^~~~
      | short
Language: C++

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

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream>;
      |                    ^
a.cc: In function 'int main()':
a.cc:7:1: error: 'sort' was not declared in this scope; did you mean 'short'?
    7 | sort(a,a+3);
      | ^~~~
      | short
Language: C++

#include<iostream>
using namespace std;
void main(){
	int a,b,c;
	cin >>a	;
	cin>>b ;
	if(a>b){
		int min=a;
		a=b;
		b=min;}
	cin>>c;
	if(b>c){
		int tem=c;c=b;b=tem;
	}
	if(a>c)
	{
		int tem=a;a=c;c=tem;
	}
	 cout<<a<<" "<<b<<" "<<c;
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
Language: C++

#include<iostream>
using namespace std;
void main(){
	int a,b,c;
	cin >>a>>b	;
	
	if(a>b){
		int min=a;
		a=b;
		b=min;}
	cin >>c;
	if(b>c){
		int tem=c;c=b;b=tem;
	}
	if(a>c)
	{
		int tem=a;a=c;c=tem;
	}
	 cout <<a<<" "<<b<<" "<<c;
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <conio.h>
using namespace std;
 
int main()
{
	int a,b,c;
	cin>>a>>b>>c;
	if(b>c)
	{
		swap(b,c);
	}
	if(a>b)
	{
		swap(a,b);
	}
	if(b>c)
	{
		swap(b,c);
	}
	printf("%d %d %d",a,b,c);
	return 0;
}

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

#include <iostream>
#include <algorithm>
#include <conio.h>
using namespace std;
 
int main()
{
	int a,b,c;
	cin>>a>>b>>c;
	if(b > c)
	{
		swap(b,c);
	}
	if(a > b)
	{
		swap(a,b);
	}
	if(b > c)
	{
		swap(b,c);
	}
	printf("%d %d %d",a,b,c);
	return 0;
}

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

#include<iostream>
using namespace std;
void main(){
	int a[3];
	for(int i=0;i<3;i++){
		cin >>a[i];		 }
	for(int i=0;i<2;i++)
		for(int j=i+1;j<3;j++){
			if(a[i]>a[j]){
				int tem=a[i];a[i]=a[j];a[j]=tem;
			}
			
		}
	  for(int i=0;i<3;i++){
		cout <<a[i]<<" ";		 }
	 system("pause");
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <conio.h>
using namespace std;
 
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(b > c)
{
swap(b,c);
}
if(a > b)
{
swap(a,b);
}
if(b > c)
{	
swap(b,c);
}
printf("%d %d %d",a,b,c);
return 0;
}

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

#include <iostream>
#include <algorithm>
#include <conio.h>
using namespace std;
 
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(b > c)swap(b,c);
if(a > b)swap(a,b);
if(b > c)swap(b,c);
printf("%d %d %d",a,b,c);
return 0;
}

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

#include <iostream>
#include <algorithm>
#include <conio.h>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(b > c)swap(b,c);
if(a > b)swap(a,b);
if(b > c)swap(b,c);
printf("%d %d %d",a,b,c);
return 0;
}

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

#include <iostream>
using namespace std;
int main()
{
 int a[3],a,b,c;
 cin>>a[0]=a>>a[1]=b>>a[2]=c;
 for(int i = 0 ; i<a.lengh;i++)
  for(int j=0 ;j<a.lengh;j++)
    if(a[i]>a[j])
      a[i]=a[j];

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: conflicting declaration 'int a'
    5 |  int a[3],a,b,c;
      |           ^
a.cc:5:6: note: previous declaration as 'int a [3]'
    5 |  int a[3],a,b,c;
      |      ^
a.cc:6:13: error: invalid operands of types 'int [3]' and 'int' to binary 'operator>>'
    6 |  cin>>a[0]=a>>a[1]=b>>a[2]=c;
      |            ~^~~~~~
      |            |     |
      |            |     int
      |            int [3]
a.cc:6:21: error: lvalue required as left operand of assignment
    6 |  cin>>a[0]=a>>a[1]=b>>a[2]=c;
      |                    ~^~~~~~
a.cc:7:22: error: request for member 'lengh' in 'a', which is of non-class type 'int [3]'
    7 |  for(int i = 0 ; i<a.lengh;i++)
      |                      ^~~~~
a.cc:8:20: error: request for member 'lengh' in 'a', which is of non-class type 'int [3]'
    8 |   for(int j=0 ;j<a.lengh;j++)
      |                    ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
   10 | printf_s("%d %d %d",a,b,c);
      | ^~~~~~~~
      | printf
Language: C++

#include <iostream>
using namespace std;
void main()
{
int a,b,c;
cin>>a>>b>>c;
if(b > c)swap(b,c);
if(a > b)swap(a,b);
if(b > c)swap(b,c);
printf("%d %d %d",a,b,c);
return 0;
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
Language: C++

#include <iostream>
using namespace std;
void main()
{
int a,b,c;
cin>>a>>b>>c;
if(b > c)swap(b,c);
if(a > b)swap(a,b);
if(b > c)swap(b,c);
printf("%d %d %d",a,b,c);

}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
Language: C++

//include thu vien
#include  <iostream>
#include <conio.h>
using namespace std;
	int  main()
{
   int a,b,c;
   
   cin >> a >> b >> c ;
   if (a<b)
	   if (b<c)
   {
	   cout<<"\n"<<a<<b<<c;
	  
   }
	   else


	

	system("pause");	 
	}

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

//include thu vien
#include  <iostream>
#include <conio.h>
using namespace std;
	int  main()
{
   int a,b,c;
   
   cin >> a >> b >> c ;
   if (a<b)
	   if (b<c)
   {
	   cout<<"\n"<< a << b << c;
	  
   }
	   else


	

	system("pause");	 
	}

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

#include <iostream>

int main(){
	int a,b,c;
	std::cin >> a;
	std::cin >> b;
	std::cin >> c;
	if (a > b){
		std::swap(a,b);
	}
	if (b > c){
		std::swap(b,c);
	}
	if (a > b){
		std::swap(a,c)
	}}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:31: error: expected ';' before '}' token
   15 |                 std::swap(a,c)
      |                               ^
      |                               ;
   16 |         }}
      |         ~
Language: C++

//include thu vien
#include  <iostream>
#include <conio.h>
using namespace std;
	int  main()
{
   int a,b,c;
   cin >> a >> b >> c ;
   if (a<b)
	   if (b<c)
   {
	   cout<<" a << b << c";
	  
   }
	   else


	

	system("pause");	 
	}

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

//include thu vien
#include  <iostream>
#include <conio.h>
using namespace std;
	int  main()
{
   int a,b,c;
   cin >> a >> b >> c ;
   if (a<b)
	   if (b<c)
   {
	   cout<<" a << b << c";
	  
   }
	   else
	system("pause");	 
	}

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

//include thu vien
#include  <iostream>
#include <conio.h>
using namespace std;
	int  main()
{
   int a[3];
 for (int i = 0 ; i<2;i++)
   for(int j = 1;j<3;j++)
   {
     if(a[i] > a[j]){
      int temp = a[i]; a[i]=a[j];a[j]=temp;}
    }
 cout<<a[0]<<" "<<a[1]<<" "<<a[2];
 return 0;
}

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

//include thu vien
#include  <iostream>
#include <conio.h>
using namespace std;
	int  main()
{
   int a[3];
 cin >>a[0]>>a[1]>>a[2];
 for (int i = 0 ; i<2;i++)
   for(int j = 1;j<3;j++)
   {
     if(a[i] > a[j]){
      int temp = a[i]; a[i]=a[j];a[j]=temp;}
    }
 cout<<a[0]<<" "<<a[1]<<" "<<a[2];
 return 0;
}

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

//include thu vien
#include  <iostream>
#include <conio.h>
using namespace std;
	int  main()
{
   int a[3];
 cin >>a[0]>>a[1]>>a[2];
 for (int i = 0 ; i<2;i++)
   for(int j = 1;j<3;j++)
   {
     if(a[i] > a[j]){
      int temp = a[i]; a[i]=a[j];a[j]=temp;}
    }
 cout<<a[0]<<" "<<a[1]<<" "<<a[2]<<endl;
 return 0;
}

Compiler output:
a.cc:3:10: fatal error: conio.h: No such file or directory
    3 | #include <conio.h>
      |          ^~~~~~~~~
compilation terminated.