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

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:8:21: error: expected expression before '>' token
    8 |   else if(a<=b && b=>c && c<=a){
      |                     ^
main.c:11:13: error: expected expression before '>' token
   11 |   else if(a=>b && b<=c && c<=a){
      |             ^
main.c:14:29: error: expected expression before '>' token
   14 |   else if(a<=b && a<=c && b=>c){
      |                             ^
main.c:17:13: error: expected expression before '>' token
   17 |   else if(a=>b && a=>c && b=>c){
      |             ^
main.c:20:13: error: expected expression before '>' token
   20 |   else if(a=>b && a<=c && b<=c){
      |             ^
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:8:21: error: expected expression before '>' token
    8 |   else if(a<=b && b=>c && c<=a){
      |                     ^
main.c:11:13: error: expected expression before '>' token
   11 |   else if(a=>b && b<=c && c<=a){
      |             ^
main.c:14:29: error: expected expression before '>' token
   14 |   else if(a<=b && a<=c && b=>c){
      |                             ^
main.c:17:13: error: expected expression before '>' token
   17 |   else if(a=>b && a=>c && b=>c){
      |             ^
main.c:20:26: error: expected ';' before '{' token
   20 |   else(a>b && a<c && b<c){
      |                          ^
      |                          ;
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:20:26: error: expected ';' before '{' token
   20 |   else(a>b && a<c && b<c){
      |                          ^
      |                          ;
Language: C

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C++

#include<stdio.h>
int main(void)
{
  int x,y,z;
  scanf("%d %d %d",&x,&y,&z);
  if(x <= y && x <= z){
    printf("%d ",x);
    if(y <= z)
      printf("%d %d\n",y,z);
    else
      printf("%d %d\n",z,y);
  }
  else if(y <= z && y <= x){
    printf("%d ",y);
    if(x <= z)
      printf("%d %d\n",x,z);
    else
      printf("%d %d\n",z,x);
  }
  else(z <= y && z <= x){
    printf("%d ",z);
    if(x <= y)
      printf("%d %d\n",x,y);
    else
      printf("%d %d\n",y,x);
  }
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:25: error: expected ';' before '{' token
   20 |   else(z <= y && z <= x){
      |                         ^
      |                         ;
Language: C++

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

scanf("%d" ,&x);
printf("%d", x*x*x);

return(0)
}

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

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
typedef long double real;
typedef tuple<int, int> duo;

#define TT template<typename T>
#define ET(T) typename T::value_type
TT inline T sq(T x){return x*x;}
TT inline T In(){T x;cin>>x;return x;}
TT inline int ubnd(T&v,ET(T) x){return upper_bound(begin(v),end(v),x)-begin(v);}
TT inline int lbnd(T&v,ET(T) x){return lower_bound(begin(v),end(v),x)-begin(v);}
TT inline void sort(T&v){sort(begin(v),end(v));}
TT inline void revs(T&v){reverse(begin(v),end(v));}
TT inline void uniq(T&v){sort(v);v.erase(unique(begin(v),end(v)),end(v));}
TT inline void inpt(T&v,int n,function<ET(T)>f=In<ET(T)>){for(v.reserve(n);n--;v.emplace_back(f()));}
TT inline void show(T&v,string d=" ",string e="\n"){int i=0;for(auto&x:v)i++&&(cout<<d),cout<<x;cout<<e;}
#undef TT
#undef ET

inline void fast_io(){ios::sync_with_stdio(0); cin.tie(0);}
inline int in(){int x;scanf("%d",&x);return x;}
inline string instr(){string x;cin>>x;return x;}
inline ll pow_mod(ll a, ll k, ll m){ll r=1;for(;k>0;a=a*a%m,k>>=1)if(k&1)r=r*a%m;return r;}
inline ll mod_inv(ll a, ll p){return pow_mod(a,p-2,p);}

const int dx[] = {0, 0, 1, -1, 1, 1, -1, -1};
const int dy[] = {1, -1, 0, 0, 1, -1, 1, -1};
const int Mod = 1000000000;

int main()
{
  vector<int> v;
  inpt(v, 3);
  show(v);
  return (0);
}

// priority_queue queue deque front top push pop map set stringstream max_element min_element insert count find get tie make_tuple

Compiler output:
a.cc: In function 'void inpt(T&, int, std::function<typename T::value_type>) [with T = std::vector<int>; typename T::value_type = int]':
a.cc:35:7: error: cannot resolve overloaded function 'In' based on conversion to type 'std::function<int>'
   35 |   inpt(v, 3);
      |   ~~~~^~~~~~
a.cc:35:7: note:   when instantiating default argument for call to 'void inpt(T&, int, std::function<typename T::value_type>) [with T = std::vector<int>; typename T::value_type = int]'
a.cc: In function 'int main()':
a.cc:35:7: error: cannot resolve overloaded function 'In' based on conversion to type 'std::function<int>'
Language: C++

#include <cstdio>

void swap(int* a, int *b){
	int tmp = *a;
	*a = *b;
	*b = tmp;
}

int main(){
	int xs[3];

	scanf("%d %d %d", &xs[0], &xs[1], &xs[2]);

	if (xs[1] < xs[0]) swap(&xs[1], &xs[0]);
	if (xs[1] > xs[2]) swap(&xs[1], %xs[2]);

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:41: error: expected primary-expression before '%' token
   15 |         if (xs[1] > xs[2]) swap(&xs[1], %xs[2]);
      |                                         ^
Language: C++

import java.util.Scanner;
 
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d;
if( a > b){
 d = b; b = a; a = d;
}
if( b > c){
 d = c; c = b; b = d;
}
if( a > b){
 d = b; b = a; a = d;
}
System.out.println(a + " " + b + " " + c);
}
}

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

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner=new  Scanner(System.in);
		try{String line1 = scanner.next();
			String line2 = scanner.next();
			String line3 = scanner.next();

			int a =Integer.parseInt(line1);
			int b =Integer.parseInt(line2);
			int c =Integer.parseInt(line3);
			int num []=new int[3];
			int i,j,temp;
			num[0]=a;
			num[1]=b;
			num[2]=c;
			for(i=0;i<3;i++){
				for(j=0;j<3;j++){
					if(num[i]<num[j]){
						temp=num[i];
						num[i]=num[j];
						num[j]=temp;
					}
				}
			}
			for(i=0;i<3;i++){
				System.out.print(num[i]);
????????????????????????????????????????????????if(i!=2)
                                   system.out.print(" "); 
			}
				scanner.close();

		}
		 	catch (NumberFormatException e) {
			 System.out.println("??°????????¢????????£????????????????????????");
			 }


	}

}

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

import java.util.Scanner;

public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a < b){
	if(b < c){
	System.out.printf("%d %d %d\n",a,b,c);
	}else if (a < c){
	System.out.printf("%d %d %d\n",a,c,b);
	}
	}
	
	if(b <c){
	 if(c < a){
	System.out.printf("%d %d %d\n",b,c,a);
	}else if (b < a){
	System.out.printf("%d %d %d\n",b,a,c);
	}
	}
	if ( c < a){
	if ( a < b){
	System.out.printf("%d %d %d\n",c,a,b);
	}else if (c <b){
	System.out.printf("%d %d %d\n",c,b,a);
	}
	}
	}
	}

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

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = sc.nextInt();
	if (a < b){
		if(b < c){
	System.out.println("%d %d %d\n", a, b, c);
	}else if (c < a){
	System.out.println("%d %d %d\n", c, a, b);
	}else{
	System.out.println("%d %d %d\n", a, c, b);
    }
    }else{
    if(a < c){
    System.out.println("%d %d %d\n", b, a, c);
    }else if(c < b){
    System.out.println("%d %d %d\n", c, b, a);
    }else{
    System.out.println("%d %d %d\n", b, c, a);
    }
   }
}
}

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

import java.util.Scanner;

public class Main {
	public static void main(String[] arg) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if(a < b){
			if(b < c){
				System.out.printf("%d %d %d\n",a,b,c);
			}else if(a < c){
				System.out.printf("%d %d %d\n",a,c,b);
			}else if(c < a){
				System.out.printf("%d %d %d\n",c,a,b);
			}
		}else if(b < a){
			if(a < c){
				System.out.printf("%d %d %d\n",b,a,c);
			}else if(b < c){
				System.out.printf("%d %d %d\n",b,c,a);
			}else if(c < b){
				System.out.printf("%d %d %d\n",c,b,a);
			}
		}
	}
}

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

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int[] x = new int[3];
		x[0] = sc.nextInt();
		x[1] = sc.nextInt();
		x[2] = sc.nextInt();
		int buf;
		for(int i = 0; i < x.length - 1; i++){
			for(int j = i + 1; j < x.length; j++){
				if(x[i] > x[j]){
					buf = x[i];
					x[i] = x[j];
					x[j] = buf;
				}
			}
		}
		for(int i = 0; i < x.length; i++)
			System.out.printf("%d ", x[i]);
		System.out.printf("\n");
	}
}

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

#include <bits/stdc++.h>

using namespace std;

typedef unsigned long long ull;
#define loop(i,a,b) for(int i=(a);i<ull(b);++i)
#define rep(i,n) loop(i,0,n)
#define all(a) (a).begin(), (a).end()

const double eps = 1e-10;
const double pi  = acos(-1.0);
const double inf = (int)1e8;

int main(){
 vector<int> v(3) rep(i, 3) cin >> v[i]; sort(all(v)) rep(i, 3) cout << (i == 0 ? "" : " ") << v[i]; cout << endl;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected ',' or ';' before 'for'
    6 | #define loop(i,a,b) for(int i=(a);i<ull(b);++i)
      |                     ^~~
a.cc:7:18: note: in expansion of macro 'loop'
    7 | #define rep(i,n) loop(i,0,n)
      |                  ^~~~
a.cc:15:19: note: in expansion of macro 'rep'
   15 |  vector<int> v(3) rep(i, 3) cin >> v[i]; sort(all(v)) rep(i, 3) cout << (i == 0 ? "" : " ") << v[i]; cout << endl;
      |                   ^~~
a.cc:15:23: error: 'i' was not declared in this scope
   15 |  vector<int> v(3) rep(i, 3) cin >> v[i]; sort(all(v)) rep(i, 3) cout << (i == 0 ? "" : " ") << v[i]; cout << endl;
      |                       ^
a.cc:6:35: note: in definition of macro 'loop'
    6 | #define loop(i,a,b) for(int i=(a);i<ull(b);++i)
      |                                   ^
a.cc:15:19: note: in expansion of macro 'rep'
   15 |  vector<int> v(3) rep(i, 3) cin >> v[i]; sort(all(v)) rep(i, 3) cout << (i == 0 ? "" : " ") << v[i]; cout << endl;
      |                   ^~~
a.cc:15:54: error: expected ';' before 'for'
   15 |  vector<int> v(3) rep(i, 3) cin >> v[i]; sort(all(v)) rep(i, 3) cout << (i == 0 ? "" : " ") << v[i]; cout << endl;
      |                                                      ^
      |                                                      ;
Language: C++

import Data.List
import Control.Monad
import Control.Applicative

main = do
  xs <- map read . words <$> getLine

  putStrLn $ solve xs

solve :: [Int] -> String
solve xs = 
  let [x,y,z] = take 3 $ sort xs
  in show x ++ " " ++ show y ++ " " ++ show z

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import Data.List
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

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

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

void main() {
	int a,b,c,x;
	cin >> a >> b >> c;
	if (a>c) std::swap(a,c);
	if (b>c) std::swap(b,c);
	if (a>b) std::swap(a,b);
	cout << a << ' ' << b << ' ' << c << '\n';
}

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

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

int main()
{
 std::vector<int> v;
 
  for(int i = 0 ; i < 3 ; ++i){
    int temp;
    std::cin >> temp;
    v.pushback(temp);
  }

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

  for(auto value : v){
    std::cout << value << " ";
  }

  puts("");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'class std::vector<int>' has no member named 'pushback'; did you mean 'push_back'?
   12 |     v.pushback(temp);
      |       ^~~~~~~~
      |       push_back
Language: C++

#include <iostream>
using namespace std;

int main() {
	int a[3];
	cin >> a[0] >> a[1] >> a[2];
        sort(a, a + 3);
        cout << a[0] << " " << a[1] << " " << a[2] << endl;

	return 0;
}

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

import java.util.*;

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

    int[] a = new int[3];
    for(int i = 0; i < 3; i++)
      a[i] = in.nextInt();

    if (a[1] > a[2]) swap(a,1,2);
    if (a[0] > a[1]) swap(a,0,1);
    if (a[1] > a[2]) swap(a,1,2);

    // System.out.printf("%d %d %d",a[0], a[1], a[2]);
    System.out.printf(a[0] +" "+ a[1] + " " + a[2]+"\n");

  }

  static void swap(int[] a, int x1, int x2){
    int t = a[x1]; a[x1] = a[x2]; a[x2] = t;
  }
}

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

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

// ?¨??????\???????????????????????????????????????

        Scanner sc = new Scanner(System.in);

// 3?????????????????????????????????????????´??°?????¨????????????????????????

        int a = sc.nextInt();

        int b = sc.nextInt();

        int c = sc.nextInt();

        if (a < b) {

            if (b < c) {

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

            } else if (a < c) {

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

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

        }

    }

}

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

import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner scan=new Scanner(System.in);
		int k,l;
		int a=scan.nextInt();
		int b=scan.nextInt();
		int c=scan.nextInt();
		if(a>b && b<c && a>c){ 
			k=c;
			c=a;
			l=b;
			b=k;
			a=l;
		}else if(a<b && b>c && a<c){
			k=c;
			c=b;
			b=k;
		}else if(a<b && b>c && a>c){
			k=c;
			c=b;
			l=a;
			a=k;
			b=l;
		}else if(a>b && b>c){
			k=c;
			c=a;
			a=k;
		}else if(a>b && b<c && a<c){
			k=a;
			a=b;
			b=k;
		}
		System.out.printf("%d %d %d\n",a,b,c);
	}
}

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


#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected primary-expression before ')' token
   12 |         if()
      |            ^
a.cc:13:17: error: expected primary-expression before ';' token
   13 |         cout << ;
      |                 ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected ';' before user-defined string literal
   10 |         if(a<b<c){cout<<a"<"b"<"c;}
      |                          ^~~~
      |                          ;
a.cc:11:26: error: expected ';' before user-defined string literal
   11 |         if(a<c<b){cout<<a"<"c"<"b;}
      |                          ^~~~
      |                          ;
a.cc:12:26: error: expected ';' before user-defined string literal
   12 |         if(b<a<c){cout<<b"<"a"<"c;}
      |                          ^~~~
      |                          ;
a.cc:13:26: error: expected ';' before user-defined string literal
   13 |         if(b<c<a){cout<<b"<"c"<"a;}
      |                          ^~~~
      |                          ;
a.cc:14:26: error: expected ';' before user-defined string literal
   14 |         if(c<a<b){cout<<c"<"a"<"b;}
      |                          ^~~~
      |                          ;
a.cc:15:26: error: expected ';' before user-defined string literal
   15 |         if(c<b<a){cout<<c"<"b"<"a;cout<<endl;}
      |                          ^~~~
      |                          ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:27: error: 'c' was not declared in this scope
    4 |   scanf("%d %d %d",&a,&b,&c);
      |                           ^
Language: C++

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

Compiler output:
a.cc:1:1: error: stray '\' in program
    1 | \n",a,b,c);
      | ^
a.cc:1:3: warning: missing terminating " character
    1 | \n",a,b,c);
      |   ^
a.cc:1:3: error: missing terminating " character
    1 | \n",a,b,c);
      |   ^~~~~~~~~
a.cc:13:12: warning: missing terminating " character
   13 |     printf(" %d %d %d
      |            ^
a.cc:13:12: error: missing terminating " character
   13 |     printf(" %d %d %d
      |            ^~~~~~~~~~
a.cc:1:2: error: 'n' does not name a type
    1 | \n",a,b,c);
      |  ^
a.cc:2:3: error: expected declaration before '}' token
    2 |   }
      |   ^
a.cc:3:3: error: expected unqualified-id before 'if'
    3 |   if(a<c&&c<b){
      |   ^~
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if(b<a&&a<c){
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'if'
    9 |   if(b<c&&c<a){
      |   ^~
a.cc:12:3: error: expected unqualified-id before 'if'
   12 |   if(c<a&&a<b){
      |   ^~
Language: C++

#include<stdio.h>
#include<iostream>
#include<stdlib.h>
#include<time.h>
#include <sys/time.h>
using namespace std;

int main(){
	struct timeval s, t;
	gettimeofday(&s, NULL);

	int num[3];
	for(int i=0;i<3;++i){
		cin >> num[i];
	}
	bool done=false;
	while(!done){
		done=true;
		for(int i=0;i<3-1;++i){
			if(num[i]>num[i+1]){
				int temp=num[i];
				num[i]=num[i+1];
				num[i+1]=temp;
				done=false;
			}
		}
	}

	char* ppp=(char *)calloc(67108864-1000);
	for(int i=0;i<3-1;++i){
		cout<<num[i]<<" ";
	}

	gettimeofday(&t, NULL);
	while((double)(t.tv_sec)*1000+(double)(t.tv_usec)/1000 -( (double)(s.tv_sec)*1000+(double)(s.tv_usec)/1000) <1000 ){
		gettimeofday(&t, NULL);
	}

	cout<<num[3-1]<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:33: error: too few arguments to function 'void* calloc(size_t, size_t)'
   29 |         char* ppp=(char *)calloc(67108864-1000);
      |                           ~~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 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:2:
/usr/include/stdlib.h:675:14: note: declared here
  675 | extern void *calloc (size_t __nmemb, size_t __size)
      |              ^~~~~~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'else' without a previous 'if'
    5 |   else if(a<b&&b<c){
      |   ^~~~
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,b,c);
}
  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);
}

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

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

	return 0;
}

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


int main(){
	int a,b,c;
	
	scanf("%d",&a);
	scanf("%d",&b);
	scanf("%d",&c);
	
	if (a > b) {
		int t;
		t = a;
		a = b;
		b = t;
	}
	if (b > c) {
		int t;
		t = b;
		a = c;
		b = t;
	}

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf' was not declared in this scope
    5 |         scanf("%d",&a);
      |         ^~~~~
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);
  for(int i=0;i<3;i++){
    if(i!=2){
      cout<<a[i]<<" ";
    }
    else{
      cout<<a[i]<<endl;
    }
    return 0;
  }

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,a+3);
      |   ^~~~
      |   short
a.cc:17:4: error: expected '}' at end of input
   17 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

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

int main(int argc, const char * argv[])
{
    int x, y, z;
    int a, b, c;
    scanf("%d %d %d\n" , &x, &y, &z); 
    if (x < y) {
        a = x;
        x = y;
        y = a;
    }
    if (y < z){
        b = y;
        y = z;
        z = b;
    }
    if (z < x) {
        c = z;
        z = x;
        x = c;
    }
    printf("%d %d %d\n", a, b, c);
    return 0;
}   

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:5:5: error: 'scanf' was not declared in this scope
    5 |     scanf("%d %d %d\n" , &x, &y, &z);
      |     ^~~~~
a.cc:21:5: error: 'printf' was not declared in this scope
   21 |     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(int argc, const char * argv[])
Language: C++

#include <stdio.h>
int main(){
  int n[3],i,j;
  for(i=0;i<3;i++){
    scanf("%d",n[i]);
  }
  for(i=0;i<2;i++){
    for(j=0;j<2-i;j++){
      if(n[i]>n[i+1]){
        int temp=n[i];
 	n[i]=n[i+1];
	n[i+1]=temp;
      }
    }
  }
  for(i=0;i<2;i++);
    printf("%d",n[i]);
  }
  printf("%d\n",n[2]);
  return(0);
}

Compiler output:
a.cc:19:9: error: expected constructor, destructor, or type conversion before '(' token
   19 |   printf("%d\n",n[2]);
      |         ^
a.cc:20:3: error: expected unqualified-id before 'return'
   20 |   return(0);
      |   ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = sc.nextInt();
	if(a<b){
	 if(b<c)System.out.printf("%d %d %d\n",a,b,c);
	 else if(a<c)System.out.printf("%d %d %d\n",a,c,b);
	 else System.out.printf("%d %d %d\n",c,a,b);
	}
	if(a>b){
	 if(b>c)System.out.printf("%d %d %d\n",c,b,a);
	 else if(a<c)System.out.printf("%d %d %d\n",b,a,c);
	 else system.out.printf("%d %d %d\n",b,c,a);
	}
	}
}

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

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int d;
		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;
		}
		System.out.println(a+" "+b+" "+c);
	}
}

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

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner input=new Scanner(System.in);
		int a = input.nextInt();
		int b = input.nextInt();
		int c = input.nextInt();
		int middle;
		
		int max=a;
		if(b > a && b > c ){
		max = b;
		} 
		if(c > a && c > b){
		max = c;
		}
		
		int min = a;
		if(b < a && b < c){
		min = b;
		}
		if(c < a && c < b){
		min = c;
		}
		middle = (a + b + c) - (max + min);
		System.out.println(min + " "+ middle + " " + max);
	}
}

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

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 str = br.readLine();
		String[] line= str.split(" ");

		int a=Integer.parseInt(line[0]);
		int b=Integer.parseInt(line[1]);
		int c=Integer.parseInt(line[2]);

		int Max1,Max2;

		if(a>b){
			Max1=a;
			Max2=b;
		}else{
			Max1=b;
			Max2=a;
		}

		int Max=0,Mid=0,Min=0;

		if(Max1>c && Max2>c){
			Max=Max1;
			Mid=Max2;
			Min=c;
		}else if(Max1>=c && c>=Max2){
			Max=Max1;
			Mid=c;
			Min=Max2;
		}else if(Max1<c && Max2<c){
			Max=c;
			Mid=Max1;
			Min=Max2;
		}

		System.out.println(Max+" "+Mid+" "+Min);

	}

}

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++

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		

		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if (a < b) {
			if (b < c) {
				System.out.printf("%d %d %d\n", a, b, c);
			} else if (a < c) {
				System.out.printf("%d %d %d\n", a, c, b);
			}
		} else {
			System.out.printf("%d %d %d\n", c, b, a);
		}
		if (a < c) {
			System.out.printf("%d %d %d\n", b, a, c);
		} else if (b < c) {
			System.out.printf("%d %d %d\n", b, c, a);
		} else {
			System.out.printf("%d %d %d\n", c, b, b);
		}
	}
}

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

import java.util.*;
import java.lang.*;
import java.math.*;
import java.io.*;

import static java.lang.Math.*;
import static java.util.Arrays.*;

public class Main{

	Scanner sc;

	static final int INF=1<<28;
	static final double EPS=1e-9;

	void run(){
		sc=new Scanner(System.in);
		double r=sc.nextDouble();
		println(PI*r*r+" "+2*PI*r);
		sc.close();
	}

	void print(String s){
		System.out.print(s);
	}

	void println(String s){
		System.out.println(s);
	}

	public static void main(String[] args){
		new Main().run();
	}
}

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


#include <iostream>

using namepace std;

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

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'namepace'
    4 | using namepace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:9:30: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |         for(int i=0;i<3;i++) cin >> a[i];
      |                              ^~~
      |                              std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:25:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   25 |         cout << a[0];
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:28:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   28 |         cout << 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 namespace std;

int a, b, c;

void ans(void);

int main(void){
cin >>a >>b >>c;
cout <<a b c;

return 0;
}

void ans(void){
if(a > b){
swap(a, b);
}
if(b > c){
swap(b, c);
}
if(a > b){
swap(a, b);
}
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: 'i' was not declared in this scope
    4 |   for (i=0; i<3; i++) cin>>x[i];
      |        ^
a.cc:4:23: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   for (i=0; i<3; i++) cin>>x[i];
      |                       ^~~
      |                       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:5:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    5 |   sort(x[0], x[3]);
      |   ^~~~
      |   short
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<x[0]<<x[1]<<x[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:6:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<x[0]<<x[1]<<x[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>
int main() {
  int x[3];
  for (i=0; i<3; i++) cin>>x[i];
  sort(x[0], x[3]);
  cout<<x[0]<<x[1]<<x[2]<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'i' was not declared in this scope
    5 |   for (i=0; i<3; i++) cin>>x[i];
      |        ^
a.cc:5:23: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   for (i=0; i<3; i++) cin>>x[i];
      |                       ^~~
      |                       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:6:3: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    6 |   sort(x[0], x[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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<<x[0]<<x[1]<<x[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:7:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout<<x[0]<<x[1]<<x[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>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'i' was not declared in this scope
    6 |   for (i=0; i<3; i++) cin>>x[i];
      |        ^
a.cc:6:23: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   for (i=0; i<3; i++) cin>>x[i];
      |                       ^~~
      |                       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:3: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    7 |   sort(x[0], x[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:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout<<x[0]<<x[1]<<x[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:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout<<x[0]<<x[1]<<x[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>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   for (; i<3; i++) cin>>x[i];
      |                    ^~~
      |                    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:16:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   cout<<x[0]<<x[1]<<x[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:16:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |   cout<<x[0]<<x[1]<<x[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>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   for (; i<3; i++) cin>>x[i];
      |                    ^~~
      |                    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:15:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |   cout<<x[0]<<x[1]<<x[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:15:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |   cout<<x[0]<<x[1]<<x[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<stdio.h>
#include<algorithm>
int a[3]
int main(){
scanf("%d%d%d",a,a+1,a+2);std::sort(a,a+3);
printf("%d %d %d\n",a[0],a[1],a[2]);}

Compiler output:
a.cc:4:1: error: expected initializer before 'int'
    4 | int main(){
      | ^~~
Language: C++

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

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

Compiler output:
a.cc:10:8: warning: missing terminating " character
   10 | printf("%d %d %d\n, a[0], a[1], a[2]);
      |        ^
a.cc:10:8: error: missing terminating " character
   10 | printf("%d %d %d\n, a[0], a[1], a[2]);
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:1: error: expected primary-expression before '}' token
   11 | }
      | ^
Language: C++

#include<stdio.h>

int main(void)
{
	int a,b,c;
	
	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;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'tmp' was not declared in this scope
   10 |                 tmp=a;a=b;b=tmp;
      |                 ^~~
a.cc:13:17: error: 'tmp' was not declared in this scope
   13 |                 tmp=b;b=c;c=tmp;
      |                 ^~~
a.cc:16:17: error: 'tmp' was not declared in this scope
   16 |                 tmp=a;a=b;b=tmp;
      |                 ^~~