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

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a,b,c;cin>>a>>b>>c;
  cout<<max([a,b,c])*9+a+b+c<<endl;}

Compiler output:
a.cc: In lambda function:
a.cc:5:20: error: expected '{' before ')' token
    5 |   cout<<max([a,b,c])*9+a+b+c<<endl;}
      |                    ^
a.cc: In function 'int main()':
a.cc:5:12: error: no matching function for call to 'max(main()::<lambda()>)'
    5 |   cout<<max([a,b,c])*9+a+b+c<<endl;}
      |         ~~~^~~~~~~~~
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: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:
/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:
a.cc:5:12: note:   'main()::<lambda()>' is not derived from 'std::initializer_list<_Tp>'
    5 |   cout<<max([a,b,c])*9+a+b+c<<endl;}
      |         ~~~^~~~~~~~~
/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 <bits/stdc++.h>
using namespace std;
int main() {
  int a,b,c;cin>>a>>b>>c;
  cout<<max(10*a+b+c,a+10*b+c,a+b+10*c)<<endl;}

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:5:12:   required from here
    5 |   cout<<max(10*a+b+c,a+10*b+c,a+b+10*c)<<endl;}
      |         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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 <bits/stdc++.h>
using namespace std;

#define rep(i,N) for(int i=0;i<int(N);++i)
#define rep1(i,N) for(int i=1;i<int(N);++i)
#define all(a) (a).begin(),(a).end()

int main() {
	int A,B,C;
	cin>>A>>B>>C;
  	int maxx=max(A,B);maxx=max(maxx,C)
	int ans=A+B+C+9*maxx;
	cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:43: error: expected ';' before 'int'
   11 |         int maxx=max(A,B);maxx=max(maxx,C)
      |                                           ^
      |                                           ;
   12 |         int ans=A+B+C+9*maxx;
      |         ~~~                                
a.cc:13:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |         cout<<ans<<endl;
      |               ^~~
      |               abs
Language: Java

Main {

	public static void main(String[] args) {
		new Main().solveA();
		// new Main().solveB();
		// new Main().solveC();
		// new Main().solveD();
	}

	private void solveA() {
		Scanner scanner = null;

		try {
			scanner = new Scanner(System.in);
			int[] line = new int[3];
			for (int i = 0; i < 3; i++) {
				line[i] = scanner.nextInt();
			}

			Arrays.sort(line);

			int result = line[2] * 10 + line[1] + line[0];

			System.out.println(result);

		} finally {
			if (scanner != null) {
				scanner.close();
			}
		}
	}

	private void solveB() {
		Scanner scanner = null;
		int lineAB = 0;
		int lineBC = 0;
		int lineCA = 0;

		try {
			scanner = new Scanner(System.in);
			lineAB = scanner.nextInt();

			System.out.println("");

		} finally {
			if (scanner != null) {
				scanner.close();
			}
		}
	}

	private void solveC() {
		Scanner scanner = null;
		int lineAB = 0;
		int lineBC = 0;
		int lineCA = 0;

		try {
			scanner = new Scanner(System.in);
			lineAB = scanner.nextInt();

			System.out.println("");

		} finally {
			if (scanner != null) {
				scanner.close();
			}
		}
	}

	private void solveD() {
		Scanner scanner = null;
		int lineAB = 0;
		int lineBC = 0;
		int lineCA = 0;

		try {
			scanner = new Scanner(System.in);
			lineAB = scanner.nextInt();

			System.out.println("");

		} finally {
			if (scanner != null) {
				scanner.close();
			}
		}
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Main {
^
Main.java:3: 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)
Main.java:89: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

import java.util.Scanner;

public class Main {
    private static Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {
        int answer = 0, temp;
        System.out.println(Math.max(Math.max((answer = (temp = answer) + scanner.nextInt()) - temp, (answer = (temp = answer) + scanner.nextInt()) - temp), (answer = (temp = answer) + scanner.nextInt()) - temp) * 9 + answer);
    }
}

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[3];
    for(int i=0;i<3;i++) cin >> a[i];
    sort(a,a+3);
    cout << 10*a[2] + a[1] + a[0] << endl;
    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define int long long
const long long MOD = 1e9+7;

int fact[150000], revfact[150000];
queue<int> prime_count;

int powmod(int a, int p){
	int res = 1, tmp = a;
	while(p != 0){
		if(p % 2)
			res = (res*tmp) % MOD;
		tmp = (tmp*tmp) % MOD;
		p /= 2;
	}
	return res;
}

void factmod(){
	fact[0] = revfact[0] = 1;
	for(int i = 1; i < 150000; i++){
		fact[i] = (fact[i-1] * i) % MOD;
		revfact[i] = (revfact[i-1] * powmod(i, MOD-2)) % MOD;
	}
}

int nCrmod(int n, int r){ // nCr % MOD
	return (((fact[n] * revfact[r]) % MOD) * revfact[n-r]) % MOD;
}

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);

	int n, m; cin >> n >> m;

	for(int i = 2; i <= sqrt(m); i++){ // 素因数分解して指数を queue に突っ込む
		if(m % i == 0){
			int cnt = 0;
			while(m % i == 0){
				m /= i;
				cnt++;
			}
			prime_count.push(cnt);
		}
		if(m == 1) break;
	}
	if(m != 1) prime_count.push(1);

	factmod();

	int ans = 1;
	while(!prime_count.empty()){
		int bi = prime_count.front();
		ans *= nCrmod(n+bi-1, bi); ans %= MOD;
		prime_count.pop();
	}
	cout << ans << endl;

	return 0;
}


Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include <bits/stdc++.h>
#include <cstdio>

using namespace std;
int main ()
{   
    int a,b,c;
    cin >> a >> b >> c;
    cout << max(a,max(b,c))*10+min(min(a,b),c)+min(min(max(a,b),max(b,c),max(c,a))) <<endl;
    return 0;
}












Compiler output:
a.cc: In function 'int main()':
a.cc:9:51: error: no matching function for call to 'min(const int&)'
    9 |     cout << max(a,max(b,c))*10+min(min(a,b),c)+min(min(max(a,b),max(b,c),max(c,a))) <<endl;
      |                                                ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   template argument deduction/substitution failed:
a.cc:9:51: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    9 |     cout << max(a,max(b,c))*10+min(min(a,b),c)+min(min(max(a,b),max(b,c),max(c,a))) <<endl;
      |                                                ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:9:55:   required from here
    9 |     cout << max(a,max(b,c))*10+min(min(a,b),c)+min(min(max(a,b),max(b,c),max(c,a))) <<endl;
      |                                                    ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
Language: C

#include <stdio.h>

int main(void){
  int a[3];
  int temp;
  for(int i = 0; i < 3; i++) scanf("%d", &a[i]);
  for(int i = 0; i < 3; i++){
    for(int j j= i + 1; j < 3; j++){
      if(a[i] < a[j]){
	temp = a[i];
	a[i] = a[j];
	a[j] = a[i];
      }
    }
  }
  printf("%d\n", 10 * a[0] + a[1] + a[2]);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'j'
    8 |     for(int j j= i + 1; j < 3; j++){
      |               ^
main.c:8:15: error: 'j' undeclared (first use in this function)
main.c:8:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:30: error: expected ')' before ';' token
    8 |     for(int j j= i + 1; j < 3; j++){
      |        ~                     ^
      |                              )
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main () {
  vector<int> data(3);
  for (int i = 0; i < 3; i++) {
    cin >> data.at(i);
  }
  sort(data.begin(), data.end())
  cout << data.at(2) * 10 + data.at(1) + data.at(0) << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: expected ';' before 'cout'
    8 |   sort(data.begin(), data.end())
      |                                 ^
      |                                 ;
    9 |   cout << data.at(2) * 10 + data.at(1) + data.at(0) << endl;
      |   ~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main () {
  vector<int> dta(3);
  for (int i = 0; i < 3; i++) {
    cin >> data.at(i);
  }
  sort(data.begin(), data.end())
  cout << data.at(2) * 10 + data.at(1) + data.at(0) << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: overloaded function with no contextual type information
    6 |     cin >> data.at(i);
      |                 ^~
a.cc:8:13: error: overloaded function with no contextual type information
    8 |   sort(data.begin(), data.end())
      |             ^~~~~
a.cc:8:27: error: overloaded function with no contextual type information
    8 |   sort(data.begin(), data.end())
      |                           ^~~
Language: C++

#include<stdc++.h>
using namespace std;
int main () {
  vector<int> dta(3);
  for (int i = 0; i < 3; i++) {
    cin >> data.at(i);
  }
  sort(data.begin(), data.end())
  cout << data.at(2) * 10 + data.at(1) + data.at(0) << endl;
  return 0;
}

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

khjlhhhhhhh
khkjh
jlkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
gggggggggggggggggggggggggggggggggggggggggggg'
ggggggggggggggggg

Compiler output:
a.cc:5:45: warning: missing terminating ' character
    5 | gggggggggggggggggggggggggggggggggggggggggggg'
      |                                             ^
a.cc:5:45: error: missing terminating ' character
a.cc:1:1: error: 'khjlhhhhhhh' does not name a type
    1 | khjlhhhhhhh
      | ^~~~~~~~~~~
Language: C++

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

int main(){
  int A,B,C,max;
  vector<int> num;
  cin >>A>>B>>C;
  
  num.push_back(A);
  num.push_back(B);
  num.push_back(C);
  
  max=A
  for(int i=0;i<3;i++){
    if(max>num[i]){
      max=num[i];
    }
  }
  cout << A+B+C+max*9;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: expected ';' before 'for'
   14 |   max=A
      |        ^
      |        ;
   15 |   for(int i=0;i<3;i++){
      |   ~~~   
a.cc:15:15: error: 'i' was not declared in this scope
   15 |   for(int i=0;i<3;i++){
      |               ^
Language: C++

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

int main(){
  int A,B,C,D;
  cin >> A >> B >> C;
  D = max(A,B,C);
  cout << A+B+C+D*9 << endl;
}

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:9:10:   required from here
    9 |   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))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

int main(){
  int A,B,C,D;
  cin >> A >> B >> C;
  D = max(A,B,C);
  cout << A+B+C+D*9 << endl;
}

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:8:10:   required from here
    8 |   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))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <iostream>
#include <algorithm>

int main(){
  int main A,B,C,D;
  cin >> A >> B >> C;
  D = max(A,B,C);
  cout << A+B+C+D*9 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected initializer before 'A'
    5 |   int main A,B,C,D;
      |            ^
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> A >> B >> C;
      |   ^~~
      |   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:10: error: 'A' was not declared in this scope
    6 |   cin >> A >> B >> C;
      |          ^
a.cc:6:15: error: 'B' was not declared in this scope
    6 |   cin >> A >> B >> C;
      |               ^
a.cc:6:20: error: 'C' was not declared in this scope
    6 |   cin >> A >> B >> C;
      |                    ^
a.cc:7:3: error: 'D' was not declared in this scope
    7 |   D = max(A,B,C);
      |   ^
a.cc:7:7: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |   D = max(A,B,C);
      |       ^~~
      |       std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << A+B+C+D*9 << 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:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << A+B+C+D*9 << 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 <vector>
#include <algorithm>
#include <string>
using namespace std;


int main(){
    int a,b,c;
    int ans=0;
    cin>>a>>b>>c;
    ans=a+b+c+max(a,b,c)*9;
    cout<<ans<<endl;
    
}

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:12:18:   required from here
   12 |     ans=a+b+c+max(a,b,c)*9;
      |               ~~~^~~~~~~
/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 <algorithm>
using namespace std;

int main(){
  int a,b,c;
  cin >> a >> b >> c;
  int x;
  x=max(a,b,c);
  cout << a+b+c+9*x << endl;
}

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:9:8:   required from here
    9 |   x=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: Java

package Inheritance;
import java.util.Scanner;
import java.util.Arrays;
public class test {
	
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int A,B,C;
		A = in.nextInt();
		B = in.nextInt();
		C = in.nextInt();
		int[] list = new int[3];
		list[0]=A; list[1]=B; list[2]=C;
		Arrays.sort(list);
		String a = Integer.toString(list[2])+Integer.toString(list[1]);
		String b = Integer.toString(list[0]);
		System.out.println(Integer.parseInt(a)+Integer.parseInt(b));
	}
}

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

import java.util.Arrays;
import java.util.HashMap;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int[] x = {s.nextInt(),s.nextInt(),s.nextInt()};
        Arrays.sort(x);
        String t = ""+x[2]+x[1];
        System.out.println(Integer.parseInt(t)+x[0]);
    
}

Compiler output:
Main.java:13: error: reached end of file while parsing
}
 ^
1 error
Language: C++

// problem.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"

#include <iostream>
#include <cstdio>
#include <vector>
#include <string>
#include <numeric>
#include <algorithm>
#include <cmath>
#include <functional>

#define ll long long

using namespace std;

int main()
{
    vector<int> arr(3);
    for (auto& v : arr) {
        cin >> v;
    }
    sort(arr.begin(), arr.end(), greater<int>());
    cout << arr[2] * 10 + arr[1] + arr[0] << endl;
    return 0;
}



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

#include<iostream>

using namespace std;

int main() {
  int num[3];
  for (int i = 0; i < 3; i++) {
    cin >> num[i];
  }
  sort(num, num + 3);

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

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

#include <iostream>
#include <ios> 
#include <vector>
#include <string>
#include <algorithm>
#include <functional>
#include <queue>
#include <set>
#include <cmath>
#include <map>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)

using namespace std;
typedef long long int lli;
const int MAX=10000;

int main(){
	int A,B,C;
	cin>>A;
	int x;
	
	cin>>x;
	if(A<x){B=x;}
	else{B=A; A=x;}
	
	cin>>y;
	if(B<y){C=y;}
	else if(A<y){C=B; B=y;}
	else{C=B; B=A; A=y;}
	
	cout<<A+B+10*C;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:14: error: 'y' was not declared in this scope
   27 |         cin>>y;
      |              ^
Language: C++

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

void main() {
  int i, j, k; cin >> i, j, k;
  int ans = max<int> ({
    10 * i + j + k,
    i + j * 10 + k,
    i + j + 10 * k,
  });
  cout << ans << endl;
}

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

#include<iostream>
using namespace std;
int main(){
  int A,B,C;
  cin >> A >> B >> C;
  if(A>=B && A>=C){
  cout << 10*A+B+C<< endl;
  }
  else if(B>A && B>=C){
    cout << A+10*B+C << endl;
  }

  else(C>A && C>B){
  cout << A+B+10*C <<endl;
  }
  
  
return  0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: expected ';' before '{' token
   13 |   else(C>A && C>B){
      |                   ^
      |                   ;
Language: C++

#include<iostream>
using namespace std;
int main(){
  int A,B,C;
  cin >> A >> B >> C;
  if(A>=B && A>=C){
  cout << 10*A+B+C<< endl;
  }
  else if(A<=B && B>=C){
    cout << A+10*B+C << endl;
  
  }

  else(A<=C && B<=C){
  cout << A+B+10*C <<endl;
  }
  
  
  
return  0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: expected ';' before '{' token
   14 |   else(A<=C && B<=C){
      |                     ^
      |                     ;
Language: C++

#include<iostream>
using namespace std;
int main(){
  int A,B,C;
  cin >> A >> B >> C;
  if(A>=B && A>=C){
  cout << 10*A+B+C<< endl;
  }
  else if(A<=B && B>=C){
    cout << A+10*B+C << endl;
  
  }

  else(A<=C && B<=C){
  cout << A+B+10*C;
  }
  
  
  
return  0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: expected ';' before '{' token
   14 |   else(A<=C && B<=C){
      |                     ^
      |                     ;
Language: C++

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

int main()
{
  int a, b, c;
  cin >> a >> b >> c;
  m = min(a, b);
  n = min(m, c);
  cout << a + b + c - n << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'm' was not declared in this scope
    9 |   m = min(a, b);
      |   ^
a.cc:10:3: error: 'n' was not declared in this scope
   10 |   n = min(m, c);
      |   ^
Language: C++

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

int main(){
    vector<int> N(3);
    for (int i=0; i<N.size(); i++) {
        cin>>N.at(i);
    }
    sort(N.begin(),N.end());
    cout<<N.at(2)*10 + N.at(0) + N.at(1);
}

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

calc :: Int -> Int -> Int -> Int
calc a b c
  | a <= c && b <= c = a + b + c * 10
  | b <= a && c <= a = 10 * a + b + c
  | c <= b && a <= b = a + 10 * b + c

main = do
  [a,b,c] <- map read . words <$> getLine
  print $ calc a b c


Compiler output:
a.cc:1:1: error: 'calc' does not name a type
    1 | calc :: Int -> Int -> Int -> Int
      | ^~~~
Language: C++

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

int main(){
  int N,M,X,Y;
  cin>>N>>M>>X>>Y;
  int x[N],y[M];
  for(int uuu=0;uuu<N;uuu++) cin>>x[uuu];
  for(int rrr=0;rrr<M;rrr++) cin>>y[rrr];
  
  int xmax=-20000;
  for(int i=0;i<N;i++) xmax=max(xmax,x[i]);
 int  ymin=20000;
  for(int j=0;j<M;j++) ymin=min(ymin,y[j]);
  int lx=max(X,xmax);
  int ly=min(Y,ymin);
  if(ly-lx>=1) cout<<"No War"<<endl;
  else cout<<"War"<<endl;
  
 return 0; 
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incude; did you mean #include?
    2 | #incude <algorithm>
      |  ^~~~~~
      |  include
Language: C++

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

int main(){
  int N,M,X,Y;
  cin>>N>>M>>X>>Y;
  int x[N],y[M];
  for(int uuu=0;uuu<N;uuu++) cin>>x[uuu];
  for(int rrr=0;rrr<N;rrr++) cin>>y[rrr];
  
  int xmax=-20000;
  for(int i=0;i<N;i++) xmax=max(xmax,x[i]);
 int  ymin=20000;
  for(int j=0;j<M;j++) ymin=min(ymin,y[j]);
  int lx=max(X,xmax);
  int ly=min(Y,ymin);
  if(ly-lx>=1) cout<<"No War"<<endl;
  else cout<<"War"<<endl;
  
 return 0; 
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incude; did you mean #include?
    2 | #incude <algorithm>
      |  ^~~~~~
      |  include
Language: C++

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

int main(){
  int N,M,X,Y;
  cin>>N>>M>>X>>Y;
  int x[N],y[M];
  for(int uuu=0;uuu<N;uuu++) cin>>x[uuu];
  for(int rrr=0;rrr<N;rrr++) cin>>y[rrr];
  
  xmax=-20000;
  for(int i=0;i<N;i++) xmax=max(xmax,x[i]);
  ymin=20000;
  for(int j=0;j<M;j++) ymin=min(ymin,y[j]);
  int lx=max(X,xmax);
  int ly=min(Y,ymin);
  if(ly-lx>=1) cout<<"No War"<<endl;
  else cout<<"War"<<endl;
  
 return 0; 
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incude; did you mean #include?
    2 | #incude <algorithm>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:12:3: error: 'xmax' was not declared in this scope
   12 |   xmax=-20000;
      |   ^~~~
a.cc:14:3: error: 'ymin' was not declared in this scope
   14 |   ymin=20000;
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
	int A,B,C;
	cin >> A >> B >> C;
	
	if(A => B && A => C){
		cout << 10*A + B + C << endl;
	}
	else if(B > A && B > C){
		cout << 10*B + A + C << endl;
	}
	else{
		cout << 10*C + A + B << endl;
	}

	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected primary-expression before '>' token
    8 |         if(A => B && A => C){
      |               ^
a.cc:8:25: error: expected primary-expression before '>' token
    8 |         if(A => B && A => C){
      |                         ^
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <vector>
#include <queue>
#include <bitset>
#include <tuple>
#include <stack>

using namespace std;
int main(){
    int A, B, C;
    cin >> A >> B >> C;
    cout << max(10*A+B+C, A+10*B+C, A+B+10*C) << endl;
    return 0;
}

Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:14:16:   required from here
   14 |     cout << max(10*A+B+C, A+10*B+C, A+B+10*C) << endl;
      |             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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 <bits/stdc++.h>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: no matching function for call to 'end()'
    8 |   sort(x.begin(), x,end());
      |                     ~~~^~
In file included from /usr/include/c++/14/bits/algorithmfwd.h:39,
                 from /usr/include/c++/14/bits/stl_algo.h:59,
                 from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/initializer_list:99:5: note: candidate: 'template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)'
   99 |     end(initializer_list<_Tp> __ils) noexcept
      |     ^~~
/usr/include/c++/14/initializer_list:99:5: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/range_access.h:74:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&)'
   74 |     end(_Container& __cont) -> decltype(__cont.end())
      |     ^~~
/usr/include/c++/14/bits/range_access.h:74:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:85:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&)'
   85 |     end(const _Container& __cont) -> decltype(__cont.end())
      |     ^~~
/usr/include/c++/14/bits/range_access.h:85:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:106:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm])'
  106 |     end(_Tp (&__arr)[_Nm]) noexcept
      |     ^~~
/usr/include/c++/14/bits/range_access.h:106:5: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166:
/usr/include/c++/14/valarray:1249:5: note: candidate: 'template<class _Tp> _Tp* std::end(valarray<_Tp>&)'
 1249 |     end(valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/valarray:1249:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/valarray:1265:5: note: candidate: 'template<class _Tp> const _Tp* std::end(const valarray<_Tp>&)'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/valarray:1265:5: note:   candidate expects 1 argument, 0 provided
Language: C

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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:9:12: error: expected ';' before 'printf'
    9 | d==a*10+b+c
      |            ^
      |            ;
   10 | printf("%d\n", d);
      | ~~~~~~      
main.c:15:12: error: expected ';' before 'printf'
   15 | d==a+b*10+c
      |            ^
      |            ;
   16 | printf("%d\n", d);
      | ~~~~~~      
main.c:21:12: error: expected ';' before 'printf'
   21 | d==a+b+c*10
      |            ^
      |            ;
   22 | printf("%d\n", d);
      | ~~~~~~      
main.c:25:12: error: expected ';' before 'printf'
   25 | d==a*10+c+b
      |            ^
      |            ;
   26 | printf("%d\n", d);
      | ~~~~~~
Language: C

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


return 0;


}

Compiler output:
main.c: In function 'main':
main.c:9:11: error: expected ';' before 'printf'
    9 | d=a*10+b+c
      |           ^
      |           ;
   10 | printf("%d\n", d);
      | ~~~~~~     
main.c:15:11: error: expected ';' before 'printf'
   15 | d=a+b*10+c
      |           ^
      |           ;
   16 | printf("%d\n", d);
      | ~~~~~~     
main.c:21:11: error: expected ';' before 'printf'
   21 | d=a+b+c*10
      |           ^
      |           ;
   22 | printf("%d\n", d);
      | ~~~~~~     
main.c:25:11: error: expected ';' before 'printf'
   25 | d=a*10+c+b
      |           ^
      |           ;
   26 | printf("%d\n", d);
      | ~~~~~~
Language: C++

#include <string>
#include <iostream>
using namespace std;
int solveMeFirst(int a,b,c){
    int reta = a*10 + b +c;
    int retb = a + b*10 +c;
    int retc = a + b +c*10;
    if(reta >= retb && reta >= retc){
          return reta;
    }
    else if(retb >= reta && retb >= retc){
          return retb;
    }
    else{
          return retc;
    }
}

int main(){
    int a,b,c;
    cin >> a  >>b >> c;
    int d = solveMeFirst(a,b,c);
    cout << d;
    return 0;
}

Compiler output:
a.cc:4:24: error: 'b' has not been declared
    4 | int solveMeFirst(int a,b,c){
      |                        ^
a.cc:4:26: error: 'c' has not been declared
    4 | int solveMeFirst(int a,b,c){
      |                          ^
a.cc: In function 'int solveMeFirst(int, int, int)':
a.cc:5:23: error: 'b' was not declared in this scope
    5 |     int reta = a*10 + b +c;
      |                       ^
a.cc:5:26: error: 'c' was not declared in this scope
    5 |     int reta = a*10 + b +c;
      |                          ^
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class ABC110A {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] num = new int[3];
		for(int i = 0;i < 3;++i)
			num[i] = sc.nextInt();
		sc.close();
		
		Arrays.sort(num);
		int ans = num[0] + num[1] + num[2]*10;
		System.out.println(ans);
	}
}


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

ABC = list(map(int, input().split())) 
A = ABC[0]
B = ABC[1]
C = ABC[2]
print(max(A * 10 + B + C, A + B * 10 + C))


Compiler output:
a.cc:1:1: error: 'ABC' does not name a type
    1 | ABC = list(map(int, input().split()))
      | ^~~
Language: C++

#include <bits/stdc++.h>
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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   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:5:3: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    5 |   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:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   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:6:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   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 <iostream>
#include<algorithm>
using namespace std;

int main(){
int A,B,C;
cin >> A >> B >> C;
int x = max<int>({
10*A+B+C,A+10*B+C,A+B+10*C
});
cout << x << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: expected '}' at end of input
   11 | cout << x << endl;
      |                   ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;

int main(){
int A,B,C;
cin >> A >> B >> C;
int x = max<int>({
10*A+B+C,A+10*B+C,A+B+10*C
});
cout << x << endl;
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: no matching function for call to 'max<int>(<brace-enclosed initializer list>)'
    7 | int x = max<int>({
      |         ~~~~~~~~^~
    8 | 10*A+B+C,A+10*B+C,A+B+10*C
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~
    9 | });
      | ~~               
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: Java

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<functional>
#include<array>
#include<math.h>
using namespace std;

int main(int argc, char const *argv[])
{
    int N[3];
    cin >> N[0] >> N[1] >> N[2];
    sort(N, N+3, greater<int>());
    int ans = 10*N[0]+N[1]+N[2];
    std::cout << ans << '\n';
    return 0;
}



Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<string>
^
Main.java:3: error: illegal character: '#'
#include<vector>
^
Main.java:4: error: illegal character: '#'
#include<algorithm>
^
Main.java:5: error: illegal character: '#'
#include<functional>
^
Main.java:6: error: illegal character: '#'
#include<array>
^
Main.java:7: error: illegal character: '#'
#include<math.h>
^
Main.java:13: error: not a statement
    cin >> N[0] >> N[1] >> N[2];
                        ^
Main.java:16: error: not a statement
    std::cout << ans << '\n';
                     ^
Main.java:10: error: unnamed classes are a preview feature and are disabled by default.
int main(int argc, char const *argv[])
^
  (use --enable-preview to enable unnamed classes)
Main.java:10: error: <identifier> expected
int main(int argc, char const *argv[])
                       ^
Main.java:12: error: ']' expected
    int N[3];
          ^
Main.java:14: error: '.class' expected
    sort(N, N+3, greater<int>());
                            ^
Main.java:14: error: -> expected
    sort(N, N+3, greater<int>());
                               ^
14 errors
Language: C++

#include <iostream>
using namespace std;

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

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

#include<iostream>
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;
}

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

#include<iostream>
using namespace std;

int main(){
	int A,B,C;
	if(A>=B && A>=C){
	 cout <<10*A + B + C <<endl;
	}
	else if(B>=C){
	 cout << A + 10*B + C << endl;
	else 
	 cout << A + B + 10*C << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected '}' before 'else'
   11 |         else
      |         ^~~~
a.cc:9:22: note: to match this '{'
    9 |         else if(B>=C){
      |                      ^
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);
    if(a[2]=='0'){
        cout << "0"<<endl;
    }else{
        cout << a[2]*10+a[1]+a[0]<<endl;
    }


    return 0;
}

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

#include <iostream>
using namespace std;

int main(int argc, char const *argv[])
{
    int n[3];
    for (int i=0; i<3; i++) cin >> n[i];
    sort(n, n + 3, greater<int>());

    cout << n[0] * 10 + n[1] + n[2] << endl;
    return 0;
}


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

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int[] n = new int[3];
        for (int i=0;i < 3 ;i++ ) {
            n[i] = Integer.parseInt(sc.next());
        }
        
        Arrays.sort(n)
        
        int ans = 10*n[2]+n[1]+n[0];
        
        System.out.println(ans);
        
    }
}

Compiler output:
Main.java:12: error: ';' expected
        Arrays.sort(n)
                      ^
1 error
Language: C++

#include "bits/stdc++.h"
using namespace std;
int main(){
  int a,b,c,d,e,f,ans;
  cin>>a>>b>>c;
  d=max(a,b,c);
  if(a==d)e=b;f=c;
  if(b==d)e=a;f=c;
  if(c==d)e=b;f=a;
  ans=d*10+e+f;
  cout<<ans<<endl;
  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:6:8:   required from here
    6 |   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))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <iostream>

using namespace std;

int main(void) {
	int a, b, c;
	cin >> a >> b >> c;
	int max_number = max({a, b, c});
	cout << max_number * 9 + a + b + c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    8 |         int max_number = 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<stdio.h>
int main(void){
        int a[3];
        int i,m;
        for(i=0;i<3;i++) scanf("%d",&a[i]);
        m=a[0];
        for(i=1;i<3;i++) if(m<a[i]) m=a[i];
        printf("%d\n",10*m-m+a+b+c);
        return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:32: error: 'b' was not declared in this scope
    8 |         printf("%d\n",10*m-m+a+b+c);
      |                                ^
a.cc:8:34: error: 'c' was not declared in this scope
    8 |         printf("%d\n",10*m-m+a+b+c);
      |                                  ^
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class BC110A {
	public static void Main(String[] args) {
		int[] n = new int[3];
		Scanner sc = new Scanner(System.in);
		for (int i = 0; i < n.length; i++) {
			n[i] = sc.nextInt();
		}
		Arrays.sort(n);
		System.out.println((n[2] * 10) + n[1] + n[0]);
	}
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected ',' or ';' before 'cout'
   11 |     cout<<A<<endl;
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: redeclaration of 'int a'
    6 |   int a=max({
      |       ^
a.cc:4:6: note: 'int a' previously declared here
    4 |  int a,b,c;
      |      ^