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

#include <algorithm>
#include <iostream>
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: In function 'int main()':
a.cc:10:16: error: expected ';' before '}' token
   10 | cout<<a[i]<<" "}
      |                ^
      |                ;
Language: C++

#include <algorithm>
#include <iostream>
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: In function 'int main()':
a.cc:10:15: error: expected ';' before '}' token
   10 | cout<<a[i]<<""}
      |               ^
      |               ;
Language: C++

#include <algorithm>
#include <iostream>
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: In function 'int main()':
a.cc:10:15: error: expected ';' before '}' token
   10 | cout<<a[i]<<""};
      |               ^
      |               ;
Language: C++

#include <iostream>

using namespace std;

int main(){

int a,b,c,d;

cin a >> b >> c;

if(a > b){
d = a;
a = b;
b = a;
}
if(b > c){
d = b;
b = c;
c = d;
}
if(a > b){
d = a;
a = b;
b = a;
}
cout << a << " " << b << " " << " " << c << endl;

}

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

#include <iostream>

using namespace std;

int main(){

int a,b,c,d;

cin a >> b >> c;

if(a > b){
d = a;
a = b;
b = a;
}
if(b > c){
d = b;
b = c;
c = d;
}
if(a > b){
d = a;
a = b;
b = a;
}
cout << a << " " << b << " " << c << endl;

}

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

#include <iostream>

using namespace std;

int main(){

int a,b,c,d;

cin a >> b >> c;

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

}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:25: error: 'c' was not declared in this scope
    4 | scanf("%d %d %d",&a,&b,&c);
      |                         ^
a.cc:17:10: error: expected ';' before '{' token
   17 | else(b>a){
      |          ^
      |          ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: expected ';' before '{' token
   17 | else(b>a){
      |          ^
      |          ;
Language: C++

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

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

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int c	 = scanner.nextInt();

		List<Integer> integerList = Arrays.asList(a,b,c);
		Collections.sort(integerList);

		System.out.println(integerList.get(0) + " " + integerList.get(1) + " "
				+ integerList.get(2));
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Arrays;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Collections;
      | ^~~~~~
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.util.List;
      | ^~~~~~
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.util.Scanner;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: expected unqualified-id before 'public'
    6 | public class Main {
      | ^~~~~~
Language: C++

#include<iostream> 
using namespace std; 
int main(){ 
 int a,b,c,A,B,C,x1,x2,x3;
 A=B=C=x1=x2=x3=0;
 cin>>a>>b>>c;
 if(a>b){
  A+=1;
 }else if(b>a){
  B+=1;
 }
 if(a>c){
  A+=1;
 }else if(c>a){
  C+=1;
 }
 if(b>c){
  B+=1;
 }else if(c>b){
  C+=1;
 }
 A+=1;
 B+=1;
 C+=1;
 switch(A){
  case 1:
   x1=a;
   break;
  case 2:
   x2=a;
   break;
  case 3:
   x3=a;
   break;
}
  switch(B){
  case 1:
   if(x1!=0){
    x2=b;
   }else if{
    x1=b;
   }
   break;
  case 2:
   if(x2!=0){
    x3=b;
   }else if{
    x2=b;
   }
   break;
  case 3:
   x3=b;
   break;
}
 
 switch(A){
  case 1:
   if(x1!=0){
    x2=c;
   }else if{
    x1=c;
   }
   break;
  case 2:
   if(x2!=0){
    x3=c;
   }else if{
    x2=c;
   }
   break;
  case 3:
   x3=c;
   break;
}

 if(a==b && b==c){
  cout<<a<<" "<<b<<" "<<c<<endl;
 }else{
  cout<<x1<<" "<<x2<<" "<<x3<<endl;
 }



  return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:12: error: expected '(' before '{' token
   40 |    }else if{
      |            ^
      |            (
a.cc:47:12: error: expected '(' before '{' token
   47 |    }else if{
      |            ^
      |            (
a.cc:60:12: error: expected '(' before '{' token
   60 |    }else if{
      |            ^
      |            (
a.cc:67:12: error: expected '(' before '{' token
   67 |    }else if{
      |            ^
      |            (
Language: C++

#include <stdio.h>

main()
{
 int i[3],j,k,temp;
 scanf("%d %d %d\n",&i[0],&i[1],&i[2]);

 x=i[0];

for(j=0;j<2;j++)
{
for(k=2;k>j;k--)
{

 if(i[k]>i[k+1])
  {
   temp=i[k];
   i[k]=i[k+1];
   i[k+1]=temp;
  }

}
}
}

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:8:2: error: 'x' was not declared in this scope
    8 |  x=i[0];
      |  ^
Language: C++

#include <stdio.h>

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

main()
{
 int i[3],j,k;
 scanf("%d %d %d",&i[0],&i[1],&i[2]);

 for(j=0;j<2;j++)
 {
  for(k=2;k>j;k--)
  {
   if(i[k]>i[k+1]) exchange(&i[k],&i[k+1]);
  }
 }

 printf("%d %d %d\n",&i[0],&i[1],&i[2],)
}

Compiler output:
a.cc:11:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   11 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:24:40: error: expected primary-expression before ')' token
   24 |  printf("%d %d %d\n",&i[0],&i[1],&i[2],)
      |                                        ^
Language: C++

#include <iostream>
using namespace std;



int main(void){
	
	int a[3];
	int temp;
	for(int i = 0; i < 3; i++){
		cin >> a[i];
	}
	for(int i = 1; i < 3; i++){
		if(a[i-1] <= a[i]){}
		else(a[i-1] > a[i]){
			temp = a[i-1];
			a[i-1] = a[i];
			a[i] = temp;
		}
	}
	for(int i = 0; i < 3; i++){
		cout << a[i];
		if(i == (3-1)) cout << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:36: error: expected ';' before '{' token
   15 |                 else(a[i-1] > a[i]){
      |                                    ^
      |                                    ;
Language: C++

#include <iostream>
using namespace std;



int main(void){
	
	int a[3];
	int temp;
	for(int i = 0; i < 3; i++){
		cin >> a[i];
	}
	for(int i = 1; i < 3; i++){
		if(a[i-1] <= a[i]){}
		else(a[i-1] > a[i]){
			temp = a[i-1];
			a[i-1] = a[i];
			a[i] = temp;
		}
	}
	for(int i = 0; i < 3; i++){
		cout << a[i];
		if(i == (3-1)) cout << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:36: error: expected ';' before '{' token
   15 |                 else(a[i-1] > a[i]){
      |                                    ^
      |                                    ;
Language: C++

#include <iostream>
using namespace std;



int main(void){
	
	int a[3];
	int temp;
	for(int i = 0; i < 3; i++){
		cin >> a[i];
	}
	for(int i = 1; i < 3; i++){
		if(a[i-1] <= a[i])
		else(a[i-1] > a[i]){
			temp = a[i-1];
			a[i-1] = a[i];
			a[i] = temp;
		}
	}
	for(int i = 0; i < 3; i++){
		cout << a[i];
		if(i == (3-1)) cout << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: expected primary-expression before 'else'
   15 |                 else(a[i-1] > a[i]){
      |                 ^~~~
Language: C++

#include <iostream>
using namespace std;

void swap_asc(int *a, int *b){
	int temp;
	if(*a >= *b){
		temp = *a;
		*a = *b;
		*b = *a;
	}
}

int main(void){

	int a[3];
	for(int i = 0; i < 3; i++){
		cin >> a[i];
	}

	for(int i = 0; i < 3; i++){
		swap_asc(&a[0], &a[1]);
		swap_asc(&a[1], &a[2]);
	}

	for(int i = 0; i < 3; i++){
		cout << a[i] << '';
	}

	return 0;
}

Compiler output:
a.cc:26:33: error: empty character constant
   26 |                 cout << a[i] << '';
      |                                 ^~
Language: C++

#include<iostream>
using namespace std;

int main()
{
int a[4]={-1000000000,0,0,0},int b[4],int c;
cin>>a[1]>>a[2]>>a[3];
for(int i=1;i<4;i++){
b[i]=a[i];
for(int j=i;j>0;j--){
if(b[j]<b[j-1]){
c=b[j-1];
b[j-1]=b[j]
b[j]=c;
}
}
}
cout<<b[1]<<b[2]<<b[3]<<endl;
return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:6:30: error: expected unqualified-id before 'int'
    6 | int a[4]={-1000000000,0,0,0},int b[4],int c;
      |                              ^~~
a.cc:9:1: error: 'b' was not declared in this scope
    9 | b[i]=a[i];
      | ^
a.cc:12:1: error: 'c' was not declared in this scope
   12 | c=b[j-1];
      | ^
a.cc:18:7: error: 'b' was not declared in this scope
   18 | cout<<b[1]<<b[2]<<b[3]<<endl;
      |       ^
a.cc:19:10: error: expected '}' at end of input
   19 | return 0;
      |          ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
int a[4]={-1000000000,0,0,0},b[4],c;
cin>>a[1]>>a[2]>>a[3];
for(int i=1;i<4;i++){
b[i]=a[i];
for(int j=i;j>0;j--){
if(b[j]<b[j-1]){
c=b[j-1];
b[j-1]=b[j]
b[j]=c;
}
}
}
cout<<b[1]<<b[2]<<b[3]<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: expected ';' before 'b'
   13 | b[j-1]=b[j]
      |            ^
      |            ;
   14 | b[j]=c;
      | ~
Language: C++

#include <iostream>
using namespace std;

int max(int a, int b){
    if(a>b) return a;
    else return b;
}

int min(int a, int b){
    if(a<b) return a;
    else return b;
}

int main(){
    int a,b,c;
    cin >> a >> b >> c;
    cout << "max "  << max(a, max(b,c)) << endl;
    cout << "mid "  << a+b+c-min-max << endl;
    cout << "min "  << min(a, min(b,c)) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:29: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator-'
   18 |     cout << "mid "  << a+b+c-min-max << endl;
      |                        ~~~~~^~~~
Language: C++

int x[3];
int y[3];
int buf;
int i, j;

cin >> &x[0] >> &x[1] >> &x[2];

for( i = 0; i < 3; i++ ){
	for( j = i; j < 3; j++ ){
		if( x[i] >= x[j] ){
			min = x[i];
		}
	}
	y[i] = min;
	cout << y[i] << endl;
}

Compiler output:
a.cc:6:1: error: 'cin' does not name a type
    6 | cin >> &x[0] >> &x[1] >> &x[2];
      | ^~~
a.cc:8:1: error: expected unqualified-id before 'for'
    8 | for( i = 0; i < 3; i++ ){
      | ^~~
a.cc:8:13: error: 'i' does not name a type
    8 | for( i = 0; i < 3; i++ ){
      |             ^
a.cc:8:20: error: 'i' does not name a type
    8 | for( i = 0; i < 3; i++ ){
      |                    ^
Language: C++

int x[3];
int y[3];
int i, j;

cin >> &x[0] >> &x[1] >> &x[2];

for( i = 0; i < 3; i++ ){
	for( j = i; j < 3; j++ ){
		if( x[i] >= x[j] ){
			y[i] = x[i];
		}
	}
	cout << y[i] << endl;
}

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> &x[0] >> &x[1] >> &x[2];
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'for'
    7 | for( i = 0; i < 3; i++ ){
      | ^~~
a.cc:7:13: error: 'i' does not name a type
    7 | for( i = 0; i < 3; i++ ){
      |             ^
a.cc:7:20: error: 'i' does not name a type
    7 | for( i = 0; i < 3; i++ ){
      |                    ^
Language: C++

#include <iostream>

using namespace std;

int x[3];
int y[3];
int i, j;

cin >> x[0] >> x[1] >> x[2];

for( i = 0; i < 3; i++ ){
	for( j = i; j < 3; j++ ){
		if( x[i] >= x[j] ){
			y[i] = x[j];
		}
	}
	cout << y[i] << endl;
}

Compiler output:
a.cc:9:1: error: 'cin' does not name a type
    9 | cin >> x[0] >> x[1] >> x[2];
      | ^~~
a.cc:11:1: error: expected unqualified-id before 'for'
   11 | for( i = 0; i < 3; i++ ){
      | ^~~
a.cc:11:13: error: 'i' does not name a type
   11 | for( i = 0; i < 3; i++ ){
      |             ^
a.cc:11:20: error: 'i' does not name a type
   11 | for( i = 0; i < 3; i++ ){
      |                    ^
Language: C++

#include <iostream>

int main(void) 
{
    int a, b, c;
    if (a < c) {
        int t = a;
        a = c;
        c = t;
    }
    if (a < b) {
        int t = a;
        a = b;
        b = t;
    }
    if (b < c) {
        int t = b;
        b = c;
        c = t;
    }
    st::cout << c << << b << << a << std::endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'st' has not been declared
   21 |     st::cout << c << << b << << a << std::endl;
      |     ^~
a.cc:21:22: error: expected primary-expression before '<<' token
   21 |     st::cout << c << << b << << a << std::endl;
      |                      ^~
a.cc:21:30: error: expected primary-expression before '<<' token
   21 |     st::cout << c << << b << << a << std::endl;
      |                              ^~
Language: C++

#include <iostream>

int main(void) 
{
    int a, b, c;
    if (a < c) {
        int t = a;
        a = c;
        c = t;
    }
    if (a < b) {
        int t = a;
        a = b;
        b = t;
    }
    if (b < c) {
        int t = b;
        b = c;
        c = t;
    }
    st::cout << c  << b  << a << std::endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'st' has not been declared
   21 |     st::cout << c  << b  << a << std::endl;
      |     ^~
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: expected ';' before '{' token
   12 |         }else (c<a&&a<b) {printf("%d %d %d\n",c,a,b);
      |                         ^~
      |                         ;
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:43: error: expected ';' before '}' token
    6 |     for(int i = 0; i < 3; i++){cin >> S[i]};
      |                                           ^
      |                                           ;
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main(int argc, char** argv){
  int a, b, c;
  vector<int> v(3);
  cin >> v.at(1) >> v.at(2) >> v.at(0);
  sort(v.begin(), v.end());

  vector<int>::iterator itr = v.begin();
  vector<int>::iterator itre = v.end();
  while(itr != itre){
    cout << *itr << " ";
    itr++;
  }
  cout << endl;

  return 0;
}

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

#include<stdio.h>

int main()
{
	int a, b, c;
	int num[] = { 0, 0, 0 };
	int tmp = 0;

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

	num[0] = a;
	num[1] = b;
	num[2] = c;

	while (num[0] >= num[1] || num[1] > num[2])
	{
		for (int i = 0;i < 2; i++)
		{
			if (num[i] > num[i+1])
			{
				tmp = num[i+1];
				num[i+1] = num[i];
				num[i] = tmp;
			}
		}
	}

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

	return 0;

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

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int aiTable[3] = { 3, 8, 1};
	sort (aiTable,aiTable + 3);
	{for (int iIndex = 0; iIndex  3; iIndex++){
		cout << aiTable[iIndex] << ",";
	}}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:37: error: expected ';' before numeric constant
    7 |         {for (int iIndex = 0; iIndex  3; iIndex++){
      |                                     ^ ~
      |                                     ;
a.cc:7:40: error: expected ')' before ';' token
    7 |         {for (int iIndex = 0; iIndex  3; iIndex++){
      |              ~                         ^
      |                                        )
a.cc:7:42: error: 'iIndex' was not declared in this scope
    7 |         {for (int iIndex = 0; iIndex  3; iIndex++){
      |                                          ^~~~~~
Language: C++

import java.util.*;

class Main{

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

		int[] a = new int [3];
	   
		a[0] = hoge.nextInt();
		a[1] = hoge.nextInt();
		a[2] = hoge.nextInt();

		int h;
		
		if(a[0]>a[1]&&a[0]>a[2]){
			h = a[0];
			a[0]=a[1];
			a[1]=a[2];
			a[2]=h;			   
		}else if(a[1]>a[0]&&a[1]>a[2]){
			h=a[1];
			a[1]=a[2];
			a[2]=h;
		}
		//a[2] became the maximum

		if(a[0]>a[1]){
			h = a[0];
			a[0]=a[1];
			a[1]=h;		  
		}

		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:5:15: error: expected ':' before 'static'
    5 |         public static void main(String[] args) {
      |               ^~~~~~~
      |               :
a.cc:5:33: error: 'String' has not been declared
    5 |         public static void main(String[] args) {
      |                                 ^~~~~~
a.cc:5:42: error: expected ',' or '...' before 'args'
    5 |         public static void main(String[] args) {
      |                                          ^~~~
a.cc:40:2: error: expected ';' after class definition
   40 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:17: error: 'Scanner' was not declared in this scope
    6 |                 Scanner hoge = new Scanner(System.in);
      |                 ^~~~~~~
a.cc:8:20: error: structured binding declaration cannot have type 'int'
    8 |                 int[] a = new int [3];
      |                    ^~
a.cc:8:20: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:8:20: error: empty structured binding declaration
a.cc:8:23: error: expected initializer before 'a'
    8 |                 int[] a = new int [3];
      |                       ^
a.cc:10:17: error: 'a' was not declared in this scope
   10 |                 a[0] = hoge.nextInt();
      |                 ^
a.cc:10:24: error: 'hoge' was not declared in this scope
   10 |                 a[0] = hoge.nextInt();
      |                        ^~~~
a.cc:34:17: error: 'System' was not declared in this scope
   34 |                 System.out.println(a[0]+" "+a[1]+" "+a[2]);
      |                 ^~~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>

//#include <map>

using namespace std;

int main(void)
{
	string str;
	//str = "10000 1000 100";
	getline(cin, str);

	vector<string> vStr;

	while (str.find(' ') != -1)
	{
		vStr.push_back(str.substr(0, str.find(' ')));
		str.erase(0, str.find(' ') + 1);
	}
	vStr.push_back(str);

	vector<int> vInt;
	for (int i = 0; i < vStr.size(); i++)
	{
		vInt.push_back(stoi(vStr.at(i)));
	}

	sort(vInt.begin(), vInt.end());
	
	string ans;

	for (int i = 0; i < vInt.size(); i++)
	{
		char t[20];
		_itoa(vInt.at(i),t,10);
		ans = ans + t;
		ans = ans + " ";
	}

	cout << ans << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:17: error: '_itoa' was not declared in this scope
   39 |                 _itoa(vInt.at(i),t,10);
      |                 ^~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>i
#include <stdlib.h>

//#include <map>

using namespace std;

int main(void)
{
	string str;
	//str = "10000 1000 100";
	getline(cin, str);

	vector<string> vStr;

	while (str.find(' ') != -1)
	{
		vStr.push_back(str.substr(0, str.find(' ')));
		str.erase(0, str.find(' ') + 1);
	}
	vStr.push_back(str);

	vector<int> vInt;
	for (int i = 0; i < vStr.size(); i++)
	{
		vInt.push_back(stoi(vStr.at(i)));
	}

	sort(vInt.begin(), vInt.end());
	
	string ans;

	for (int i = 0; i < vInt.size(); i++)
	{
		char t[20];
		_itoa(vInt.at(i),t,10);
		ans = ans + t;
		ans = ans + " ";
	}

	cout << ans << endl;

	return 0;
}

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

#include "stdio.h"

int main()
{
	int x, y, z;
	scanf_s("%d %d %d", &x, &y, &z);

	if (x <= y && y <= z) {
		printf("%d %d %d", x, y, z);
	}
	else if (y <= z && z <= x) {
		printf("%d %d %d", y, z, x);
	}
	else if (z <= x && x <= y) {
		printf("%d %d %d", z, x, y);
	}
	else if (x <= z && z <= y) {
		printf("%d %d %d", x, z, y);
	}
	else if (y <= x && x <= z) {
		printf("%d %d %d", y, x, z);
	}
	else if (z <= y && y <= x) {
		printf("%d %d %d", z, y, x);
	}

	return 0;
}

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

#include <iostream>
using namespace std;
/*
	???????????´??°??????????????????
	???????????????????°??????????????????????????????????????????°??????
*/

int Change(int *numA, int *numB);



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

    }
    if(b > c)
    {
    	Change(&b, &c);

    }
    if(a > c)
    {
    	Change(&a, &c);

    }

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

int Change(int *numA, int *numB){
	int a;
		a	=	numA;
    	numA	=	numB;
    	numB	=	a;

    	return *numA, *numB;
};

Compiler output:
a.cc: In function 'int Change(int*, int*)':
a.cc:39:33: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   39 |                 a       =       numA;
      |                                 ^~~~
      |                                 |
      |                                 int*
a.cc:41:25: error: invalid conversion from 'int' to 'int*' [-fpermissive]
   41 |         numB    =       a;
      |                         ^
      |                         |
      |                         int
Language: C++

#include <iostream>
using namespace std;
    
int main(int argc, const char * argv[])
{
    int N,n,a[N];
    cin >> n;
    for(N=0 ; N < n ; N++)
    {
        cin >> a[N];
    }
    sort(a,a+n);
    for(N=0 ; N <n ; N++)
    {
    cout << a[N];
    }
    return 0;
}

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

#include <iostream>
using namespace std;
int main(int argc, const char * argv[])
{
    int N,n,a[N];
    cin >> n;
    for(N=0 ; N < n ; N++)
    {
        cin >> a[N];
    }
    sort(a,a+n);
    for(N=0 ; N <n ; N++)
    {
    cout << a[N];
    }
    return 0;
}

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

#include <iostream>
using namespace std;
int main()
{
    int N,n,a[N];
    cin >> n;
    for(N=0 ; N < n ; N++)
    {
        cin >> a[N];
    }
    sort(a,a+n);
    for(N=0 ; N <n ; N++)
    {
    cout << a[N];
    }
    return 0;
}

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

import Control.Applicative

qsort [] = []
qsort (p:xs) = qsort lt ++ [p] ++ qsort ge
  where
    lt = [x | x <- xs, x < p]
    ge = [x | x <- xs, x >= p]

itp12c = do
  a <- map (\x -> read x :: Int) . words <$> getLine
  putStrLn $ unwords $ map (\x -> show x) $ qsort a

Compiler output:
a.cc:10:13: error: stray '\' in program
   10 |   a <- map (\x -> read x :: Int) . words <$> getLine
      |             ^
a.cc:11:29: error: stray '\' in program
   11 |   putStrLn $ unwords $ map (\x -> show x) $ qsort a
      |                             ^
a.cc:1:1: error: 'import' does not name a type
    1 | import Control.Applicative
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

nclude<stdio.h>
int main(void)
{
	int a,s,d,f;
	scanf("%d %d %d",&a,&s,&d);
		if(a<s){
			if(s<d){
				printf("%d %d %d\n",a,s,d);
			}
			if(d<s){
				printf("%d %d %d\n",a,d,s);
			}
		}
		if(s<a){
			if(a<d){
				printf("%d %d %d\n",s,a,d);
			}
			if(d<a){
				printf("%d %d %d\n",s,d,a);
			}
		}
		if(d<a){
			if(a<s){
				printf("%d %d %d\n",d,a,s);
			}
			else{
				printf("%d %d %d\n",d,s,a);
			}
		}
	return 0;
}

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

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


	if(b>c){
		escape=b;
		b=c;
		c=escape;
	}
	
	if(a>c){
		escape=a;
		a=c;
		c=escape;
	}
	
	pirntf("%d %d %d",&a,&b,&c);		

return 0;
}

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

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

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

return 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'std::vector<int>::iterator' has no member named 'a'
    9 | sort(a.begin().a.end());
      |                ^
Language: C++

using System;
  namespase{
   class program
    {
        static void Main()
        {
            string[] str = Console.ReadLine().Split(' ');
            int a = int.Parse(str[0]);
            int b = int.Parse(str[1]);
            int c = int.Parse(str[2]);
            if (a < b && b < c) Console.WriteLine("{0} {1} {2}", a, b, c);
            if (a < c && c < b) Console.WriteLine("{0} {1} {2}", a, c, b);
            if (b < a && a < c) Console.WriteLine("{0} {1} {2}", b, a, c);
            if (b < c && c < a) Console.WriteLine("{0} {1} {2}", b, c, a);
            if (c < a && a < b) Console.WriteLine("{0} {1} {2}", c, a, b);
            if (c < b && b < a) Console.WriteLine("{0} {1} {2}", c, b, a);
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:3: error: 'namespase' does not name a type
    2 |   namespase{
      |   ^~~~~~~~~
Language: C++

using System;
  namespase test{
   class program
    {
        static void Main()
        {
            string[] str = Console.ReadLine().Split(' ');
            int a = int.Parse(str[0]);
            int b = int.Parse(str[1]);
            int c = int.Parse(str[2]);
            if (a < b && b < c) Console.WriteLine("{0} {1} {2}", a, b, c);
            if (a < c && c < b) Console.WriteLine("{0} {1} {2}", a, c, b);
            if (b < a && a < c) Console.WriteLine("{0} {1} {2}", b, a, c);
            if (b < c && c < a) Console.WriteLine("{0} {1} {2}", b, c, a);
            if (c < a && a < b) Console.WriteLine("{0} {1} {2}", c, a, b);
            if (c < b && b < a) Console.WriteLine("{0} {1} {2}", c, b, a);
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:3: error: 'namespase' does not name a type
    2 |   namespase test{
      |   ^~~~~~~~~
Language: C++

#include<iostream>
using namespace std;

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

if(a<=b && a<=c){
cout << "a ";
if(b<=c)
{
cout << "b c\n";
}
else{
cout << "c b\n";
}
}

else if(b<=a && b<=c){
cout << "b\n";
if(a<=c)
{
cout << "a c\n";
}
else{
cout << "c a\n";
}
}

(c<=a && c<=b){
cout << "c\n";
if(a<=b)
{
cout << "a b\n";
}
else{
cout << "b a\n";
}
}
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:32:15: error: expected ';' before '{' token
   32 | (c<=a && c<=b){
      |               ^
      |               ;
Language: C++

#include<iostream>
using namespace std;

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

if(a<=b && a<=c){
cout << "a ";
if(b<=c){
cout << "b c\n";
}
else{
cout << "c b\n";
}
}

else if(b<=a && b<=c){
cout << "b \n";
if(a<=c)
{
cout << "a c\n";
}
else{
cout << "c a\n";
}
}

(c<=a && c<=b){
cout << "c \n";
if(a<=b)
{
cout << "a b\n";
}
else{
cout << "b a\n";
}
}
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:31:15: error: expected ';' before '{' token
   31 | (c<=a && c<=b){
      |               ^
      |               ;
Language: C++

#include<iostream>
using namespace std;

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

if(a<=b && a<=c){
cout << "a ";
if(b<=c){
cout << "b c\n";
}
else{
cout << "c b\n";
}
}

else if(b<=a && b<=c){
cout << "b \n";
if(a<=c){
cout << "a c\n";
}
else{
cout << "c a\n";
}
}

(c<=a && c<=b){
cout << "c \n";
if(a<=b){
cout << "a b\n";
}
else{
cout << "b a\n";
}
}
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:30:15: error: expected ';' before '{' token
   30 | (c<=a && c<=b){
      |               ^
      |               ;
Language: C++

#include<iostream>
using namespace std;

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

if(a<=b && a<=c){
cout << a <<" ";
if(b<=c){
cout << b << " "<<c <<"\n";
}
else{
cout << c  <<" "<<b <<"\n";
}
}

else if(b<=a && b<=c){
cout << b <<" ";
if(a<=c){
cout << a<<" "<<c << "\n";
}
else{
cout << c << " "<<a <<"\n";
}
}

if(c<=a && c<=b){
cout << c " ";
if(a<=b){
cout << a << " "<< b <<"\n";
}
else{
cout << b <<" " <<a<<"\n";
}
}
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:31:10: error: expected ';' before string constant
   31 | cout << c " ";
      |          ^~~~
      |          ;
Language: C++

#include<iostream>
using namespace std;

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

if(a<=b && a<=c){
cout << a <<" ";
if(b<=c){
cout << b << " "<<c <<"\n";
}
else{
cout << c  <<" "<<b <<"\n";
}
}

else if(b<=a && b<=c){
cout << b <<" ";
if(a<=c){
cout << a<<" "<<c << "\n";
}
else{
cout << c << " "<<a <<"\n";
}
}

else(c<=a && c<=b){
cout << c <<" ";
if(a<=b){
cout << a << " "<< b <<"\n";
}
else{
cout << b <<" " <<a<<"\n";
}
}
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:30:19: error: expected ';' before '{' token
   30 | else(c<=a && c<=b){
      |                   ^
      |                   ;
Language: C++

#include <iostream>

using namespace std;

int main() {
    int n[3];
    
    for(int i = 0; i < 3; i++) cin >> n[i];
    
    sort(n, n+3);
    
    for(int i = 0; i < 3; i++) {
        if(i == 2) {
            cout << n[i] << endl;
            break;
        }
        cout << n[i] << " ";
    }
}

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

#include<stdio.h>
int main(void)
{
	int a, b, c,d;
	scanf_s("%d %d %d", &a, &b, &c);
	d = 0;
	if (b > c){
		d = c;
		c = b;
		b = d;
	}
	if (a > b){
		d = b;
		b = a;
		a = d;
	}
	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<stdio.h>
int main(void)
{
	int a, b, c, d;
	scanf_s("%d %d %d", &a, &b, &c);
	d = 0;
	if (b > c){
		d = c;
		c = b;
		b = d;
	}
	if (a > b){
		d = b;
		b = a;
		a = d;
	}
	if (b > c){
		d = c;
		c = b;
		b = d;
	}
	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++

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args)throws NumberFormatException, IOException {
		// TODO ?????????????????????????????????????????????

		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String[] st=br.readLine().split(" ");
        int[] in=new int[3];
        for(int i=0;i<3;i++){
        in[i]=Integer.parseInt(st[i]);}
        for(int i=0;i<2;i++){
            for(int j=i+1;j<3;j++){              
                if(in[i]>in[j]){int tmp=in[i];
                    in[i]=in[j];
                    in[j]=tmp;
                }
            }
        }System.out.println(in[0]+" "+in[1]+" "+in[2]);
		
	}

}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.IOException;
      | ^~~~~~
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.InputStreamReader;
      | ^~~~~~
a.cc:3: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++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    6 |   sort(data,data+3);
      |   ^~~~
      |   std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:2:
/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:7:63: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   std::cout << data[0] << " " << data[1] << " " << data[2] << 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++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:63: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   std::cout << data[0] << " " << data[1] << " " << data[2] << 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++

import java.io.*;
import java.util.Scanner;
import java.util.Arrays;

class Main {
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws IOException {
        int[] v = new int[3];
        for(int i = 0; i < 3; ++i) {
            v[i] = ReadInt();
        }
        Arrays.sort(v);
        System.out.println(v[0] + " " + v[1] + " " + v[2]);
    }
    static int ReadInt() throws IOException {
        return Integer.parseInt(sc.next());
    }
}

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:2:1: error: 'import' does not name a type
    2 | import java.util.Scanner;
      | ^~~~~~
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.util.Arrays;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:12: error: 'Scanner' does not name a type
    6 |     static Scanner sc = new Scanner(System.in);
      |            ^~~~~~~
a.cc:7:11: error: expected ':' before 'static'
    7 |     public static void main(String[] args) throws IOException {
      |           ^~~~~~~
      |           :
a.cc:7:29: error: 'String' has not been declared
    7 |     public static void main(String[] args) throws IOException {
      |                             ^~~~~~
a.cc:7:38: error: expected ',' or '...' before 'args'
    7 |     public static void main(String[] args) throws IOException {
      |                                      ^~~~
a.cc:7:42: error: expected ';' at end of member declaration
    7 |     public static void main(String[] args) throws IOException {
      |                                          ^
      |                                           ;
a.cc:7:44: error: 'throws' does not name a type
    7 |     public static void main(String[] args) throws IOException {
      |                                            ^~~~~~
a.cc:15:24: error: expected ';' at end of member declaration
   15 |     static int ReadInt() throws IOException {
      |                        ^
      |                         ;
a.cc:15:26: error: 'throws' does not name a type
   15 |     static int ReadInt() throws IOException {
      |                          ^~~~~~
a.cc:18:2: error: expected ';' after class definition
   18 | }
      |  ^
      |  ;
Language: C++

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

int main(void)
{
 int str[3];
 for(int i=0;i<3;i++) cin >> str[i];
 for(int i=0;i<3;i++){
  for(int j=i+1;j<3;j++){
   if(str[i] > str[j]) swap(str[i],str[j]);
  }
 }
 cout << a[0] a[1] a[2] << endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: 'a' was not declared in this scope
   14 |  cout << a[0] a[1] a[2] << endl;
      |          ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: expected ';' before 'str'
   14 |  cout << str[0] str[1] str[2] << endl;
      |                ^~~~
      |                ;
Language: C++

#include <stdio.h>
int main(void)
{
    int a,b,c;
    int tmp;    
    scanf("%d%d%d", &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", a,b,c);
    return 0;
}

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

using System;
using System.Linq;

namespace ITP1_2_C
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] data = Console.ReadLine().Split(' ').Select(x => Convert.ToInt32(x)).ToArray();
            Array.Sort(data);
            int i = 1;
            foreach(int n in data)
            {
                Console.Write(n);
                if (i == data.Length) Console.WriteLine();
                else Console.Write(" ");
                i++;
            }
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:8:26: error: 'string' has not been declared
    8 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:8:35: error: expected ',' or '...' before 'args'
    8 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:21:6: error: expected ';' after class definition
   21 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ITP1_2_C::Program::Main(int*)':
a.cc:10:16: error: structured binding declaration cannot have type 'int'
   10 |             int[] data = Console.ReadLine().Split(' ').Select(x => Convert.ToInt32(x)).ToArray();
      |                ^~
a.cc:10:16: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:10:16: error: empty structured binding declaration
a.cc:10:19: error: expected initializer before 'data'
   10 |             int[] data = Console.ReadLine().Split(' ').Select(x => Convert.ToInt32(x)).ToArray();
      |                   ^~~~
a.cc:11:13: error: 'Array' was not declared in this scope
   11 |             Array.Sort(data);
      |             ^~~~~
a.cc:11:24: error: 'data' was not declared in this scope
   11 |             Array.Sort(data);
      |                        ^~~~
a.cc:13:21: error: expected primary-expression before 'int'
   13 |             foreach(int n in data)
      |                     ^~~
a.cc:13:13: error: 'foreach' was not declared in this scope
   13 |             foreach(int n in data)
      |             ^~~~~~~
Language: C++

#include <cstdio>
#include <algorithm>

int main(void){
  int a[3];
  
  scanf("%d %d %d",&a[0],&a[1],&a[2]);
  sort(a,a+3);
  printf("%d %d %d\n",a[0],a[1],a[2]);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    8 |   sort(a,a+3);
      |   ^~~~
      |   std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:2:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
Language: C++

#include <stdio.h>

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

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


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;

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(" ");
		ArrayList<Integer> ls = new ArrayList<Integer>();
		ls.add(Integer.parseInt(s[0]));
		ls.add(Integer.parseInt(s[1]));
		ls.add(Integer.parseInt(s[2]));
		Collections.sort(ls);
		for(int i = 0 ; i < ls.size(); i++){
			if(i != ls.size()-1){
				System.out.print(ls.get(i)+" ");
			}else{
				System.out.print(ls.get(i));
			}
		}
	}

}

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: 'import' does not name a type
    5 | import java.util.ArrayList;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
    6 | import java.util.Collections;
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: expected unqualified-id before 'public'
    8 | public class Main {
      | ^~~~~~