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


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] s = br.readLine().split(" ");
		int[] arr = new int[3];
		arr[0] = Integer.parseInt(s[0]);
		arr[1] = Integer.parseInt(s[1]);
		arr[2] = Integer.parseInt(s[2]);
		arr = sorted(arr);
		for(int i = 0 ; i < arr.length; i++){
			System.out.print(arr[i]);
			if(i!= arr.length-1){
				System.out.print(" ");
			}
		}
		System.out.println("");
	}
	public static int[] sorted(int[] array){
		int[] ar = array;
		int temp = 0;
		for(int i = 0 ; i < array.length; i++){
			for(int j = i+1 ; j < array.length;j++){
				if(ar[i] > ar[j]){
					temp = ar[i];
					ar[i] = ar[j];
					ar[j] = temp;
				}
			}
		}
		return ar;
	}

}

Compiler output:
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.IOException;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class Main {
      | ^~~~~~
Language: C++

// Example program
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

int main()
{
vector<int>v{3,8,1};
sort(v.begin(),v.end());
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'vector' was not declared in this scope
    9 | vector<int>v{3,8,1};
      | ^~~~~~
a.cc:5:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    4 | #include <algorithm>
  +++ |+#include <vector>
    5 | using namespace std;
a.cc:9:8: error: expected primary-expression before 'int'
    9 | vector<int>v{3,8,1};
      |        ^~~
a.cc:10:6: error: 'v' was not declared in this scope
   10 | sort(v.begin(),v.end());
      |      ^
Language: C++

// Example program
#include <iostream>
using namespace std;

int main(
{
    int a;
    int b;
    int c;
    cin >> a;
    cin >> b;
    cin >> c;
    
    if(a < b && b < c) { // when a < b < c
    ???cout << a << " " << b << " " << c << endl;
    }
    if(a < c && c < b) { // when a < c < b
    ???cout << a << " " << c << " " << b << endl;
    }
    if(b < a && a < c) { // when b < a < c
    ???cout << b << " " << a << " " << c << endl;
    }
    if(a < c && c < b) { // when b < c < a
    ???cout << b << " " << c << " " << a << endl;
    }
    if(c < a && a < b) { // when c < a < b
    ???cout << c << " " << a << " " << b << endl;
    }
    if(c < b && b < a) { // when c < b < a
    ???cout << a << " " << b << " " << c << endl;
    }
}

Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main(
      |     ^~~~
a.cc:7:5: error: expected primary-expression before 'int'
    7 |     int a;
      |     ^~~
a.cc:7:5: error: expected '}' before 'int'
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
a.cc:6:2: error: expected ')' before 'int'
    6 | {
      |  ^
      |  )
    7 |     int a;
      |     ~~~
a.cc:5:9: note: to match this '('
    5 | int main(
      |         ^
a.cc:10:5: error: 'cin' does not name a type
   10 |     cin >> a;
      |     ^~~
a.cc:11:5: error: 'cin' does not name a type
   11 |     cin >> b;
      |     ^~~
a.cc:12:5: error: 'cin' does not name a type
   12 |     cin >> c;
      |     ^~~
a.cc:14:5: error: expected unqualified-id before 'if'
   14 |     if(a < b && b < c) { // when a < b < c
      |     ^~
a.cc:17:5: error: expected unqualified-id before 'if'
   17 |     if(a < c && c < b) { // when a < c < b
      |     ^~
a.cc:20:5: error: expected unqualified-id before 'if'
   20 |     if(b < a && a < c) { // when b < a < c
      |     ^~
a.cc:23:5: error: expected unqualified-id before 'if'
   23 |     if(a < c && c < b) { // when b < c < a
      |     ^~
a.cc:26:5: error: expected unqualified-id before 'if'
   26 |     if(c < a && a < b) { // when c < a < b
      |     ^~
a.cc:29:5: error: expected unqualified-id before 'if'
   29 |     if(c < b && b < a) { // when c < b < a
      |     ^~
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++

// Example program
#include <iostream>
using namespace std;

int main(
{
    int a;
    int b;
    int c;
    cin >> a;
    cin >> b;
    cin >> c;
    
    if(a < b && b < c) { // when a < b < c
    ???cout << a << " " << b << " " << c << end1;
    }
    if(a < c && c < b) { // when a < c < b
    ???cout << a << " " << c << " " << b << end1;
    }
    if(b < a && a < c) { // when b < a < c
    ???cout << b << " " << a << " " << c << end1;
    }
    if(a < c && c < b) { // when b < c < a
    ???cout << b << " " << c << " " << a << end1;
    }
    if(c < a && a < b) { // when c < a < b
    ???cout << c << " " << a << " " << b << end1;
    }
    if(c < b && b < a) { // when c < b < a
    ???cout << c << " " << b << " " << a << end1;
    }
}

Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main(
      |     ^~~~
a.cc:7:5: error: expected primary-expression before 'int'
    7 |     int a;
      |     ^~~
a.cc:7:5: error: expected '}' before 'int'
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
a.cc:6:2: error: expected ')' before 'int'
    6 | {
      |  ^
      |  )
    7 |     int a;
      |     ~~~
a.cc:5:9: note: to match this '('
    5 | int main(
      |         ^
a.cc:10:5: error: 'cin' does not name a type
   10 |     cin >> a;
      |     ^~~
a.cc:11:5: error: 'cin' does not name a type
   11 |     cin >> b;
      |     ^~~
a.cc:12:5: error: 'cin' does not name a type
   12 |     cin >> c;
      |     ^~~
a.cc:14:5: error: expected unqualified-id before 'if'
   14 |     if(a < b && b < c) { // when a < b < c
      |     ^~
a.cc:17:5: error: expected unqualified-id before 'if'
   17 |     if(a < c && c < b) { // when a < c < b
      |     ^~
a.cc:20:5: error: expected unqualified-id before 'if'
   20 |     if(b < a && a < c) { // when b < a < c
      |     ^~
a.cc:23:5: error: expected unqualified-id before 'if'
   23 |     if(a < c && c < b) { // when b < c < a
      |     ^~
a.cc:26:5: error: expected unqualified-id before 'if'
   26 |     if(c < a && a < b) { // when c < a < b
      |     ^~
a.cc:29:5: error: expected unqualified-id before 'if'
   29 |     if(c < b && b < a) { // when c < b < a
      |     ^~
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int a;
  int b;
  int c;
  cin >>a;
  cin >>b;
  cin >>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
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:38: error: expected ';' before 'endl'
   13 |     cout << a << " " << b << " " << c endl
      |                                      ^~~~~
      |                                      ;
a.cc:16:38: error: expected ';' before 'endl'
   16 |     cout << a << " " << c << " " << b endl
      |                                      ^~~~~
      |                                      ;
a.cc:19:38: error: expected ';' before 'endl'
   19 |     cout << b << " " << a << " " << c endl
      |                                      ^~~~~
      |                                      ;
a.cc:22:38: error: expected ';' before 'endl'
   22 |     cout << b << " " << c << " " << a endl
      |                                      ^~~~~
      |                                      ;
a.cc:25:38: error: expected ';' before 'endl'
   25 |     cout << c << " " << a << " " << b endl
      |                                      ^~~~~
      |                                      ;
a.cc:28:38: error: expected ';' before 'endl'
   28 |     cout << c << " " << b << " " << a endl
      |                                      ^~~~~
      |                                      ;
Language: C++

// Example program
#include <iostream>
#include <vector>
#include<algorithm>
using namespace std;
int main()
{
  int a;
 int b;
 int c;
 cin >> a;
 cin >> b;
 cin >> c;
 
 vector<int>v{a,b,c};
 sort(v.begin(),v.end())
 cout <<v[0]<<""<<v[1]<<""<<v[2]<< endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: expected ';' before 'cout'
   16 |  sort(v.begin(),v.end())
      |                         ^
      |                         ;
   17 |  cout <<v[0]<<""<<v[1]<<""<<v[2]<< endl;
      |  ~~~~
Language: C++

// Example program
#include <iostream>
using namespace std;

int main()
{

} 
     int a;
    int b;
    int c;
    cin >> a;
    cin >> b;
    cin >> c;
    
    if(a < b && b < c) { // when a < b < c
        cout << a << " " << b << " " << c << endl;
    }
    if(a < c && c < b) { // when a < c < b
        cout << a << " " << c << " " << b << endl;
    }
    if(b < a && a < c) { // when b < a < c
        cout << b << " " << a << " " << c << endl;
    }
    if(a < c && c < b) { // when b < c < a
        cout << b << " " << c << " " << a << endl;
    }
    if(c < a && a < b) { // when c < a < b
        cout << c << " " << a << " " << b << endl;
    }

Compiler output:
a.cc:12:5: error: 'cin' does not name a type
   12 |     cin >> a;
      |     ^~~
a.cc:13:5: error: 'cin' does not name a type
   13 |     cin >> b;
      |     ^~~
a.cc:14:5: error: 'cin' does not name a type
   14 |     cin >> c;
      |     ^~~
a.cc:16:5: error: expected unqualified-id before 'if'
   16 |     if(a < b && b < c) { // when a < b < c
      |     ^~
a.cc:19:5: error: expected unqualified-id before 'if'
   19 |     if(a < c && c < b) { // when a < c < b
      |     ^~
a.cc:22:5: error: expected unqualified-id before 'if'
   22 |     if(b < a && a < c) { // when b < a < c
      |     ^~
a.cc:25:5: error: expected unqualified-id before 'if'
   25 |     if(a < c && c < b) { // when b < c < a
      |     ^~
a.cc:28:5: error: expected unqualified-id before 'if'
   28 |     if(c < a && a < b) { // when c < a < b
      |     ^~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int a;
  int b;
  int c;
  cin >>a;
  cin >>b;
  cin >>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;
  }
  
}

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'vector' was not declared in this scope
    5 |   vector<int> v;
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:5:10: error: expected primary-expression before 'int'
    5 |   vector<int> v;
      |          ^~~
a.cc:13:3: error: 'v' was not declared in this scope
   13 |   v.push_back(a);
      |   ^
a.cc:17:1: error: 'sort' was not declared in this scope; did you mean 'short'?
   17 | sort(v.begin(),v.end());
      | ^~~~
      | short
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'buff' was not declared in this scope; did you mean 'buf'?
    8 |                 buff=a;
      |                 ^~~~
      |                 buf
a.cc:13:17: error: 'buff' was not declared in this scope; did you mean 'buf'?
   13 |                 buff=b;
      |                 ^~~~
      |                 buf
a.cc:18:17: error: 'buff' was not declared in this scope; did you mean 'buf'?
   18 |                 buff=a;
      |                 ^~~~
      |                 buf
Language: C++

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

int main(){
   int a[3];
   cin >> a[0] >> a[1] >> a[2];
   stable_sort(a,a + 3);
   cout << a[0] << ' ' << a[1] << ' ' << a[2];
}

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

import java.util.*;
class Main {
	public static void main (String[] args) throws java.lang.Exception {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[3];
		for(int i = 0; i < 3; i++) a[i] = sc.nextInt();
		Arrays.sort(a);
		System.out.println(a[0] + " " + a[1] + " " + a[2]);
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:15: error: expected ':' before 'static'
    3 |         public static void main (String[] args) throws java.lang.Exception {
      |               ^~~~~~~
      |               :
a.cc:3:34: error: 'String' has not been declared
    3 |         public static void main (String[] args) throws java.lang.Exception {
      |                                  ^~~~~~
a.cc:3:43: error: expected ',' or '...' before 'args'
    3 |         public static void main (String[] args) throws java.lang.Exception {
      |                                           ^~~~
a.cc:3:47: error: expected ';' at end of member declaration
    3 |         public static void main (String[] args) throws java.lang.Exception {
      |                                               ^
      |                                                ;
a.cc:3:49: error: 'throws' does not name a type
    3 |         public static void main (String[] args) throws java.lang.Exception {
      |                                                 ^~~~~~
a.cc:10:2: error: expected ';' after class definition
   10 | }
      |  ^
      |  ;
Language: C++

  1 #include<iostream>
  2 
  3 using namespace std;
  4 
  5 int main () {
  6     int a, b, c, t;
  7     cin >> a >> b >> c;
  8     if (a > b) {
  9         t = a;
 10         a = b;
 11         b = t;
 12     }
 13     if (b > c) {
 14         t = b;
 15         b = c;
 16         c = t;
 17     }
 18     if (a > b) {
 19         t = a;
 20         a = b;
 21         b = t;
 22     }
 23     cout << a << b << c << endl;
 24     return 0;
 25 }

Compiler output:
a.cc:1:5: error: stray '#' in program
    1 |   1 #include<iostream>
      |     ^
a.cc:1:3: error: expected unqualified-id before numeric constant
    1 |   1 #include<iostream>
      |   ^
a.cc:4:3: error: expected unqualified-id before numeric constant
    4 |   4
      |   ^
Language: C++

#include<stdio.h>

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

	scanf("%d %d %d\n",&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;
	}
	printf("%d %d %d\n",a,b,c)

	return 0;
}

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


#include "practice.hpp"
#include<iostream>
using namespace std;

void swap(int *x,int *y);

int main()
{
    int a,b,c;
    cout<<"???????????´??°?????\???\n";
    cin>>a>>b>>c;
    swap(a,b);
    swap(b,c);
    swap(a,b);
    cout<<a<<' '<<b<<' '<<c<<"\n";
}

void swap(int *x,int *y)
{
    if(*x>*y){
        int t;
        t=*x;
        *x=*y;
        *y=t;
    }
}

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

#include<iostream>
using namespace std;

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

	if (a < b) 
	{
		if (b < c)	message(a, b, c);
		else
		{
			if (a < c)	message(a, c, b);
			else message(c, a, b);
		}
	}
	else
	{
		if (a < c)	message(b, a, c);
		else
		{
			if (b < c)	message(b, c, a);
			else message(c, b, a);
		}
	}

	return 0;

}

void message(int x, y, z) {
	cout << x << " " << y << " " << z << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: 'message' was not declared in this scope
   11 |                 if (b < c)      message(a, b, c);
      |                                 ^~~~~~~
a.cc:14:41: error: 'message' was not declared in this scope
   14 |                         if (a < c)      message(a, c, b);
      |                                         ^~~~~~~
a.cc:15:30: error: 'message' was not declared in this scope
   15 |                         else message(c, a, b);
      |                              ^~~~~~~
a.cc:20:33: error: 'message' was not declared in this scope
   20 |                 if (a < c)      message(b, a, c);
      |                                 ^~~~~~~
a.cc:23:41: error: 'message' was not declared in this scope
   23 |                         if (b < c)      message(b, c, a);
      |                                         ^~~~~~~
a.cc:24:30: error: 'message' was not declared in this scope
   24 |                         else message(c, b, a);
      |                              ^~~~~~~
a.cc: At global scope:
a.cc:32:21: error: 'y' has not been declared
   32 | void message(int x, y, z) {
      |                     ^
a.cc:32:24: error: 'z' has not been declared
   32 | void message(int x, y, z) {
      |                        ^
a.cc: In function 'void message(int, int, int)':
a.cc:33:29: error: 'y' was not declared in this scope
   33 |         cout << x << " " << y << " " << z << endl;
      |                             ^
a.cc:33:41: error: 'z' was not declared in this scope
   33 |         cout << x << " " << y << " " << z << endl;
      |                                         ^
Language: C++


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

Compiler output:
a.cc:2:5: error: expected unqualified-id before '{' token
    2 |     {
      |     ^
a.cc:5:3: error: expected unqualified-id before 'if'
    5 |   if(a==b)
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'if'
    9 |   if(b<a)
      |   ^~
a.cc:14:3: error: expected unqualified-id before 'if'
   14 |   if(c<a)
      |   ^~
a.cc:19:3: error: expected unqualified-id before 'if'
   19 |   if(b<c)
      |   ^~
Language: C++

#include <iostream>
using namespace std;
#define REP(i,k,n) for(int i=k;i<n;i++)
#define rep(i,j) for(int i=0;i<n;i++)

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; c = b; b = t;

	cout << a << b << c << \n;

	return 0;
}

Compiler output:
a.cc:15:32: error: stray '\' in program
   15 |         cout << a << b << c << \n;
      |                                ^
a.cc: In function 'int main()':
a.cc:15:33: error: 'n' was not declared in this scope
   15 |         cout << a << b << c << \n;
      |                                 ^
Language: C++

import java.util.Scanner;

public class Main{
 public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  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){
     System.out.printf("%d %d %d ?\n", a,c,b);
    }else{
      System.out.printf("%d %d %d ?\n", c,a,b);
    }
   }else{
     if(a<c){
     System.out.printf("%d %d %d ?\n", b,a,c);
    }else if(b<c){
     System.out.printf("%d %d %d ?\n", b,c,a);
    }else{
      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 x;
    int a,b,c;
    
    cin >> a >> b >>c;  
    if(b < a){
        x = a;
        a = b;
        b = x;
    }
    if(c < a){
        x = a;
        a = c;
        c = x;
        x = b;
        b = c;
        C = x;
        return 0;
    }
    if(b < c){
        x = c;
        c = b;
        b = x;
    }
    
    cout << a << " " << b << " " << c << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: 'C' was not declared in this scope
   21 |         C = x;
      |         ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:44: error: expected primary-expression before '<<' token
   13 |         else if (c<b)cout << a <<" "<< c <<<<" " b << endl;
      |                                            ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected '(' before 'a'
    7 |                         switch a,b;
      |                                ^
      |                                (
a.cc:9:32: error: expected '(' before 'a'
    9 |                         switch a,c;
      |                                ^
      |                                (
a.cc:11:32: error: expected '(' before 'b'
   11 |                         switch b,c;
      |                                ^
      |                                (
Language: C++

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

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

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

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	int a, b, c;
	cin >> a >> b >> c;
	cout << a << b << c;
	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;
    return 0;
}

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

// ConsoleApplication2.cpp : ??????????????? ??¢????????±????????§????????¨????????? ?????????????????????????????????
//

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

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	int a, b, c;
	cin >> a >> b >> c;
	cout << a << b << c;
	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;
}

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


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

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	int a, b, c;
	cin >> a >> b >> c;
	cout << a << b << c;
	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;
}

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

// ConsoleApplication2.cpp : ??????????????? ??¢????????±????????§????????¨????????? ?????????????????????????????????
//

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

using namespace std;

int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	cout << a << b << c;
	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;
}

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



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

using namespace std;

int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	cout << a << b << c;
	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;
}

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


#include "stdafx.h"
#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
	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;
	return 0;
}

Compiler output:
a.cc:2:10: fatal error: stdafx.h: No such file or directory
    2 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
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>b&&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>b&&b>=a){
		cout<<c<<" "<<b<<" "<<a<<endl;
	}
	if(c>a&&a>b){
		cout<<c<<" "<<a<<" "<<b<<endl;
	}else{
		cout<<a<<" "<<b<<" "<<c<<endl;
	return 0;
}

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

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

Compiler output:
a.cc:3:1: error: expected initializer before 'int'
    3 | int a,b,c;
      | ^~~
a.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token
    4 | scanf("%d,%d,%d",&a,&b,&c);
      |      ^
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if(a<b&&b<c)
      | ^~
a.cc:9:1: error: expected unqualified-id before 'return'
    9 | return 0;
      | ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

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

Compiler output:
a.cc:7:25: error: stray '\' in program
    7 |  printf("%d,%d,%d",a,b,c\n);
      |                         ^
a.cc:3:1: error: expected initializer before 'int'
    3 | int a,b,c;
      | ^~~
a.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token
    4 | scanf("%d,%d,%d",&a,&b,&c);
      |      ^
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if(a<b&&b<c)
      | ^~
a.cc:9:1: error: expected unqualified-id before 'return'
    9 | return 0;
      | ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

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

int main(int argc, char* argv[]) {
 vector<int> input;
 cin >> input[0] >> input[1] >> input[2];
 
 sort(input);
 cout << input[0] << ' ' << input[1] << ' ' << input[2] << endl;
 
 return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:6:2: error: 'vector' was not declared in this scope
    6 |  vector<int> input;
      |  ^~~~~~
a.cc:6:2: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:6:9: error: expected primary-expression before 'int'
    6 |  vector<int> input;
      |         ^~~
a.cc:7:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |  cin >> input[0] >> input[1] >> input[2];
      |  ^~~
      |  std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:9: error: 'input' was not declared in this scope; did you mean 'int'?
    7 |  cin >> input[0] >> input[1] >> input[2];
      |         ^~~~~
      |         int
a.cc:9:2: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    9 |  sort(input);
      |  ^~~~
      |  std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:1:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
a.cc:10:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |  cout << input[0] << ' ' << input[1] << ' ' << input[2] << 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:10:60: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |  cout << input[0] << ' ' << input[1] << ' ' << input[2] << 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 <algorithm>
#include <iostream>
#include <vector>

using namespace std;

int main(int argc, char* argv[]) {
 vector<int> input;
 cin >> input[0] >> input[1] >> input[2];
 
 sort(input);
 cout << input[0] << ' ' << input[1] << ' ' << input[2] << endl;
 
 return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:11:6: error: no matching function for call to 'sort(std::vector<int>&)'
   11 |  sort(input);
      |  ~~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 1 provided
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:7:24: error: expected ';' before 'b'
    7 |                 cout<<a b c<<endl;
      |                        ^~
      |                        ;
a.cc:10:24: error: expected ';' before 'c'
   10 |                 cout<<a c b<<endl;
      |                        ^~
      |                        ;
a.cc:13:24: error: expected ';' before 'a'
   13 |                 cout<<b a c<<endl;
      |                        ^~
      |                        ;
a.cc:16:24: error: expected ';' before 'c'
   16 |                 cout<<b c a<<endl;
      |                        ^~
      |                        ;
a.cc:19:24: error: expected ';' before 'a'
   19 |                 cout<<c a b<<endl;
      |                        ^~
      |                        ;
a.cc:22:24: error: expected ';' before 'b'
   22 |                 cout<<c b a<<endl;
      |                        ^~
      |                        ;
Language: C++

#  GNU nano 2.2.6              ????????????: 2_c.py                                  

n=raw_input()
k=n.split(n)
k.sort()
#k=[3,2,1]
print k[0],
print k[1],
print k[2]

Compiler output:
a.cc:1:4: error: invalid preprocessing directive #GNU
    1 | #  GNU nano 2.2.6              ????????????: 2_c.py
      |    ^~~
a.cc:6:2: error: invalid preprocessing directive #k
    6 | #k=[3,2,1]
      |  ^
a.cc:3:1: error: 'n' does not name a type
    3 | n=raw_input()
      | ^
Language: C++

#include <iostream>
#include<algorithm>

using namespace std;

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

	if (a > b) {
		swap(a, b);
	}
    if (b > c) {
		swap(b, c);
	}
	if (a > b) {
		swap(a, b);
	}javascript:void(0)
	cout << a << " " << b << " " << c << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:28: error: expected ';' before 'cout'
   18 |         }javascript:void(0)
      |                            ^
      |                            ;
   19 |         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;
  }
  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 if(c<b&&b<a){
    cout<<c<" "<<b<<" "<<a<<endl;
  }
  else 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 if(c==b&&b<a){
    cout<<c<<" "<<b<<" "<<a<<endl;
  }
  else if(a==b&&b==c){
    cout<<a<<" "<<b<<" "<<c<<nedl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:16: error: invalid operands of types 'const char [2]' and 'int' to binary 'operator<<'
   22 |     cout<<c<" "<<b<<" "<<a<<endl;
      |             ~~~^~~
      |             |    |
      |             |    int
      |             const char [2]
a.cc:43:30: error: 'nedl' was not declared in this scope
   43 |     cout<<a<<" "<<b<<" "<<c<<nedl;
      |                              ^~~~
Language: C++

#include <iostream>
using namespace std;

void sort(int a, int b, int c){
int t=0;
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

}
int main(){
int a, b, c;
cin >> a >> b >> c;
sort(a,b,c);
return 0;
}
/*
9 6 3 (0

6 9 3 (1 a < b
6 3 9 (2 b c
3 6 9 (3 a b

*/

Compiler output:
a.cc: In function 'void sort(int, int, int)':
a.cc:23:34: error: expected ';' before '}' token
   23 | cout << a << " " << b << " " << c
      |                                  ^
      |                                  ;
   24 | 
   25 | }
      | ~
Language: C++

#include<iostream>
using namespace std;

int main(){

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: expected ';' before 'a'
   10 |                 b = i
      |                      ^
      |                      ;
   11 |                 a = b;
      |                 ~
Language: C++

#include<iostream>
using namespace std;

int main(){

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: expected ';' before '}' token
   13 |                 j = a
      |                      ^
      |                      ;
   14 |         }
      |         ~             
a.cc:25:22: error: expected ';' before '}' token
   25 |                 j = c
      |                      ^
      |                      ;
   26 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;
int main(){
int a,b,c;
int min,max;
cin>>a>>b>>c;
if(a<b&&b<c)
min=a;
else if(b<a&&b<c)
min=b;
else
min=c;
if(a-b>0&&a-c>0)
max=a;
else if(b-a>0&&b-c)
max=b;
else
max=c;
cout<<min<<" "<<a+b+c-min-max<<" "max;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:32: error: unable to find string literal operator 'operator""max' with 'const char [2]', 'long unsigned int' arguments
   19 | cout<<min<<" "<<a+b+c-min-max<<" "max;
      |                                ^~~~~~
Language: C++

#include <stdio.h>
int main(void)
{
    int a,b,c,e,f,x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if(x>y){
    a=x;
    b=y;
    x=b;
    y=a;
    }
    if(y>z){
    c=y;
    d=z;
    y=d;
    z=c;
    }
    if(x>y){
    e=x;
    f=y;
    x=f;
    y=e;
    }
    printf("%d %d %d",x,y,z);
    
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'd' was not declared in this scope
   14 |     d=z;
      |     ^
Language: C++

#include<stdio.h>
int main(void)
{

int a,b,c;

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

if(a>b){

int t;

t=a;

a=b;

b=t;

}

if(b>c){

int t;

t=b;

b=c;

c=t;

}

if(a>b){

int t;

t=a;

a=b;

b=t;

}

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

return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:1: error: 'print' was not declared in this scope; did you mean 'printf'?
   45 | print("%d %d %d\n",a,b,c);
      | ^~~~~
      | printf
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: 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++

#include <iostream>
using namespace std;

int main() {
  int a, b, c, tmp;
  cin >> a >> b >> c;
  array<int, 3> ary{a, b, c};
  if (ary[0] > ary[1]) {
    tmp = ary[0];
    ary[0] = ary[1];
    ary[1] = tmp;
  }
  if (ary[1] > ary[2]) {
    tmp = ary[1];
    ary[1] = ary[2];
    ary[2] = tmp;
  }
  if (ary[0] > ary[1]) {
    tmp = ary[0];
    ary[0] = ary[1];
    ary[1] = tmp;
  }
  cout << ary[0] << " " << ary[1] << " " << ary[2] << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: variable 'std::array<int, 3> ary' has initializer but incomplete type
    7 |   array<int, 3> ary{a, b, c};
      |                 ^~~
a.cc:2:1: note: 'std::array' is defined in header '<array>'; this is probably fixable by adding '#include <array>'
    1 | #include <iostream>
  +++ |+#include <array>
    2 | using namespace std;
Language: C++

#include <iostream>
using namespace std;
  
int main() {
  int a, b, c, tmp;
  cin >> a >> b >> c;
  int ary[3] = [a, b, c];
  if (ary[0] > ary[1]) {
    tmp = ary[0];
    ary[0] = ary[1];
    ary[1] = tmp;
  }
  if (ary[1] > ary[2]) {
    tmp = ary[1];
    ary[1] = ary[2];
    ary[2] = tmp;
  }
  if (ary[0] > ary[1]) {
    tmp = ary[0];
    ary[0] = ary[1];
    ary[1] = tmp;
  }
  cout << ary[0] << " " << ary[1] << " " << ary[2] << endl;
  return 0;
}

Compiler output:
a.cc: In lambda function:
a.cc:7:25: error: expected '{' before ';' token
    7 |   int ary[3] = [a, b, c];
      |                         ^
a.cc: In function 'int main()':
a.cc:7:16: error: array must be initialized with a brace-enclosed initializer
    7 |   int ary[3] = [a, b, c];
      |                ^~~~~~~~~
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:11:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   11 |         sort(A, A+3);
      |         ^~~~
      |         short
Language: C++

import java.io.*;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String inputed = new String(in.readLine());

		String value[] = inputed.split("[\\s]+");
		//int intInputed = Integer.parseInt(inputed);

		int first  = Integer.parseInt(value[0]);
		int second = Integer.parseInt(value[1]);
		int third  = Integer.parseInt(value[2]);

		int[] intvalue = new int[3];
		intvalue[0] = first;
		intvalue[1] = second;
		intvalue[2] = third;

		intvalue = sort(intvalue, 0, 1);
		intvalue = sort(intvalue, 1, 2);
		intvalue = sort(intvalue, 0, 1);

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




	}
	public static int[] sort(int[] array, int number, int number2) {
		if (array[number] > array[number2]) {
			int pos1 = array[number];
			int pos2 = array[number2];

			array[number]  = pos2;
			array[number2] = pos1;
		}

			return array;


	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
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 <stdio.h>

int main(void){
int a,b,c,x;
scant("%d %d %d",&a,&b,&c);
if (a > b){
x = a;
a = b;
b = x;
}
if (b > c){
x = b;
b = c;
c = x;
}
if (a > b){
x = a;
a = b;
b = x;
}
printf("%d %d %d\n",a,b,c);

return 0;
}

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

#include <iostream>
#include <algorithm>

int main(int argc, char const *argv[])
{

	int table[3];

	std::cin >> table[0] >> table[1] >> table[2];


	std:qsort_s((void *)table,
				sizeof(table) / sizeof(table[0]),
				sizeof(table[0],
				[](void *context, const void *item1, const void *item2) {
					return (*(int *)item1 - *(int *)item2);
				},
				table);

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

	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:15:33: error: lambda-expression in unevaluated context only available with '-std=c++20' or '-std=gnu++20'
   15 |                                 [](void *context, const void *item1, const void *item2) {
      |                                 ^