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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         cin >> x >> y >> z;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:20:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |         cout << x << " " << y << " "  << z << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:47: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |         cout << x << " " << y << " "  << z << endl;
      |                                               ^~~~
      |                                               std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         cin >> x >> y >> z;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:20:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |         cout << x << " " << y << " "  << z << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:47: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |         cout << x << " " << y << " "  << z << endl;
      |                                               ^~~~
      |                                               std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>

using namespace std;

int main()
{
	int a = 0, b = 0, c = 0;
	int buf = 0;
	
	do{
		if(a > b){
			buf = a;
			a = b;
			b = buf;
		}
		if(b > c){
			buf = b;
			b = c;
			c = buf;
		}
	}while(a <= b && b <= c)
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:33: error: expected ';' before 'return'
   21 |         }while(a <= b && b <= c)
      |                                 ^
      |                                 ;
   22 | 
   23 |         return 0;
      |         ~~~~~~
Language: C++

#include<iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:33: error: expected ';' before 'cout'
   23 |         }while(a <= b && b <= c)
      |                                 ^
      |                                 ;
   24 | 
   25 |         cout << a << " " << b << " " << c << endl;
      |         ~~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
  
int main()
{
    static const int kCountMax = 3;
    std::vector<int> v(kCountMax);
    for (int i = 0; i < kCountMax; ++i) {
        std::cin >> v[i];
    }
    sort(v.begin(), v.end());
    for (int i = 0; i < kCountMax; ++i) {
        std::cout << (i ? " " : "") << v[i];
    }
    std::cout << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |     std::cout << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

//sorting three numbers

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

Compiler output:
a.cc:13:1: error: expected unqualified-id before 'if'
   13 | if (a>b){
      | ^~
a.cc:15:1: error: 'cout' does not name a type
   15 | cout<<a<<b<<c<<endl<<
      | ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

//sorting three numbers

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

Compiler output:
a.cc:13:1: error: expected unqualified-id before 'if'
   13 | if (a>b){
      | ^~
a.cc:15:1: error: 'cout' does not name a type
   15 | cout<<a<<b<<c<<endl;
      | ^~~~
a.cc:16:1: error: expected unqualified-id before 'return'
   16 | return 0;
      | ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

//sorting three numbers

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

Compiler output:
a.cc:13:1: error: expected unqualified-id before 'if'
   13 | if (a>b){
      | ^~
a.cc:15:1: error: 'cout' does not name a type
   15 | cout<<a<<" "<<b<<" "<<c<<endl;
      | ^~~~
a.cc:16:1: error: expected unqualified-id before 'return'
   16 | return 0;
      | ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include<stdio.h>
void main(){
	int str[];
	int i,t;

	for(i = 0;sizeof(str) / i < sizeof

(str[0]);i++)
{
	if(str[i] < str[i+1]){
	t = str[i+1];
	str[i] = str[i+1]
	str[i] = t;
	continue;
	else i++;
}
}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:13: error: storage size of 'str' isn't known
    3 |         int str[];
      |             ^~~
a.cc:15:9: error: expected '}' before 'else'
   15 |         else i++;
      |         ^~~~
a.cc:10:30: note: to match this '{'
   10 |         if(str[i] < str[i+1]){
      |                              ^
Language: C++

#include <cstdio>

int main() {
	int a, b, c; scanf("%d%d%d", &a, &b, &c);
	int m = min(min(a, b), c);
	int M = max(max(a, b), c);
	printf("%d %d %d\n", m, (a + b + c) - (m + M), M);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: 'min' was not declared in this scope; did you mean 'main'?
    5 |         int m = min(min(a, b), c);
      |                     ^~~
      |                     main
a.cc:5:17: error: 'min' was not declared in this scope; did you mean 'main'?
    5 |         int m = min(min(a, b), c);
      |                 ^~~
      |                 main
a.cc:6:21: error: 'max' was not declared in this scope
    6 |         int M = max(max(a, b), c);
      |                     ^~~
a.cc:6:17: error: 'max' was not declared in this scope
    6 |         int M = max(max(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;
else if( a > b && a < c) cout << "b < a < c" << endl;
else if( a < c && c < b) cout << "a < c < b" << endl;
else if( b < c && c < a) cout << "b < c < a" << endl;
else if( c < a && a < b) cout << "c < a < b" << endl;
else if( c < b && b < a) cout << "c < b < a" << endl;

retuern 0;
}

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

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

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

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

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

#include <stdio.h>

int main(void){

	int max, mid, min, temp;

	scanf("%d %d %d", &max, &mid, &min);
	
	while(1){
		if(max < mid){
			temp = max;
			max = mid;
			mid = temp;
		}else if(max < min){
			temp = max;
			max = min;
			min = temp;
		}else if(mid < min){}
			temp = mid;
			min = mid;
			min = temp;
		}else{
			break;
		}
	
	}

	printf("%d %d %d\n", min, mid, max);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:18: error: 'else' without a previous 'if'
   22 |                 }else{
      |                  ^~~~
a.cc:23:25: error: break statement not within loop or switch
   23 |                         break;
      |                         ^~~~~
a.cc: At global scope:
a.cc:28:15: error: expected constructor, destructor, or type conversion before '(' token
   28 |         printf("%d %d %d\n", min, mid, max);
      |               ^
a.cc:30:9: error: expected unqualified-id before 'return'
   30 |         return 0;
      |         ^~~~~~
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^
Language: C++

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc:7:49: error: stray '`' in program
    7 |   cout << n[0] << " " << n[1] << " " << n[2] << `\n`;
      |                                                 ^
a.cc:7:50: error: stray '\' in program
    7 |   cout << n[0] << " " << n[1] << " " << n[2] << `\n`;
      |                                                  ^
a.cc:7:52: error: stray '`' in program
    7 |   cout << n[0] << " " << n[1] << " " << n[2] << `\n`;
      |                                                    ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    6 |   sort(n, n+3);
      |   ^~~~
      |   short
Language: C++

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

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

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

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

#iostream<iostream>
using namespace std;

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

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

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

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

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

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

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

	return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iostream
    1 | #iostream<iostream>
      |  ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: 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 | #iostream<iostream>
a.cc:9:17: error: 'cout' was not declared in this scope
    9 |                 cout<<a" "b" "c<<endl;
      |                 ^~~~
a.cc:9:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout<<a" "c" "b<<endl;
      |                 ^~~~
a.cc:12:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:17: error: 'cout' was not declared in this scope
   15 |                 cout<<b" "a" "c<<endl;
      |                 ^~~~
a.cc:15:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:17: error: 'cout' was not declared in this scope
   18 |                 cout<<b" "c" "a<<endl;
      |                 ^~~~
a.cc:18:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:17: error: 'cout' was not declared in this scope
   21 |                 cout<<c" "a" "b<<endl;
      |                 ^~~~
a.cc:21:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:17: error: 'cout' was not declared in this scope
   24 |                 cout<<c" "b" "a<<endl;
      |                 ^~~~
a.cc:24:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
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;

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

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

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

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

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected ';' before user-defined string literal
    9 |                 cout<<a" "b" "c<<endl;
      |                        ^~~~
      |                        ;
a.cc:12:24: error: expected ';' before user-defined string literal
   12 |                 cout<<a" "c" "b<<endl;
      |                        ^~~~
      |                        ;
a.cc:15:24: error: expected ';' before user-defined string literal
   15 |                 cout<<b" "a" "c<<endl;
      |                        ^~~~
      |                        ;
a.cc:18:24: error: expected ';' before user-defined string literal
   18 |                 cout<<b" "c" "a<<endl;
      |                        ^~~~
      |                        ;
a.cc:21:24: error: expected ';' before user-defined string literal
   21 |                 cout<<c" "a" "b<<endl;
      |                        ^~~~
      |                        ;
a.cc:24:24: error: expected ';' before user-defined string literal
   24 |                 cout<<c" "b" "a<<endl;
      |                        ^~~~
      |                        ;
Language: C++

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

if a < b:
  if c < a:
    print(%d,%d,%d) % c,a,b
  elif b < c:
    print(%d,%d,%d) % a,b,c
  else:
    print(%d,%d,%d) % a,c,b

else:
  if c < b:
    print(%d,%d,%d) % c,b,a
  elif a < c:
    print(%d,%d,%d) % b,a,c
  else:
    print(%d,%d,%d) % b,c,a

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

#include <bits/stdc++.h>
using namespace std;
int main()
{
 int a,b,c;
 cin>>a>>b>>c;
 vector<int> v;
 v.push_back(a);
 v.push_back(b);
 v.push_back(c);
 sort(v.begin(),v.end());
 for(int i=0;i<v.size();i++){
  if(i) cout<<" "
   else cout<<v[i];
 }
 cout<<endl;
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: expected ';' before 'else'
   13 |   if(i) cout<<" "
      |                  ^
      |                  ;
   14 |    else cout<<v[i];
      |    ~~~~
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main()
{
 int a,b,c;
 cin>>a>>b>>c;
 vector<int> v;
 v.push_back(a);
 v.push_back(b);
 v.push_back(c);
 sort(v.begin(),v.end());
 for(int i=0;i<v.size();i++){
  if(i) cout<<" "
   else cout<<v[i];
 }
 cout<<endl;
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:12:2: error: 'sort' was not declared in this scope; did you mean 'short'?
   12 |  sort(v.begin(),v.end());
      |  ^~~~
      |  short
a.cc:14:18: error: expected ';' before 'else'
   14 |   if(i) cout<<" "
      |                  ^
      |                  ;
   15 |    else cout<<v[i];
      |    ~~~~
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main()
{
 int a,b,c;
 cin>>a>>b>>c;
 vector<int> v;
 v.push_back(a);
 v.push_back(b);
 v.push_back(c);
 sort(v.begin(),v.end());
 for(int i=0;i<v.size();i++){
  if(i) cout<<" ";
   else cout<<v[i];
 }
 cout<<endl;
}
 

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

public class A {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		int c = stdIn.nextInt();
		int box;

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

		if (a > c) {
			box = a;
			a = c;
			c = box;
		}

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

		System.out.println(a + " " + b + " " + c);
	}
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'public'
    1 | public class A {
      | ^~~~~~
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;
        }   
    else{
    }    
    if(b > c){ 
        x = c;
        c = b;
        b = x;
        }   
    else{
    }    
    if(a > b){ 
        x = a;
        a = b;
        b = x;
        }   
    else{
    }

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

#include<stdio.h>

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

Compiler output:
a.cc:14:10: error: expected unqualified-id before 'else'
   14 |         }else if(a>b){
      |          ^~~~
Language: C++

#include <iostream>
#include <algorithm>

int main()
{
    int x[3];
    std::cin >> x[0] >> x[1] >> x[2];
    sdt::sort(begin(x), end(x));
    std::cout << x[0] << " ";
    std::cout << x[1] << " ";
    std::cout << x[2] << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'sdt' has not been declared
    8 |     sdt::sort(begin(x), end(x));
      |     ^~~
a.cc:8:15: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
    8 |     sdt::sort(begin(x), end(x));
      |               ^~~~~
      |               std::begin
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/range_access.h:114:37: note: 'std::begin' declared here
  114 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
      |                                     ^~~~~
a.cc:8:25: error: 'end' was not declared in this scope; did you mean 'std::end'?
    8 |     sdt::sort(begin(x), end(x));
      |                         ^~~
      |                         std::end
/usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c,t;
cin>>a>>b>>c;

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

cout<<a" "b" "c<<endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:8: error: expected ';' before user-defined string literal
   18 | cout<<a" "b" "c<<endl;
      |        ^~~~
      |        ;
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c,t;
cin>>a>>b>>c;

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

cout<<a<<" "<<b<<" "<<c<<endl;

return 0;
}

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

#include <cstdio>

using namespace std;

int main(){
	int N[2];
	
	for(int i=0; i<2; i++){
	scanf("%d",&N[i]);
	}
	
	sort(N, N+2);
	
	for(int i=0; i<2; i++){
	printf("%d ", N[i]);
	}
	printf("\n");
}

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

#include<iostream>
using namespace std;
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:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:3: 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;
main(){
  int a[3]; 
  cin>>a[0]>>a[1]>>a[2];
  sort(a,a+2);
  cout<<a[0]<<" "<<a[1]<<" "<<a[2]<<endl;
    
}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    6 |   sort(a,a+2);
      |   ^~~~
      |   short
Language: C++

#include<iostream>
using namespace std;
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:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    6 |   sort(a,a+3);
      |   ^~~~
      |   short
Language: C++

    static void Main(string[] args)
    {
        var input = Console.ReadLine();
        var values = input.Split(' ');
        int[] numbers = new int[values.Length];

        int n = 0;
        foreach (var value in values)
        {
            numbers[n] = int.Parse(value);
            n++;
        }
        Array.Sort(numbers);
       
        scanf("%d %d %d\n"numbers[0], numbers[1], numbers[2]);???
    }

Compiler output:
a.cc:1:17: error: variable or field 'Main' declared void
    1 |     static void Main(string[] args)
      |                 ^~~~
a.cc:1:22: error: 'string' was not declared in this scope
    1 |     static void Main(string[] args)
      |                      ^~~~~~
a.cc:1:29: error: expected primary-expression before ']' token
    1 |     static void Main(string[] args)
      |                             ^
Language: C++

    static void Main(string[] args)
    {
        var input = Console.ReadLine();
        var values = input.Split(' ');
        int[] numbers = new int[values.Length];

        int n = 0;
        foreach (var value in values)
        {
            numbers[n] = int.Parse(value);
            n++;
        }
        Array.Sort(numbers);
       
        scanf("%d %d %d\n"numbers[0], numbers[1], numbers[2]);
    }

Compiler output:
a.cc:1:17: error: variable or field 'Main' declared void
    1 |     static void Main(string[] args)
      |                 ^~~~
a.cc:1:22: error: 'string' was not declared in this scope
    1 |     static void Main(string[] args)
      |                      ^~~~~~
a.cc:1:29: error: expected primary-expression before ']' token
    1 |     static void Main(string[] args)
      |                             ^
Language: C++

using System;

class Program
{
    static void Main(string[] args)
    {
        var input = Console.ReadLine();
        var values = input.Split(' ');
        int[] numbers = new int[values.Length];

        int n = 0;
        foreach (var value in values)
        {
            numbers[n] = int.Parse(value);
            n++;
        }
        Array.Sort(numbers);

        Console.WriteLine(string.Format("{0} {1} {2}", numbers[0], numbers[1], numbers[2]));
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:5:22: error: 'string' has not been declared
    5 |     static void Main(string[] args)
      |                      ^~~~~~
a.cc:5:31: error: expected ',' or '...' before 'args'
    5 |     static void Main(string[] args)
      |                               ^~~~
a.cc:21:2: error: expected ';' after class definition
   21 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:7:9: error: 'var' was not declared in this scope
    7 |         var input = Console.ReadLine();
      |         ^~~
a.cc:8:13: error: expected ';' before 'values'
    8 |         var values = input.Split(' ');
      |             ^~~~~~
a.cc:9:12: error: structured binding declaration cannot have type 'int'
    9 |         int[] numbers = new int[values.Length];
      |            ^~
a.cc:9:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:9:12: error: empty structured binding declaration
a.cc:9:15: error: expected initializer before 'numbers'
    9 |         int[] numbers = new int[values.Length];
      |               ^~~~~~~
a.cc:12:22: error: expected ')' before 'value'
   12 |         foreach (var value in values)
      |                      ^~~~~
a.cc:12:17: note: to match this '('
   12 |         foreach (var value in values)
      |                 ^
a.cc:12:9: error: 'foreach' was not declared in this scope
   12 |         foreach (var value in values)
      |         ^~~~~~~
a.cc:17:9: error: 'Array' was not declared in this scope
   17 |         Array.Sort(numbers);
      |         ^~~~~
a.cc:17:20: error: 'numbers' was not declared in this scope
   17 |         Array.Sort(numbers);
      |                    ^~~~~~~
a.cc:19:9: error: 'Console' was not declared in this scope
   19 |         Console.WriteLine(string.Format("{0} {1} {2}", numbers[0], numbers[1], numbers[2]));
      |         ^~~~~~~
a.cc:19:27: error: 'string' was not declared in this scope
   19 |         Console.WriteLine(string.Format("{0} {1} {2}", numbers[0], numbers[1], numbers[2]));
      |                           ^~~~~~
Language: C++

using System;

class Program
{
    public static void Main(string[] args)
    {
        var input = Console.ReadLine();
        var values = input.Split(' ');
        int[] numbers = new int[values.Length];

        int n = 0;
        foreach (var value in values)
        {
            numbers[n] = int.Parse(value);
            n++;
        }
        Array.Sort(numbers);

        Console.WriteLine(string.Format("{0} {1} {2}", numbers[0], numbers[1], numbers[2]));
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static void Main(string[] args)
      |           ^~~~~~~
      |           :
a.cc:5:29: error: 'string' has not been declared
    5 |     public static void Main(string[] args)
      |                             ^~~~~~
a.cc:5:38: error: expected ',' or '...' before 'args'
    5 |     public static void Main(string[] args)
      |                                      ^~~~
a.cc:21:2: error: expected ';' after class definition
   21 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:7:9: error: 'var' was not declared in this scope
    7 |         var input = Console.ReadLine();
      |         ^~~
a.cc:8:13: error: expected ';' before 'values'
    8 |         var values = input.Split(' ');
      |             ^~~~~~
a.cc:9:12: error: structured binding declaration cannot have type 'int'
    9 |         int[] numbers = new int[values.Length];
      |            ^~
a.cc:9:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:9:12: error: empty structured binding declaration
a.cc:9:15: error: expected initializer before 'numbers'
    9 |         int[] numbers = new int[values.Length];
      |               ^~~~~~~
a.cc:12:22: error: expected ')' before 'value'
   12 |         foreach (var value in values)
      |                      ^~~~~
a.cc:12:17: note: to match this '('
   12 |         foreach (var value in values)
      |                 ^
a.cc:12:9: error: 'foreach' was not declared in this scope
   12 |         foreach (var value in values)
      |         ^~~~~~~
a.cc:17:9: error: 'Array' was not declared in this scope
   17 |         Array.Sort(numbers);
      |         ^~~~~
a.cc:17:20: error: 'numbers' was not declared in this scope
   17 |         Array.Sort(numbers);
      |                    ^~~~~~~
a.cc:19:9: error: 'Console' was not declared in this scope
   19 |         Console.WriteLine(string.Format("{0} {1} {2}", numbers[0], numbers[1], numbers[2]));
      |         ^~~~~~~
a.cc:19:27: error: 'string' was not declared in this scope
   19 |         Console.WriteLine(string.Format("{0} {1} {2}", numbers[0], numbers[1], numbers[2]));
      |                           ^~~~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: expected '}' before 'else'
   16 |         else if(b<c&&c<a){
      |         ^~~~
a.cc:14:26: note: to match this '{'
   14 |         else if(b<a&&a<c){
      |                          ^
a.cc: At global scope:
a.cc:25:10: error: expected unqualified-id before 'return'
   25 |         }return 0;
      |          ^~~~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:24:25: error: expected ';' before 'b'
   24 |                 cout <<a b c<< endl ;
      |                         ^~
      |                         ;
a.cc: At global scope:
a.cc:26:10: error: expected unqualified-id before 'return'
   26 |         }return 0;
      |          ^~~~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:26:10: error: expected unqualified-id before 'return'
   26 |         }return 0;
      |          ^~~~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:26:10: error: expected unqualified-id before 'return'
   26 |         }return 0;
      |          ^~~~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:26:10: error: expected unqualified-id before 'return'
   26 |         }return 0;
      |          ^~~~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

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

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

  int a,b,c;

 
  if ( a > b ) {
    swep (a,b)
} else if ( b > c ) {
    swep (b,c)
}else if ( a > b ) {
    swep(a,b)
}





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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'a' was not declared in this scope
    7 |   cin>>a>>b>>c;
      |        ^
a.cc:7:11: error: 'b' was not declared in this scope
    7 |   cin>>a>>b>>c;
      |           ^
a.cc:7:14: error: 'c' was not declared in this scope
    7 |   cin>>a>>b>>c;
      |              ^
a.cc:13:5: error: 'swep' was not declared in this scope
   13 |     swep (a,b)
      |     ^~~~
a.cc:15:5: error: 'swep' was not declared in this scope
   15 |     swep (b,c)
      |     ^~~~
a.cc:17:5: error: 'swep' was not declared in this scope
   17 |     swep(a,b)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'B' was not declared in this scope
   10 | else if (a<c && c<B){cout << a << c << b << endl ; }
      |                   ^
a.cc:11:13: error: expected ';' before '{' token
   11 | (b<a && a<c){cout << b << a << c << endl ; }
      |             ^
      |             ;
a.cc:12:13: error: expected ';' before '{' token
   12 | (b<c && c<a){cout << b << c << a << endl ; }
      |             ^
      |             ;
a.cc:13:13: error: expected ';' before '{' token
   13 | (c<a && a<b){cout << c << a << b << 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 ;}
else if (c<b && b<a){cout << c << b << a << endl ; }
else if (a<c && c<B){cout << a << c << b << endl ; }
else if(b<a && a<c){cout << b << a << c << endl ; }
else if(b<c && c<a){cout << b << c << a << endl ; }
else(c<a && a<b){cout << c << a << b << endl ; }
		return 0 ;
		 
		 
	 }
	

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'B' was not declared in this scope
   10 | else if (a<c && c<B){cout << a << c << b << endl ; }
      |                   ^
a.cc:13:17: error: expected ';' before '{' token
   13 | else(c<a && a<b){cout << c << a << b << endl ; }
      |                 ^
      |                 ;
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:26:9: error: 'cout' does not name a type
   26 |         cout << a <<" "<< b << " " << c <<endl;
      |         ^~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
int a,b,c,i;
int d[4];
for(i=0;i<3;i++){
cin>>a;
d[i]=a;}
if(d[0]>d[1]){
d[0]=d[3];
d[0]=d[1];
}
if(d[4]<d[0]){
for(i=1;i<4;i++){
cout<<d[i]<<" ";
}
else{
for(i=0;i<3;i++){
cout<<d[i]<<" ";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:1: error: expected '}' before 'else'
   17 | else{
      | ^~~~
a.cc:13:14: note: to match this '{'
   13 | if(d[4]<d[0]){
      |              ^
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:17:5: note: to match this '{'
   17 | else{
      |     ^
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;
 
int main()
{
    int abc[3];
    int tmp;
     
    cin>>abc[0]>>abc[1]>>abc[2];
    for( int i=0; i<2; i++ ) {
        for( int j=i+1; j<3; j++ ) {
            if( abc[j] < abc[i] ) {
                tmp=abc[i];
                abc[i]=abc[j];
                abc[j]=tmp;     
            }
        }
    }
 
    cout <<abc[0]<<" "<<abc[1]<<" "<<abc[2]<<endl;
      
    return 0;
}



using namespace std;
 
int main()
{
    int abc[4];
    int tmp;
     
    cin>>abc[0]>>abc[1]>>abc[2];
    for( int i=0; i<2; i++ ) {
        for( int j=i+1; j<3; j++ ) {
            if( abc[j] < abc[i] ) {
                tmp=abc[i];
                abc[i]=abc[j];
                abc[j]=tmp;     
            }
        }
    }
 
    cout <<abc[0]<<" "<<abc[1]<<" "<<abc[2]<<endl;
      
    return 0;

Compiler output:
a.cc:29:5: error: redefinition of 'int main()'
   29 | int main()
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main()
      |     ^~~~
a.cc: In function 'int main()':
a.cc:47:14: error: expected '}' at end of input
   47 |     return 0;
      |              ^
a.cc:30:1: note: to match this '{'
   30 | {
      | ^
Language: C++

#include <algorithm>
#include <iostream>

using namespace std;

int main() {
	const int len = 3;
	int in[len];

	for (int i = 0; i < len; i++)
		cin >> in[i];

	sort(in, in + len);

	for (int i = 0; i < len - 1; i++)
		cout << in[i] << " ";
	cout << in[2] << endl;

	return 0;
}a

Compiler output:
a.cc:20:2: error: 'a' does not name a type
   20 | }a
      |  ^
Language: C++

#include <iostream>
#include <algorithm>

int main(){
 int array[3];
 std::cin >> array[];
 std::sort(array, array+3)

 std::cout << array[0] << " " << array[1] << " " << array[2] << std::endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: expected primary-expression before ']' token
    6 |  std::cin >> array[];
      |                    ^
a.cc:7:27: error: expected ';' before 'std'
    7 |  std::sort(array, array+3)
      |                           ^
      |                           ;
    8 | 
    9 |  std::cout << array[0] << " " << array[1] << " " << array[2] << std::endl;
      |  ~~~
Language: C++

#include <iostream>
#include <algorithm>

int main(){
 int array[3];
 std::cin >> array[];
 std::sort(array, array+3);

 std::cout << array[0] << " " << array[1] << " " << array[2] << std::endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: expected primary-expression before ']' token
    6 |  std::cin >> array[];
      |                    ^
Language: C++

import java.util.Scanner

object Main extends App{
  println(new Scanner(System.in).nextLine().split(" ").map(_.toInt).sorted.mkString(" "))
}

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'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | cin>>a>>b>>c;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | cout<<a<<" "<<b" "<<C<<endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 | cout<<a<<" "<<c<<" "<<b;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 | cout<<c<<" "<<a<<" "<<b<<endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 | cout<<c<<" "<<a<<" "<<b<<endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ';' before string constant
    8 | cout<<a<<" "<<b" "<<C<<endl;
      |                ^~~
      |                ;
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 'C' was not declared in this scope
    8 | cout<<a<<" "<<b<<" "<<C<<endl;
      |                       ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<stdio.h>

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

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

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

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