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

#include<iostream>
#include<algorithm>
#define N 3

int main(){
    int a[3];
    for(int i=0; i<N; ++i) std::cin>> a[i];
   
    sort(a,a+3);
   
    for(int i=0; i<N-1; ++i) std::cout << a[i] <<" ";
    std::cout << a[N-1] <<"\n";
   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    9 |     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()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(c>b&&b>a){
printf("%d %d %d",a,b,c);
}
if(b>c&&c>a){
printf("%d %d %d",a,c,b);
}
if(a>c&&c>b){
printf("%d %d %d",b,c,a);
}
if(c>a&&a>b){
printf("%d %d %d",b,a,c);
}
if(b>a&&a>c){
printf("%d %d %d",c,a,b);
}
if(a>b&&b>c){
printf("%d %d %d",c,b,a);
}
if(a==b&&b==c){
printf("%d %d %d",a,a,a);
}
if(a==b&&b>c){
printf("%d %d %d",c,a,a);
}
if(a==b&&c>b){
printf("%d %d %d",a,a,c);
}

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

#include <stdio.h>
int main()

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

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

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

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

return 0; 
}

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

#include <stdio.h>
int main()

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

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

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

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

return 0; 
}

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

#include <stdio.h>
int main()

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

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


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


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


return 0; 
}

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

#include <iostream>
#define N 3
using namespace std;

int main()
{
  int A[N];
  for(int i=0;i<N;i++)
    {
      cin >> A[i];
    }
  for(int i=0;i<N;i++)
    {
      for(int j=N-1;j>1;j--)
        {
          if(A[j]<A[j-1])
            {
              swap(A[j],A[j-1]);
            }
        }
    }
  for(int i=0;i<N;i++)
    {
      if(I!=0) cout << " ";
      cout << A[i];
    }
  cout << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:10: error: 'I' was not declared in this scope
   24 |       if(I!=0) cout << " ";
      |          ^
Language: C++

#include <iostream>
using namespace std;

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

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

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

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

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

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

int main()
{
  std::vector<int> vec( 3, 0 ) ;

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

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

  for ( int i = 0 ; i < vec.size() ; ++i ) {
    std::cout << vec[i] ;
  }
  std::endl ;

  return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: statement cannot resolve address of overloaded function
   16 |   std::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;
	}
	if else(b<=a && a<=c){
		cout << b << " " << a << " " << c << endl;
	}
	if else(a<=c && c<=b){
		cout << a << " " << c << " " << b << endl;
	}
	if else(b<=c && c<=a){
		cout << b << " " << c << " " << a << endl;
	}
	if else(c<=a && a<=b){
		cout << c << " " << a << " " << b << endl;
	}
	if else(c<=b && b<=a){
		cout << c << " " << b << " " << a << endl;
	}
	return 0;
}

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> a >> b >> c;
      |         ^~~
a.cc:8:17: error: 'cout' was not declared in this scope
    8 |                 cout << a << " " << b << " " << " " << c << endl;
      |                 ^~~~
a.cc:8:61: error: 'endl' was not declared in this scope
    8 |                 cout << a << " " << b << " " << " " << c << endl;
      |                                                             ^~~~
a.cc:11:17: error: 'cout' was not declared in this scope
   11 |                 cout << b << " " << a << " " << c << endl;
      |                 ^~~~
a.cc:11:54: error: 'endl' was not declared in this scope
   11 |                 cout << b << " " << a << " " << c << endl;
      |                                                      ^~~~
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << a << " " << c << " " << b << endl;
      |                 ^~~~
a.cc:14:54: error: 'endl' was not declared in this scope
   14 |                 cout << a << " " << c << " " << b << endl;
      |                                                      ^~~~
a.cc:17:17: error: 'cout' was not declared in this scope
   17 |                 cout << b << " " << c << " " << a << endl;
      |                 ^~~~
a.cc:17:54: error: 'endl' was not declared in this scope
   17 |                 cout << b << " " << c << " " << a << endl;
      |                                                      ^~~~
a.cc:20:17: error: 'cout' was not declared in this scope
   20 |                 cout << c << " " << a << " " << b << endl;
      |                 ^~~~
a.cc:20:54: error: 'endl' was not declared in this scope
   20 |                 cout << c << " " << a << " " << b << endl;
      |                                                      ^~~~
a.cc:23:17: error: 'cout' was not declared in this scope
   23 |                 cout << c << " " << b << " " << a << endl;
      |                 ^~~~
a.cc:23:54: error: 'endl' was not declared in this scope
   23 |                 cout << c << " " << b << " " << a << endl;
      |                                                      ^~~~
Language: C++

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

Compiler output:
a.cc:7:17: error: stray '\' in program
    7 | {if (b>c){printf\n("%d %d %d",c,b,a);}
      |                 ^
a.cc:8:12: error: stray '\' in program
    8 | else{printf\n("%d %d %d",b,c,a);}}
      |            ^
a.cc:10:17: error: stray '\' in program
   10 | {if (a>c){printf\n("%d %d %d",c,a,b);}
      |                 ^
a.cc:11:12: error: stray '\' in program
   11 | else{printf\n("%d %d %d",a,c,b);}}
      |            ^
a.cc:13:17: error: stray '\' in program
   13 | {if (a>b){printf\n("%d %d %d",b,a,c);}
      |                 ^
a.cc:14:12: error: stray '\' in program
   14 | else{printf\n("%d %d %d",a,b,c);}}
      |            ^
a.cc: In function 'int main()':
a.cc:7:17: error: expected ';' before 'n'
    7 | {if (b>c){printf\n("%d %d %d",c,b,a);}
      |                 ^~
      |                 ;
a.cc:8:12: error: expected ';' before 'n'
    8 | else{printf\n("%d %d %d",b,c,a);}}
      |            ^~
      |            ;
a.cc:10:17: error: expected ';' before 'n'
   10 | {if (a>c){printf\n("%d %d %d",c,a,b);}
      |                 ^~
      |                 ;
a.cc:11:12: error: expected ';' before 'n'
   11 | else{printf\n("%d %d %d",a,c,b);}}
      |            ^~
      |            ;
a.cc:13:17: error: expected ';' before 'n'
   13 | {if (a>b){printf\n("%d %d %d",b,a,c);}
      |                 ^~
      |                 ;
a.cc:14:12: error: expected ';' before 'n'
   14 | else{printf\n("%d %d %d",a,b,c);}}
      |            ^~
      |            ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'scanf' was not declared in this scope
    3 | scanf("%d%d%d",&a,&b,&c);
      | ^~~~~
a.cc:19:1: error: 'printf' was not declared in this scope
   19 | printf("%d %d %d\n",a,b,c);
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: C++

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

using namespace std;

int main(){
   int a, b, c;
   cin >> a >> b >> c;
   
   vector<int> v
   v.push_back(a);
   v.push_back(b);
   v.push_back(c);

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

  for(int i = 0; i < v.size(); i++){
      cout << v[i] << " ";
  } 
   cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:4: error: expected initializer before 'v'
   12 |    v.push_back(a);
      |    ^
a.cc:13:4: error: 'v' was not declared in this scope
   13 |    v.push_back(b);
      |    ^
Language: C++

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

using namespace std;

int main(){
   int a, b, c;
   cin >> a >> b >> c;
   
   vector<int> v
   v.push_back(a);
   v.push_back(b);
   v.push_back(c);

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

  cout << v[0] << v[1] << v[2] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:4: error: expected initializer before 'v'
   12 |    v.push_back(a);
      |    ^
a.cc:13:4: error: 'v' was not declared in this scope
   13 |    v.push_back(b);
      |    ^
Language: C++

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

}

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

#include <iostream>
 
using namespace std;

int main(void){

  int n[3];
  int a = sizeof(a)/sizeof(a[0]);

  for(int i=0; i<a; i++)
    cin >> n[i];

  for(int i=0; i<a; i++){
     for(int j=a-1; j>i; j--){
        if(a[j] < a[j-1]){
          int temp = a[j];
          a[j] = a[j-1];
          a[j-1] = temp;
        }
     }
  }

  for(int i=0; i<a; i++)
   cout << a[i] << " " <<;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: invalid types 'int[int]' for array subscript
    8 |   int a = sizeof(a)/sizeof(a[0]);
      |                             ^
a.cc:15:13: error: invalid types 'int[int]' for array subscript
   15 |         if(a[j] < a[j-1]){
      |             ^
a.cc:15:20: error: invalid types 'int[int]' for array subscript
   15 |         if(a[j] < a[j-1]){
      |                    ^
a.cc:16:23: error: invalid types 'int[int]' for array subscript
   16 |           int temp = a[j];
      |                       ^
a.cc:17:12: error: invalid types 'int[int]' for array subscript
   17 |           a[j] = a[j-1];
      |            ^
a.cc:17:19: error: invalid types 'int[int]' for array subscript
   17 |           a[j] = a[j-1];
      |                   ^
a.cc:18:12: error: invalid types 'int[int]' for array subscript
   18 |           a[j-1] = temp;
      |            ^
a.cc:24:13: error: invalid types 'int[int]' for array subscript
   24 |    cout << a[i] << " " <<;
      |             ^
a.cc:24:26: error: expected primary-expression before ';' token
   24 |    cout << a[i] << " " <<;
      |                          ^
Language: C++

#include <iostream>
 
using namespace std;

int main(void){

  int n[3];
  int a = sizeof(n)/sizeof(n[0]);

  for(int i=0; i<a; i++)
    cin >> n[i];

  for(int i=0; i<a; i++){
     for(int j=a-1; j>i; j--){
        if(a[j] < a[j-1]){
          int temp = a[j];
          a[j] = a[j-1];
          a[j-1] = temp;
        }
     }
  }

  for(int i=0; i<a; i++)
   cout << a[i] << " " <<;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: invalid types 'int[int]' for array subscript
   15 |         if(a[j] < a[j-1]){
      |             ^
a.cc:15:20: error: invalid types 'int[int]' for array subscript
   15 |         if(a[j] < a[j-1]){
      |                    ^
a.cc:16:23: error: invalid types 'int[int]' for array subscript
   16 |           int temp = a[j];
      |                       ^
a.cc:17:12: error: invalid types 'int[int]' for array subscript
   17 |           a[j] = a[j-1];
      |            ^
a.cc:17:19: error: invalid types 'int[int]' for array subscript
   17 |           a[j] = a[j-1];
      |                   ^
a.cc:18:12: error: invalid types 'int[int]' for array subscript
   18 |           a[j-1] = temp;
      |            ^
a.cc:24:13: error: invalid types 'int[int]' for array subscript
   24 |    cout << a[i] << " " <<;
      |             ^
a.cc:24:26: error: expected primary-expression before ';' token
   24 |    cout << a[i] << " " <<;
      |                          ^
Language: C++

#include <iostream>
 
using namespace std;

int main(void){

  int n[3];
  int a = sizeof(n)/sizeof(n[0]);

  for(int i=0; i<a; i++)
    cin >> n[i];

  for(int i=0; i<a; i++){
     for(int j=a-1; j>i; j--){
        if(n[j] < n[j-1]){
          int temp = n[j];
          n[j] = n[j-1];
          n[j-1] = temp;
        }
     }
  }

  for(int i=0; i<a; i++)
   cout << n[i] << " " <<;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:26: error: expected primary-expression before ';' token
   24 |    cout << n[i] << " " <<;
      |                          ^
Language: C++

#include <iostream>
 
using namespace std;

int main(void){

  int n[3];
  int a = sizeof(n)/sizeof(n[0]);

  for(int i=0; i<a; i++)
    cin >> n[i];

  for(int i=0; i<a - 1; i++){
     for(int j=a-1; j>i; j--){
        if(n[j] < n[j-1]){
          int temp = n[j];
          n[j] = n[j-1];
          n[j-1] = temp;
        }
     }
  }

  for(int i=0; i<a; i++)
   cout << n[i] << " " <<;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:26: error: expected primary-expression before ';' token
   24 |    cout << n[i] << " " <<;
      |                          ^
Language: C++

#include <iostream>
using namespace std;

void A(int x,int y)
{

if(x>y)
cout << y << " " << x << endl;

}

int main()
{

int a,b,c;

cin >> a >> b >> c;

if(a>b && a>c)
 cout << a << " ";
 A(b,c);

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:1: error: 'else' without a previous 'if'
   23 | else if(b>a && b>c)
      | ^~~~
a.cc:27:1: error: 'else' without a previous 'if'
   27 | else if(c>a && c>b)
      | ^~~~
Language: C++

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


}

if(b>c){
int oki=;
b=c;
c=oki;


}
if(a>b){
int oki=a;
a=b;
b=oki;


}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: expected primary-expression before ';' token
   15 | int oki=;
      |         ^
Language: C++

#include <iostream>
using namespace std

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

 cin >> a >> b >> c;

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

 return 0;
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~                 
a.cc:14:2: error: expected unqualified-id before 'if'
   14 |  if(b>c){
      |  ^~
a.cc:19:2: error: expected unqualified-id before 'if'
   19 |  if(a>b){
      |  ^~
a.cc:25:2: error: 'cout' does not name a type
   25 |  cout << a << b << c << endl;
      |  ^~~~
a.cc:27:2: error: expected unqualified-id before 'return'
   27 |  return 0;
      |  ^~~~~~
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: C++

#include <iostream>
using namespace std

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

 cin >> a >> b >> c;

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

 return 0;
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~                 
a.cc:15:2: error: expected unqualified-id before 'if'
   15 |  if(b>c){
      |  ^~
a.cc:20:2: error: expected unqualified-id before 'if'
   20 |  if(a>b){
      |  ^~
a.cc:26:2: error: 'cout' does not name a type
   26 |  cout << a << b << c << endl;
      |  ^~~~
a.cc:28:2: error: expected unqualified-id before 'return'
   28 |  return 0;
      |  ^~~~~~
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

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

int main(){
 int A[3];
 tmp=0;

 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:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 | int main(){
      | ~~~                 
a.cc: In function 'int main()':
a.cc:7:2: error: 'tmp' was not declared in this scope; did you mean 'tm'?
    7 |  tmp=0;
      |  ^~~
      |  tm
Language: C++

#include<iostream>

using name space 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:3:7: error: expected nested-name-specifier before 'name'
    3 | using name space std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> a[0] >> a[1] >> a[2];
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:9: error: 'sort' was not declared in this scope; did you mean 'short'?
    7 |         sort(a,a+3);
      |         ^~~~
      |         short
a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         cout << a[0] << " " << a[1] << " " << a[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:8:62: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |         cout << a[0] << " " << a[1] << " " << a[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<iostream>
#include<algorithm>

using name space 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:4:7: error: expected nested-name-specifier before 'name'
    4 | using name space std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> a[0] >> a[1] >> a[2];
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:9: 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);
      | ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout << a[0] << " " << a[1] << " " << a[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:9:62: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout << a[0] << " " << a[1] << " " << a[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<iostream>
#include<algorithm>

using name space 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:4:7: error: expected nested-name-specifier before 'name'
    4 | using name space std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> a[0] >> a[1] >> a[2];
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:9: 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);
      | ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout << a[0] << " " << a[1] << " " << a[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:9:62: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout << a[0] << " " << a[1] << " " << a[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<iostream>
#include<algorithm>

using name space 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:4:7: error: expected nested-name-specifier before 'name'
    4 | using name space std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> a[0] >> a[1] >> a[2];
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:9: 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);
      | ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout << a[0] << " " << a[1] << " " << a[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:9:55: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout << a[0] << " " << a[1] << " " << a[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++

<?php
$Rectangle=trim(fgets(STDIN));
$fget = explode(" ", $Rectangle);
if(1<=$fget[0] && $a<=10000 && 1<=$fget[1] && $fget[1]<=10000 && 1<=$fget[2] && $fget[2]<=10000){
    sort($fget);
    echo $fget[0]." ".$fget[1]." ".$fget[2];
}
?>

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:1: error: '$fget' does not name a type
    3 | $fget = explode(" ", $Rectangle);
      | ^~~~~
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if(1<=$fget[0] && $a<=10000 && 1<=$fget[1] && $fget[1]<=10000 && 1<=$fget[2] && $fget[2]<=10000){
      | ^~
a.cc:8:1: error: expected unqualified-id before '?' token
    8 | ?>
      | ^
Language: C++

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

if (c<b) {
buf=c;
b=c;
b=buf;
}

if (b<a) {
buf=a;
b=a;
b=buf;
}

cout << a << b <<c

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:19: error: expected ';' before 'return'
   20 | cout << a << b <<c
      |                   ^
      |                   ;
   21 | 
   22 | return 0;
      | ~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'elseif' was not declared in this scope
    9 | elseif(a > c){
      | ^~~~~~
a.cc:16:1: error: 'else' without a previous 'if'
   16 | else{
      | ^~~~
Language: C++

#include "cstdio"
#cstdio "argorithm"

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

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #cstdio
    2 | #cstdio "argorithm"
      |  ^~~~~~
a.cc: In function 'int main()':
a.cc:6:22: error: 'b' was not declared in this scope
    6 | scanf("%d %d %d",&a,&b,&c);
      |                      ^
a.cc:6:25: error: 'c' was not declared in this scope
    6 | scanf("%d %d %d",&a,&b,&c);
      |                         ^
a.cc:7:1: error: 'sort' was not declared in this scope; did you mean 'short'?
    7 | sort(a,a+3);
      | ^~~~
      | short
Language: C++

#include "cstdio"
#include "argorithm"

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

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

#include "cstdio"
#include<algorithm>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    7 | 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 <iostream>
using namespace std;

int main()
{
  int num[3];
  
  for(int i=0; i<3; i++){
    cin >> num[i];
  }
  
  for(int j<0; j<2; j++){
    for(int k=1; k<3; k++){
      if(num[j]<num[k]){
        int tmp = num[j];
        num[j] = num[k];
        num[k] = tmp;
      }
    }
  }
  
  for(int s=0; s<3; s++){
    cout << num[s] << " ";
  }
  cout << '\n';
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected ';' before '<' token
   12 |   for(int j<0; j<2; j++){
      |            ^
      |            ;
a.cc:12:12: error: expected primary-expression before '<' token
a.cc:12:19: error: expected ')' before ';' token
   12 |   for(int j<0; j<2; j++){
      |      ~            ^
      |                   )
a.cc:12:21: error: 'j' was not declared in this scope
   12 |   for(int j<0; j<2; j++){
      |                     ^
Language: C++

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:28: error: expected ';' before '}' token
   23 |  printf("%d %d %d\n",a,b,c)
      |                            ^
      |                            ;
   24 | }
      | ~
Language: C++

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

  sort(a, a+3);

  cout << a[0] << ' '
       << a[1] << ' '
       << a[2] << endl;

  return 0;
}

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:8:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |   sort(a, a+3);
      |   ^~~~
      |   short
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a,b,c;
    int a[3];
    cin>>a>>b>>c;
    a[0]=min(a,b,c);
    a[2]=max(a,b,c);
    a[1]=sum(a,b,c)-a[0]-a[2];

    cout<<a[0]<<" "<<a[1]<<" "<<a[2]<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: conflicting declaration 'int a [3]'
    6 |     int a[3];
      |         ^
a.cc:5:9: note: previous declaration as 'int a'
    5 |     int a,b,c;
      |         ^
a.cc:8:6: error: invalid types 'int[int]' for array subscript
    8 |     a[0]=min(a,b,c);
      |      ^
a.cc:9:6: error: invalid types 'int[int]' for array subscript
    9 |     a[2]=max(a,b,c);
      |      ^
a.cc:10:6: error: invalid types 'int[int]' for array subscript
   10 |     a[1]=sum(a,b,c)-a[0]-a[2];
      |      ^
a.cc:10:10: error: 'sum' was not declared in this scope
   10 |     a[1]=sum(a,b,c)-a[0]-a[2];
      |          ^~~
a.cc:10:22: error: invalid types 'int[int]' for array subscript
   10 |     a[1]=sum(a,b,c)-a[0]-a[2];
      |                      ^
a.cc:10:27: error: invalid types 'int[int]' for array subscript
   10 |     a[1]=sum(a,b,c)-a[0]-a[2];
      |                           ^
a.cc:12:12: error: invalid types 'int[int]' for array subscript
   12 |     cout<<a[0]<<" "<<a[1]<<" "<<a[2]<<endl;
      |            ^
a.cc:12:23: error: invalid types 'int[int]' for array subscript
   12 |     cout<<a[0]<<" "<<a[1]<<" "<<a[2]<<endl;
      |                       ^
a.cc:12:34: error: invalid types 'int[int]' for array subscript
   12 |     cout<<a[0]<<" "<<a[1]<<" "<<a[2]<<endl;
      |                                  ^
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:8:13:   required from here
    8 |     a[0]=min(a,b,c);
      |          ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:9:13:   required from here
    9 |     a[2]=max(a,b,c);
      |          ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a,b,c;
    int k[3];
    cin>>a>>b>>c;
    k[0]=min(a,b,c);
    k[2]=max(a,b,c);
    k[1]=sum(a,b,c)-k[0]-k[2];

    cout<<k[0]<<" "<<k[1]<<" "<<k[2]<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'sum' was not declared in this scope
   10 |     k[1]=sum(a,b,c)-k[0]-k[2];
      |          ^~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:8:13:   required from here
    8 |     k[0]=min(a,b,c);
      |          ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:9:13:   required from here
    9 |     k[2]=max(a,b,c);
      |          ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a,b,c;
    int k[3];
    cin>>a>>b>>c;
    k[0]=min(a,b,c);
    k[2]=max(a,b,c);
    k[1]=a+b+c-k[0]-k[2];

    cout<<k[0]<<" "<<k[1]<<" "<<k[2]<<endl;
    return 0;
}

Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:8:13:   required from here
    8 |     k[0]=min(a,b,c);
      |          ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:9:13:   required from here
    9 |     k[2]=max(a,b,c);
      |          ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include<stdio.h>

int main(void)
{

int a,b,c,x;

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

if(a>b){

x=a;
a=b;
b=x;

}

if(b>c){

x=c;
c=b;
b=x;

}

if(a>c){

x=c;
c=a;
a=x;

}

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

}

return 0;

}

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

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

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] lines = br.readLine().split(" ");
        int[] list = new int[3];
        for (int i = 0; i < 3; i++) {
            list[i] = Integer.parseInt(lines[i]);
        }
        for (int i = 0; i < 2; i++) {
            for (int j = i + 1; j < 3; j++) {
                if (list[i] > list[j]) {
                    int temp = list[i];
                    list[i] = list[j];
                    list[j] = temp;
                }
            }
        }
        int count = 0;
        for (int n : list) {
            count++;
            System.out.print(n);
            if (count < 3) {
                System.out.print(" ");
            }
        }
        System.out.println();
    }
}

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 <stdlib.h>
#include <stdio.h>
#include <math.h>

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

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

Compiler output:
a.cc:12:35: error: stray '\' in program
   12 |    if(b<c){printf("%d,%d,%d",a,b,c\n);}
      |                                   ^
a.cc:13:35: error: stray '\' in program
   13 |    if(c<b){printf("%d,%d,%d",a,c,b\n);}
      |                                   ^
a.cc:15:35: error: stray '\' in program
   15 |    if(a<c){printf("%d,%d,%d",b,a,c\n);}
      |                                   ^
a.cc:16:35: error: stray '\' in program
   16 |    if(c<a){printf("%d,%d,%d",b,c,a\n);}
      |                                   ^
a.cc:18:35: error: stray '\' in program
   18 |    if(a<b){printf("%d,%d,%d",c,a,b\n);}
      |                                   ^
a.cc:19:35: error: stray '\' in program
   19 |    if(b<a){printf("%d,%d,%d",c,b,a\n);}
      |                                   ^
a.cc: In function 'int main()':
a.cc:12:35: error: expected ')' before 'n'
   12 |    if(b<c){printf("%d,%d,%d",a,b,c\n);}
      |                  ~                ^~
      |                                   )
a.cc:13:35: error: expected ')' before 'n'
   13 |    if(c<b){printf("%d,%d,%d",a,c,b\n);}
      |                  ~                ^~
      |                                   )
a.cc:15:35: error: expected ')' before 'n'
   15 |    if(a<c){printf("%d,%d,%d",b,a,c\n);}
      |                  ~                ^~
      |                                   )
a.cc:16:35: error: expected ')' before 'n'
   16 |    if(c<a){printf("%d,%d,%d",b,c,a\n);}
      |                  ~                ^~
      |                                   )
a.cc:18:35: error: expected ')' before 'n'
   18 |    if(a<b){printf("%d,%d,%d",c,a,b\n);}
      |                  ~                ^~
      |                                   )
a.cc:19:35: error: expected ')' before 'n'
   19 |    if(b<a){printf("%d,%d,%d",c,b,a\n);}
      |                  ~                ^~
      |                                   )
Language: C++

#include <stdio.h>

int main(void)
{

	int i, j, tmp;

	/* ??°??????????´????????????? */
	int number[100];

	/* ??°???????????°?????\??? */
	int total;
	scanf_s("%d", &total);

	/* ?????????????´?????????°????????\??? */
	for (i = 0; i < total; ++i)
		scanf_s("%d", &number[i]);

	/* ??°???????????????????????? */
	for (i = 0; i < total; ++i) {
		for (j = i + 1; j < total; ++j) {
			if (number[i] < number[j]) {
				tmp = number[i];
				number[i] = number[j];
				number[j] = tmp;
			}
		}
	}

	/* ???????????????????????°???????????? */
	printf("???????????????????????°???\n");
	for (i = 0; i < total; ++i)
		printf("%d\n", number[i]);
	return 0;
}

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

#include <stdio.h>
 
int main(void)
{
 
  int i, j, tmp;
 
  int number[100];
 
  /* ??°???????????°?????\??? */
  int total;
  printf("??\???????????°???????????° = ");
  scanf("%d", &total);
 
  /* ?????????????´?????????°????????\??? */
  printf("%d????????°????????\??? \n", total);
  for (i=0; i<total; ++i)
    scanf("%d", &number[i]);
 
  /* ??°???????????????????????? */
  for (i=0; i<total; ++i) {
    for (j=i+1; j<total; ++j) {
      if (number[i] < number[j]) {
        tmp =  number[i];
        number[i] = number[j];
        number[j] = tmp;
      }
    }
  }
 
  /* ???????????????????????°???????????? */
  printf("???????????????????????°???\n");
  for (i=0; i<total; ++i)
    printf("%d\n", number[i]);
return  0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:10: error: expected ';' before '}' token
   35 | return  0
      |          ^
      |          ;
   36 | }
      | ~
Language: C++

#include <iostream>
using namespace std;


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: 't' was not declared in this scope
    9 |     if(a>b) {t=a;a=b;b=t;}
      |              ^
a.cc:10:14: error: 't' was not declared in this scope
   10 |     if(b>c) {t=b;b=c;c=t;}
      |              ^
a.cc:11:14: error: 't' was not declared in this scope
   11 |     if(a>b) {t=a;a=b;b=t;}
      |              ^
Language: C++

import java.util.Scanner;

public class Main_C {
	public static void main(String[] args){
	
		Scanner stdin = new Scanner(System.in);
		
		int a = stdin.nextInt();
		int b = stdin.nextInt();
		int c = stdin.nextInt();
		
		int temp;
		if(b > 0 && b <= 10000 && a > 0 && a <= 10000 && c > 0 && c <= 10000) {
		for(int i = 0; i < 3 ; i++) {
			if(b < a){
				temp = a;
							a = b;
							b = temp;
						} 
			
						if (c < b) {
							temp = b; 
							b = c;
							c = temp;
						}  
					}
		System.out.print(a + " " + b + " " + c);
		}
		
		//System.out.print(a + " " + b + " " + c);
		stdin.close();
	}
	
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main_C {
      | ^~~~~~