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

#include <iostream>

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<<a[2]*10+a[1]+a[2];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'vector' was not declared in this scope
    9 |         vector<int> v;
      |         ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | 
a.cc:9:16: error: expected primary-expression before 'int'
    9 |         vector<int> v;
      |                ^~~
a.cc:10:9: error: 'v' was not declared in this scope
   10 |         v.push_back(a);
      |         ^
a.cc:13:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   13 |         sort(v.begin(),v.end());
      |         ^~~~
      |         short
a.cc:14:16: error: invalid types 'int[int]' for array subscript
   14 |         cout<<a[2]*10+a[1]+a[2];
      |                ^
a.cc:14:24: error: invalid types 'int[int]' for array subscript
   14 |         cout<<a[2]*10+a[1]+a[2];
      |                        ^
a.cc:14:29: error: invalid types 'int[int]' for array subscript
   14 |         cout<<a[2]*10+a[1]+a[2];
      |                             ^
Language: C++

#include <iostream>
using namespace std;

int a, b, c;
void swap(int *a, int *b){

int temp = *a;

*a=*b;

*b=temp;

}
int main(){

cin >>a >> b>>c;


if(a<b)
swap(&a,&b);

if(b<c)
swap(&b,&c);

cout <<c*10+a+b<<‘\n’;
}


Compiler output:
a.cc:25:18: error: extended character ‘ is not valid in an identifier
   25 | cout <<c*10+a+b<<‘\n’;
      |                  ^
a.cc:25:19: error: stray '\' in program
   25 | cout <<c*10+a+b<<‘\n’;
      |                   ^
a.cc:25:20: error: extended character ’ is not valid in an identifier
   25 | cout <<c*10+a+b<<‘\n’;
      |                    ^
a.cc: In function 'int main()':
a.cc:25:18: error: '\U00002018' was not declared in this scope
   25 | cout <<c*10+a+b<<‘\n’;
      |                  ^
Language: C++

#include<iostream>
using namespace std; 

int a, b ,c, s;
cin >> a >> b >> c;

int main(){
if(a >= b && b >= c && a >= c){
(a*10+b) + c = s；
} else if (a >= b && c >= b && a >= c){
  (a*10+c) + b = s；
} else if (b >= a && b >= c && a >= c){
  (b*10+a) + c = s；
} else if (b >= a && b >= c && c >= a){
  (b*10+c) + a = s；
} else if (c >= a && c >= b && b >= a){
  (c*10+b) + a = s；
} else {
  (c*10+b) + a = s；
}
  
  cout << s << endl;
}




Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> a >> b >> c;
      | ^~~
a.cc: In function 'int main()':
a.cc:9:16: error: 's\U0000ff1b' was not declared in this scope
    9 | (a*10+b) + c = s；
      |                ^~~
a.cc:11:18: error: 's\U0000ff1b' was not declared in this scope
   11 |   (a*10+c) + b = s；
      |                  ^~~
a.cc:13:18: error: 's\U0000ff1b' was not declared in this scope
   13 |   (b*10+a) + c = s；
      |                  ^~~
a.cc:15:18: error: 's\U0000ff1b' was not declared in this scope
   15 |   (b*10+c) + a = s；
      |                  ^~~
a.cc:17:18: error: 's\U0000ff1b' was not declared in this scope
   17 |   (c*10+b) + a = s；
      |                  ^~~
a.cc:19:18: error: 's\U0000ff1b' was not declared in this scope
   19 |   (c*10+b) + a = s；
      |                  ^~~
Language: C++

#include <iostream>
#include <vector>
#include <cmath>

using namespace std;

int main(void){
  int a[3];
  cin >> a[0];
  cin >> a[1];
  cin >> a[2];
  sort(a, a+3);
  cout << (a[2] * 10 + a[1] + a[0]);
  return 0;
}


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

#include <stdio.h>
#define max(x, y) (x > y ? x : y)
#define max(x, y, z) max(max(x, y),z)
#define mid(x, y, z) (x > y && y > z ? y : y > z && z > x ? z : x)
#define min(x, y) (x > y ? y : x)
#define min(x, y, z) min(min(x, y), z)
int main() {
  char c0, c1, c2;
  scanf("%c %c %c", &c0, &c1, &c2);
  
  int max = max(c0, c1, c2) - '0';
  int mid = mid(c0, c1, c2) - '0';
  int min = min(c0, c1, c2) - '0'; 
  
  printf("%d\n", 10 * max + mid + min);
  return 0;
}

Compiler output:
main.c:3:9: warning: "max" redefined
    3 | #define max(x, y, z) max(max(x, y),z)
      |         ^~~
main.c:2:9: note: this is the location of the previous definition
    2 | #define max(x, y) (x > y ? x : y)
      |         ^~~
main.c:6:9: warning: "min" redefined
    6 | #define min(x, y, z) min(min(x, y), z)
      |         ^~~
main.c:5:9: note: this is the location of the previous definition
    5 | #define min(x, y) (x > y ? y : x)
      |         ^~~
main.c: In function 'main':
main.c:3:26: error: called object 'max' is not a function or function pointer
    3 | #define max(x, y, z) max(max(x, y),z)
      |                          ^~~
main.c:11:13: note: in expansion of macro 'max'
   11 |   int max = max(c0, c1, c2) - '0';
      |             ^~~
main.c:11:7: note: declared here
   11 |   int max = max(c0, c1, c2) - '0';
      |       ^~~
main.c:3:22: error: called object 'max' is not a function or function pointer
    3 | #define max(x, y, z) max(max(x, y),z)
      |                      ^~~
main.c:11:13: note: in expansion of macro 'max'
   11 |   int max = max(c0, c1, c2) - '0';
      |             ^~~
main.c:11:7: note: declared here
   11 |   int max = max(c0, c1, c2) - '0';
      |       ^~~
main.c:6:26: error: called object 'min' is not a function or function pointer
    6 | #define min(x, y, z) min(min(x, y), z)
      |                          ^~~
main.c:13:13: note: in expansion of macro 'min'
   13 |   int min = min(c0, c1, c2) - '0';
      |             ^~~
main.c:13:7: note: declared here
   13 |   int min = min(c0, c1, c2) - '0';
      |       ^~~
main.c:6:22: error: called object 'min' is not a function or function pointer
    6 | #define min(x, y, z) min(min(x, y), z)
      |                      ^~~
main.c:13:13: note: in expansion of macro 'min'
   13 |   int min = min(c0, c1, c2) - '0';
      |             ^~~
main.c:13:7: note: declared here
   13 |   int min = min(c0, c1, c2) - '0';
      |       ^~~
Language: C++

A, B, C = list(map(int, input().split()))

if A <= B and B <= C:
    a = A
    b = B
    c = C
elif A <= B and C <= A:
    a = C
    b = A
    c = B
elif A <= C and C <= B:
    a = A
    b = C
    c = B
elif B <= A and A <= C:
    a = B
    b = A
    c = C
elif B <= C and C <= A:
    a = B
    b = C
    c = A
else:
    a = C
    b = B
    c = A

max_num = int(str(c) + str(b)) + a

print(max_num)


Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A, B, C = list(map(int, input().split()))
      | ^
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]*10;
	return 0;
}

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

# -*- coding: utf-8 -*-

a = list(map(int, input().split()))

b = sorted(a,reverse=True)

print(10*b[0]+b[1]+b[2])


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:3:1: error: 'a' does not name a type
    3 | a = list(map(int, input().split()))
      | ^
Language: Java


//A - Maximize the Formula

import java.util.Scanner;
public class main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());

		int sum = 0;

		if(b <= a){
			if(c <= a){
				sum = a*10 + b + c;
			}else{
				sum	= c*10 + b + a;
			}
		}else{
			if(c <= b){
				sum = b*10 + a + c;
			}else{
				sum	= c*10 + b + a;
			}
		}

			System.out.println(sum);
	}
}


Compiler output:
Main.java:5: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: C

#include<stdio.>

int main()
{
 int a,b,c,A,B,C;
 scanf("%d%d%d",a,b,c);
 A=a,B=b,C=c;
 if(a<b)
  A=b,B=a;
 if(b<c)
  A=c,B=b,C=a;
 printf("%d",10*A+B+C);
 return 0;
 
}

Compiler output:
main.c:1:9: fatal error: stdio.: No such file or directory
    1 | #include<stdio.>
      |         ^~~~~~~~
compilation terminated.
Language: C++

import java.util.*;


public class Main {

    private static void solve(Scanner sc) {
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        int max = Math.max(a * 9, Math.max(b * 9, c * 9));
        System.out.println(max + a + b + c);
    }

    public static void main(String args[]) {

        solve(new Scanner(System.in));
    }
}


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:4:1: error: expected unqualified-id before 'public'
    4 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main() {
  int A, B, C;
  cin >> A >> B >> C;

  vector<int> list = {A, B, C};
  sort(list.rbegin(), list.rend());

  cout << list[0] * 10 + list[1] + list[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(list.rbegin(), list.rend());
      |   ^~~~
      |   short
Language: Java

import java.util.Scanner;

public class main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());

		int sum;

		if(b <= a){
			if(c <= a){
				sum = a*10 + b + c;
			}else{
				sum	= c*10 + b + a;
			}
		}else{
			if(c <= b){
				sum = b*10 + b + c;
			}else{
				sum	= c*10 + b + a;
			}
		}

			System.out.println(sum);
	}
}

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: C++

import java.util.Scanner;

public class Main {

    private static void solve(Scanner sc) {
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        int max = Math.max(a * 9, Math.max(b * 9, c * 9));
        System.out.println(max + a + b + c);
    }

    public static void main(String args[]) {

        solve(new Scanner(System.in));
    }
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: unable to find numeric literal operator 'operator""a'
    7 |         if(a>b && a>c) cout<<10a+b+c<<endl;
      |                              ^~~
a.cc:8:30: error: unable to find numeric literal operator 'operator""b'
    8 |         if(b>a && b>c) cout<<10b+a+c<<endl;
      |                              ^~~
a.cc:9:30: error: unable to find numeric literal operator 'operator""c'
    9 |         if(c>a && c>b) cout<<10c+a+b<<endl;
      |                              ^~~
Language: C++

using System;
using System.Linq;

namespace ABC110A
{
    internal class Program
    {
        public static void Main(string[] args)
        {
            int[] ints = Input.IntArray();
            int A = ints[0];
            int B = ints[1];
            int C = ints[2];

            if (A >= B)
            {
                if (A >= C)
                {
                    Console.WriteLine(10 * A + B + C);
                    return;
                }
            }

            if (B >= A)
            {
                if (B >= C)
                {
                    Console.WriteLine(10 * B + C + A);
                }
            }

            if (C >= A)
            {
                if (C >= B)
                {
                    Console.WriteLine(10 * C + A + B);
                }
            }
        }
    }
    
    internal static class Input
    {
        public static string String()
        {
            return Console.ReadLine();
        }

        public static int Int()
        {
            return int.Parse(Console.ReadLine());
        }

        public static int[] IntArray()
        {
            return Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
        }

        public static long Long()
        {
            return long.Parse(Console.ReadLine());
        }

        public static long[] LongArray()
        {
            return Console.ReadLine().Split(' ').Select(long.Parse).ToArray();
        }

        public static double[] DoubleArray()
        {
            return Console.ReadLine().Split(' ').Select(double.Parse).ToArray();
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:6:5: error: 'internal' does not name a type
    6 |     internal class Program
      |     ^~~~~~~~
a.cc:42:5: error: 'internal' does not name a type
   42 |     internal static class Input
      |     ^~~~~~~~
Language: C++

#include <iostream>

using namespace std;

int a, b, c;

void swap(int &x, int &y) 

int main() {
    cin >> a >> b >> c;
    if (a < b) swap(a, b);
    if (a < c) swap(a, c);
    cout << a * 10 + b + c << endl; 
    
    return 0;
} 


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

#!/usr/bin/tcc -run

#include <stdio.h>
#include <stdlib.h>

int main(void)
{
	int a, b, c, max, mid, min;
	scanf("%d%d%d", &a, &b, &c);

	max = a;
	if (b > max) max = b;
	if (c > max) max = c;

	min = a;
	if (b < min) min = b;
	if (c < min) min = c;

	mid = a + b + c - min - max;

	printf("%d\n", max * 10 + mid + min);
	return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/tcc -run
      |  ^
Language: C++

import java.util.Scanner;

/**
 * Copyright © 2018 Chris. All rights reserved.
 *
 * @author Chris
 * 2018/7/5 22:51
 *
 */
public class Main {

    private static void solve(Scanner sc) {
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        int max = Math.max(a * 9, Math.max(b * 9, c * 9));
        System.out.println(max + a + b + c);
    }

    public static void main(String args[]) {

        solve(new Scanner(System.in));
    }
}


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:10:1: error: expected unqualified-id before 'public'
   10 | public class Main {
      | ^~~~~~
Language: C++

＃include <bits/stdc++.h>
using namespace std;
int main()
  {
int a,b,c;
  cin >>a >>b >>c;
  if (10*a+b+c>=10*b+c+a)cout<<10*a+b+c<<endl;
  else cout<<10*b+c+a;
}

Compiler output:
a.cc:1:1: error: '\U0000ff03include' does not name a type
    1 | ＃include <bits/stdc++.h>
      | ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >>a >>b >>c;
      |   ^~~
a.cc:7:26: error: 'cout' was not declared in this scope
    7 |   if (10*a+b+c>=10*b+c+a)cout<<10*a+b+c<<endl;
      |                          ^~~~
a.cc:7:42: error: 'endl' was not declared in this scope
    7 |   if (10*a+b+c>=10*b+c+a)cout<<10*a+b+c<<endl;
      |                                          ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout<<10*b+c+a;
      |        ^~~~
Language: C++

a = gets.split(' ').map(&:to_i)
p a.sort!.reverse!
puts a.slice(0, a.length - 1).join.to_i + a[a.length - 1]

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a = gets.split(' ').map(&:to_i)
      | ^
Language: Java

    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        Integer[] list = new Integer[3];
        for(int i = 0;i < 3;i ++) list[i] = scanner.nextInt();
        Arrays.sort(list, Collections.reverseOrder());
        int a = list[0] * 10;
        int b = list[1];
        int c = list[2];
        System.out.println(a + b + c);
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String[] args){
                  ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C

#include <stdio.h>
#include <ctype.h>
#include <string.h>


int main(int argc, char const *argv[]) {
    int A,B,C,temp;
    //char S[11];
    scanf("%d %d %d",&A,&B,&C);
    if (C > B){
        temp = C;
        C = B;
        B = temp;
    }
    if (B > A){
        temp = B;
        B = A;
        A = temp;
    }
    print("%d",A*10+B+C);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   20 |     print("%d",A*10+B+C);
      |     ^~~~~
      |     printf
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int a,b,c,m;
  cin>> a>> b>> c;
  m=max({a,b,c});
  if(m==a) cout<<m*10+b+c<<endl;
  else if(m==b) cout<<m*10+a+c<<endl;
  else m*10+b+a<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |   else m*10+b+a<<endl;
      |        ~~~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
    vector<int>X(3);
  
    cin >> X(0) >> X(1) >> X(2);
  
  sort(X.begin(),X.end());
  
  int answer =X.at(0)*10+X.at(1)+X.at(2);
    cout << answer << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: no match for call to '(std::vector<int>) (int)'
    7 |     cin >> X(0) >> X(1) >> X(2);
      |            ~^~~
a.cc:7:21: error: no match for call to '(std::vector<int>) (int)'
    7 |     cin >> X(0) >> X(1) >> X(2);
      |                    ~^~~
a.cc:7:29: error: no match for call to '(std::vector<int>) (int)'
    7 |     cin >> X(0) >> X(1) >> X(2);
      |                            ~^~~
Language: Java

import java.util.Scanner;

// A - Maximize the Formula
public class AtCoder_Beginner_Contest_110 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());

		int sum;

		if(b <= a){
			if(c <= a){
				sum = a*10 + b + c;
			}else{
				sum	= c*10 + b + a;
			}
		}else{
			if(c <= b){
				sum = b*10 + b + c;
			}else{
				sum	= c*10 + b + a;
			}
		}

			System.out.println(sum);
	}
}


Compiler output:
Main.java:4: error: class AtCoder_Beginner_Contest_110 is public, should be declared in a file named AtCoder_Beginner_Contest_110.java
public class AtCoder_Beginner_Contest_110 {
       ^
1 error
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  cin>> a>> b>> c;
  m=max({a,b,c});
  if(m==a) cout<<m*10+b+c<<endl;
  else if(m==b) cout<<m*10+a+c<<endl;
  else m*10+b+a<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'a' was not declared in this scope
    5 |   cin>> a>> b>> c;
      |         ^
a.cc:5:13: error: 'b' was not declared in this scope
    5 |   cin>> a>> b>> c;
      |             ^
a.cc:5:17: error: 'c' was not declared in this scope
    5 |   cin>> a>> b>> c;
      |                 ^
a.cc:6:3: error: 'm' was not declared in this scope; did you mean 'tm'?
    6 |   m=max({a,b,c});
      |   ^
      |   tm
a.cc:6:8: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    6 |   m=max({a,b,c});
      |     ~~~^~~~~~~~~
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:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include <iostream>

int main() {
    int A, B, C;
    std::cin >> A >> B >> C;

    int max = std::max({A, B, C});
    std::cout << max * 9 + (A + B + C) << std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    7 |     int max = std::max({A, B, C});
      |               ~~~~~~~~^~~~~~~~~~~
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:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
Language: C++

#include<iostream>
#include<vector>
#include<sstream>
#include<string>
#include<numeric>
using namespace std;
int input(){
  int x;
  cin>>x;
  return x;
}
int abs(int x){
  if(x>=0){
    return x;
  }else{
    return -x;
  }
}
int gcd(int x, int y){
	if(x<y){
    return gcd(y,x);
  }
  if(y==0){
    return x;
  }
  return gcd(y,x%y);
}




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








  
 
  
  

  


  

  




  
  
}

 



  
  
  

  






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

import java.util.*;


public class A {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String input = sc.nextLine();
        int inputA = Integer.parseInt(input.split(" ")[0]);
        int inputB = Integer.parseInt(input.split(" ")[1]);
        int inputC = Integer.parseInt(input.split(" ")[2]);
        if(inputA >= inputB && inputA >= inputC){
            System.out.println(inputA * 10 + inputB + inputC);
        }else if(inputB >= inputA && inputB >= inputC){
            System.out.println(inputB * 10 + inputA + inputC);
        }else{
            System.out.println(inputC * 10 + inputA + inputB);
        }
    }
}

Compiler output:
Main.java:4: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: C++

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

int main(){
vector<int> values;
for(int i = 0; i < 3; i++){
  int x = 0;
  cin >> x;
  values.push_back(x);
}
sort(values.begin(), values.end());
int ans = values[2] * 10 + values[1] + values[0];
cout << ans << endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'vector' was not declared in this scope
    6 | vector<int> values;
      | ^~~~~~
a.cc:6:1: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:6:8: error: expected primary-expression before 'int'
    6 | vector<int> values;
      |        ^~~
a.cc:9:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |   cin >> x;
      |   ^~~
      |   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:10:3: error: 'values' was not declared in this scope
   10 |   values.push_back(x);
      |   ^~~~~~
a.cc:12:6: error: 'values' was not declared in this scope
   12 | sort(values.begin(), values.end());
      |      ^~~~~~
a.cc:12:1: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
   12 | sort(values.begin(), values.end());
      | ^~~~
      | 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:14:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 | cout << ans << endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 | cout << ans << 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<bits/stdc++.h>
#define reps(i,j,k) for(int i=j;i<k;i++)
#define rep(i,j) reps(i,0,j)
#define fs first
#define sc second 

using namespace std;

typedef pair<int, int> pii;
typedef vector<int> vi;
typedef long long ll;

int main(){
	int a,b,c;
	vi a(3);
	rep(i,3)cin >> a[i];
	sort(a.begin(), a.end());

	cout << a[0] + a[1] + a[2]*10 << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: conflicting declaration 'vi a'
   15 |         vi a(3);
      |            ^
a.cc:14:13: note: previous declaration as 'int a'
   14 |         int a,b,c;
      |             ^
a.cc:16:25: error: invalid types 'int[int]' for array subscript
   16 |         rep(i,3)cin >> a[i];
      |                         ^
a.cc:17:16: error: request for member 'begin' in 'a', which is of non-class type 'int'
   17 |         sort(a.begin(), a.end());
      |                ^~~~~
a.cc:17:27: error: request for member 'end' in 'a', which is of non-class type 'int'
   17 |         sort(a.begin(), a.end());
      |                           ^~~
a.cc:19:18: error: invalid types 'int[int]' for array subscript
   19 |         cout << a[0] + a[1] + a[2]*10 << endl;
      |                  ^
a.cc:19:25: error: invalid types 'int[int]' for array subscript
   19 |         cout << a[0] + a[1] + a[2]*10 << endl;
      |                         ^
a.cc:19:32: error: invalid types 'int[int]' for array subscript
   19 |         cout << a[0] + a[1] + a[2]*10 << endl;
      |                                ^
Language: C++

#incude <bits/stdc++.h>
using namespace std;

int main() {
  cout << 9 + 9 << endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude <bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cout' was not declared in this scope
    5 |   cout << 9 + 9 << endl;
      |   ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incude <bits/stdc++.h>
a.cc:5:20: error: 'endl' was not declared in this scope
    5 |   cout << 9 + 9 << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incude <bits/stdc++.h>
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <iostream>

int Pow(int n, int m);
int Max(int N[], int n);
int Min(int N[], int n);
int Sum(int N[], int n);




int main()
{
	int X[3] = { 0 };

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

	int ans = 9 * Max(X, 3) + Sum(X, 3);

	printf("%d", ans);

	return ans;
}

int Pow(int n, int m) {
	int ret = 1;

	for (int i = 0; i < m; i++) {
		ret *= n;
	}

	return ret;
}

int Max(int N[], int n) {
	int max = N[0];

	for (int i = 0; i < n; i++) {
		max = max < N[i] ? N[i]: max;
	}

	return max;
}

int Min(int N[], int n) {
	int min = N[0];

	for (int i = 0; i < n; i++) {
		min = min > N[i] ? N[i] : min;
	}

	return min;
}

int Sum(int N[], int n) {
	int sum = 0;

	for (int i = 0; i < n; i++) {
		sum += N[i];
	}

	return sum;
}

Compiler output:
main.c:6:10: fatal error: iostream: No such file or directory
    6 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define pii pair<int,int>
#define pll pair<ll,ll>
#define pcc pair<char,char>
#define vi vector <int>
#define vl vector <ll>
#define sd(x) scanf("%d",&x)
#define slld(x) scanf("%lld",&x)
#define pd(x) printf("%d",x)
#define plld(x) printf("%lld",x)
#define pds(x) printf("%d ",x)
#define pllds(x) printf("%lld ",x)
#define pdn(x) printf("%d\n",x)
#define plldn(x) printf("%lld\n",x)
#define INF 2e9
#define INFLL 4e18
#define spn setprecision
#define fr(x,a,b,c) for(int x = a; x <= b; x+=c)
using namespace std;
ll multiply(ll num1, ll num2, ll mod) { // with mod > 1e9
	ll ans = 0;
	num1 %= mod;
	num2 %= mod;
	while (num2) {
		if (num2&1) {
			ans += num1;
			ans %= mod;
		}
		num1 *= 2;
		num1 %= mod;
		num2 /= 2;
	}
	return ans;
}
ll powmod2(ll base,ll exponent,ll mod){ // with mod > 1e9
	ll ans = 1;
	while (exponent) {
		if (exponent&1) {
			ans = multiply(ans, base, mod);
		}
		base = multiply(base, base, mod);
		exponent /= 2;
	}
	return ans;
}
ll powmod(ll base,ll exponent,ll mod){ // with mod < 1e9
	ll ans=1;
	while(exponent){
		if(exponent&1)ans=(ans*base)%mod;
		base=(base*base)%mod;
		exponent/=2;
	}
	return ans;
}
ll gcd(ll a, ll b){
	if(b==0) return a;
	else return gcd(b,a%b);
}
const int upperlimit = 2e6;
const int mod = 1e9+7;
int main() {
	int a,b,c;
	sd(a);sd(b);sd(c);
	pd(max(10*a+b+c,10*b+a+c,10*c+a+b));
	return 0;
}

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/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:69:2:   required from here
   69 |         pd(max(10*a+b+c,10*b+a+c,10*c+a+b));
      |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: Java

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 total = a + b + c;
		int max = Math.max(a, Math.max(b,c));

		System.out.println(total - max + max * 10);

	}
}
0

Compiler output:
Main.java:16: error: class, interface, enum, or record expected
0
^
1 error
Language: C++

#include <iostream>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <stack>
#define ll long long
#define PI = acos(-1.0);
//#define local

using namespace std;

const int MOD = 1e9+7;
const int inf = 0x3f3f3f3f;
const int maxn = 1e5 + 5;

int main() {
#ifdef local
    if(freopen("/Users/Andrew/Desktop/data.txt", "r", stdin) == NULL) printf("can't open this file!\n");
#endif
    int a[5];
    scanf("%d%d%d", &a[0], &a[1], &a[2]);
    sort(a, 3);
    printf("%d\n", a[2]*10 + a[1] + a[0]);
#ifdef local
    fclose(stdin);
#endif
    return 0;
}













Compiler output:
a.cc: In function 'int main()':
a.cc:27:9: error: no matching function for call to 'sort(int [5], int)'
   27 |     sort(a, 3);
      |     ~~~~^~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   template argument deduction/substitution failed:
a.cc:27:9: note:   deduced conflicting types for parameter '_RAIter' ('int*' and 'int')
   27 |     sort(a, 3);
      |     ~~~~^~~~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 2 provided
Language: C++

#include <iostream>
#include <string>
#include <set>
#include <map>
#include <vector>
#include <stack>
#include <queue>
#include <cmath>
using namespace std;

int main(){

    vector<int> A(3);
    cin >> A[0] >> A[1] >> A[2];

    sort(A.begin(), A.end(), greater<int>());

    cout << 10*A[0] + A[1] + A[2] << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'sort' was not declared in this scope; did you mean 'sqrt'?
   16 |     sort(A.begin(), A.end(), greater<int>());
      |     ^~~~
      |     sqrt
Language: C++

#include <iostream>
using namespace std;

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    int s[] = {a, b, c};
    sort(s, s+3);
    cout << (s[2] * 10 + s[1] + s[0]) << endl;
    return 0;
}


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

#include <bits/stdc+.h>
using namespace std;
int main(){
    int a[3];
    cin >> a[0] >> a[1] >> a[2];
    sort(a,a+3);
    cout << a[2]*10 + a[1] + a[0] << endl;
    return 0;
}


Compiler output:
a.cc:1:10: fatal error: bits/stdc+.h: No such file or directory
    1 | #include <bits/stdc+.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#define roop(i,n) for(int i=0;i<n;i++)
#define int long long
using namespace std;

signed main() {
  int a,b,c;
  cin>>a>>b>>c;
  if(a>=b&&a>=c)cout<<a*10+b+c<<endl;
  else if(b>=a&&b>=c)cout<<b*10+a+c<<endl;
  else cout<<c*10+a+v<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: 'v' was not declared in this scope
   11 |   else cout<<c*10+a+v<<endl;
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int A,B,C;cin>>A>>B>>C;
  int X=A*10+B+C;
  int Y=B*10+C+A;
  cout<<Max(X,Y)<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'Max' was not declared in this scope
    8 |   cout<<Max(X,Y)<<endl;}
      |         ^~~
Language: C++

6 6 7#include <bits/stdc++.h>
using namespace std;

int main(void){
  vector<int> x;
  x.resize(3);
  cin >> x[0] >> x[1] >> x[2];
  sort(x.begin(), x.end());
  cout << x[2] * 10 + x[1] + x[0] << endl;
}


Compiler output:
a.cc:1:6: error: stray '#' in program
    1 | 6 6 7#include <bits/stdc++.h>
      |      ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 6 6 7#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:5:3: error: 'vector' was not declared in this scope
    5 |   vector<int> x;
      |   ^~~~~~
a.cc:5:10: error: expected primary-expression before 'int'
    5 |   vector<int> x;
      |          ^~~
a.cc:6:3: error: 'x' was not declared in this scope
    6 |   x.resize(3);
      |   ^
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> x[0] >> x[1] >> x[2];
      |   ^~~
a.cc:8:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |   sort(x.begin(), x.end());
      |   ^~~~
      |   short
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout << x[2] * 10 + x[1] + x[0] << endl;
      |   ^~~~
a.cc:9:38: error: 'endl' was not declared in this scope
    9 |   cout << x[2] * 10 + x[1] + x[0] << endl;
      |                                      ^~~~
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  cout << a + b + c + 9 * max(a, b, c);
}

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::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:7:30:   required from here
    7 |   cout << a + b + c + 9 * 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>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
using namespace std;

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define MAX3(a, b, c) ((a) > (MAX(b, c)) ? (a) : (MAX(b, c)))
#define MIN3(a, b, c) ((a) < (MIN(b, c)) ? (a) : (MIN(b, c)))

typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;

int main()
{
    int a, b, c;
    cin >> a >> b >> c;
    int max = MAX3(a, b, c);
    cout << max * 10 + (a + b + c) - max << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:31: error: 'MAX' was not declared in this scope; did you mean 'MAX3'?
    9 | #define MAX3(a, b, c) ((a) > (MAX(b, c)) ? (a) : (MAX(b, c)))
      |                               ^~~
a.cc:20:15: note: in expansion of macro 'MAX3'
   20 |     int max = MAX3(a, b, c);
      |               ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll; typedef long double ld;
const int INF32 = 1e9+10;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int A[3]; cin >> A[0] >> A[1] >> A[2];
  sort(A, A+3);
  ans = A[0] + A[1] + A[2]*10;
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |   ans = A[0] + A[1] + A[2]*10;
      |   ^~~
      |   abs
Language: C++

#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
typedef pair<int,int> P
using namespace std;
signed main(){
	int a[3];
	cin>>a[0]>>a[1]>>a[2];
	sort(a,a+3);
	cout<<(a[2]*10+a[1]+a[0])<<endl;
}

Compiler output:
a.cc:4:9: error: 'pair' does not name a type
    4 | typedef pair<int,int> P
      |         ^~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |         cin>>a[0]>>a[1]>>a[2];
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:9:9: 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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout<<(a[2]*10+a[1]+a[0])<<endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         cout<<(a[2]*10+a[1]+a[0])<<endl;
      |                                    ^~~~
      |                                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <deque>
#include <complex>
#include <stack>
#include <queue>
#include <cstdio>
#include <cctype>
#include <cstring>
#include <ctime>
#include <iterator>
#include <bitset>
#include <numeric>
#include <list>
#include <iomanip>

#if __cplusplus >= 201103L
#include <array>
#include <tuple>
#include <initializer_list>
#include <unordered_set>
#include <unordered_map>
#include <forward_list>

#define cauto const auto&
#define ALL(v) begin(v),end(v)
#else
#define ALL(v) (v).begin(),(v).end()
#endif

using namespace std;


typedef long long LL;
typedef pair<int,int> pii;
typedef pair<LL,LL> pll;

typedef vector<int> vint;
typedef vector<vector<int> > vvint;
typedef vector<long long> vll, vLL;
typedef vector<vector<long long> > vvll, vvLL;

#define VV(T) vector<vector< T > >

template <class T>
void initvv(vector<vector<T> > &v, int a, int b, const T &t = T()){
	v.assign(a, vector<T>(b, t));
}

template <class F, class T>
void convert(const F &f, T &t){
	stringstream ss;
	ss << f;
	ss >> t;
}


#define REP(i,n) for(int i=0;i<int(n);++i)
#define RALL(v) (v).rbegin(),(v).rend()


#define MOD 1000000007LL
#define EPS 1e-8



int main(){
	LL a, b, c, d, e, f;
	LL x, y, z;
	double p, q, r;
	string s = "a", t, u;
	
	a = b = c = d = e = f = 0;
	x = y = z = 0;
	p = q = r = 0.0;
	
	cin >> a >> b >> c >> d >> e >> f;
	cin.clear();
	cin >> s >> t >> u;
	cin.clear();
	
	d = max(a, b, c);
	x = d * 10 + a + b + c - d;
	;
	
	;cout << x << endl;
}


Compiler output:
In file included from /usr/include/c++/14/bits/specfun.h:43,
                 from /usr/include/c++/14/cmath:3906,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = long long int; _Compare = long long int]':
a.cc:94:9:   required from here
   94 |         d = 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))
      |           ~~~~~~^~~~~~~~~~