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

#include <iostream>
#include < algorithm >
using namespace std;
int main()
{
    int A, B, C;
    std::cin >> A >> B >> C;
    int g = max<int>({ A * 10 + B + C,A + B * 10 + C,A + B + C * 10 });
    cout << g << endl;
}


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

#include <iostream>
#include <cstdio>
#include < algorithm >
using namespace std;
int main()
{
    int A, B, C;
    std::cin >> A >> B >> C;
    int g = max<int>({ A * 10 + B + C,A + B * 10 + C,A + B + C * 10 });
    cout << g << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
#define ll long long int

int main(){
    int a,b,c;
    cin>>a>>b>>C;
    string game;
    game+=b;
    game+=c;
    int d=stoi(game);
    cout<<a+d;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'C' was not declared in this scope
    7 |     cin>>a>>b>>C;
      |                ^
Language: C

#include <stdio.h>
#include <stdlib.h>
int main() {
	int a, b, c;
	scanf("%d%d%d", &a, &b, &c);
	printf("%d", a + b + c + 9 * max(a, max(b, c)));
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:38: error: implicit declaration of function 'max' [-Wimplicit-function-declaration]
    6 |         printf("%d", a + b + c + 9 * max(a, max(b, c)));
      |                                      ^~~
Language: C++

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

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude<bits/stdc++.h>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'vector' was not declared in this scope
    4 |   vector<int> a(3);
      |   ^~~~~~
a.cc:4:10: error: expected primary-expression before 'int'
    4 |   vector<int> a(3);
      |          ^~~
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> a.at(i);
      |     ^~~
a.cc:6:12: error: 'a' was not declared in this scope
    6 |     cin >> a.at(i);
      |            ^
a.cc:8:8: error: 'a' was not declared in this scope
    8 |   sort(a.begin(), a.end());
      |        ^
a.cc:8:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |   sort(a.begin(), a.end());
      |   ^~~~
      |   short
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout <<  a[2] * 10 + a[1] + a[0] << endl;
      |   ^~~~
a.cc:9:39: error: 'endl' was not declared in this scope
    9 |   cout <<  a[2] * 10 + a[1] + a[0] << endl;
      |                                       ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'tmp' was not declared in this scope; did you mean 'tm'?
    6 |     cin >> tmp.at(i);
      |            ^~~
      |            tm
Language: C++

#include <iostream>
#include <algorithm>

using namespace std;

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

	int mx = max<int>(a, b, c);
	cout << a + b + c + mx * 9 << 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:11:19:   required from here
   11 |         int mx = max<int>(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++

a,b,c=sorted(map(int,input().split()));print(a+b+c*10) 

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,c=sorted(map(int,input().split()));print(a+b+c*10)
      | ^
a.cc:1:45: error: expected constructor, destructor, or type conversion before '(' token
    1 | a,b,c=sorted(map(int,input().split()));print(a+b+c*10)
      |                                             ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (int)n; i++)
using namespace std;

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    cout << max((a*10+b+c),(b*10+c+a),(c*10+a+b)) << 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:8:16:   required from here
    8 |     cout << max((a*10+b+c),(b*10+c+a),(c*10+a+b)) << 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(){
  int A,B,C;
  cin>>A>>B>>C;
  int a=min({A,B,C});
  int b=max({A,B,C});
  ans=10*b+a-(A+B+C-b-a);
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   ans=10*b+a-(A+B+C-b-a);
      |   ^~~
      |   abs
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'a' was not declared in this scope
    7 |   a=min({A,B,C});
      |   ^
a.cc:8:3: error: 'b' was not declared in this scope
    8 |   b=max({A,B,C});
      |   ^
a.cc:9:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   ans=10*b+a-(A+B+C-b-a);
      |   ^~~
      |   abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  
  int max
  int A,B,C;
  cin >> A >> B >> C;
  
  
  cout << max({AB+C,AC+B,BC+A}) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'int'
    7 |   int A,B,C;
      |   ^~~
a.cc:8:10: error: 'A' was not declared in this scope
    8 |   cin >> A >> B >> C;
      |          ^
a.cc:8:15: error: 'B' was not declared in this scope
    8 |   cin >> A >> B >> C;
      |               ^
a.cc:8:20: error: 'C' was not declared in this scope
    8 |   cin >> A >> B >> C;
      |                    ^
a.cc:11:16: error: 'AB' was not declared in this scope
   11 |   cout << max({AB+C,AC+B,BC+A}) << endl;
      |                ^~
a.cc:11:21: error: 'AC' was not declared in this scope
   11 |   cout << max({AB+C,AC+B,BC+A}) << endl;
      |                     ^~
a.cc:11:26: error: 'BC' was not declared in this scope
   11 |   cout << max({AB+C,AC+B,BC+A}) << endl;
      |                          ^~
a.cc:11:14: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
   11 |   cout << max({AB+C,AC+B,BC+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: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:
/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({AB+C,AC+B,BC+A}) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'AB' was not declared in this scope; did you mean 'B'?
    9 |   cout << max({AB+C,AC+B,BC+A}) << endl;
      |                ^~
      |                B
a.cc:9:21: error: 'AC' was not declared in this scope; did you mean 'C'?
    9 |   cout << max({AB+C,AC+B,BC+A}) << endl;
      |                     ^~
      |                     C
a.cc:9:26: error: 'BC' was not declared in this scope; did you mean 'C'?
    9 |   cout << max({AB+C,AC+B,BC+A}) << endl;
      |                          ^~
      |                          C
a.cc:9:14: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    9 |   cout << max({AB+C,AC+B,BC+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: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:
/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({a,b,c})*10+a+b+c-max({a,b,c})) <, endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:49: error: expected primary-expression before ',' token
    7 |   cout << (max({a,b,c})*10+a+b+c-max({a,b,c})) <, endl;
      |                                                 ^
Language: Java

import java.util.Scanner;
import java.util.Arrays;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int[] nums = new int[3];
    nums[0] = sc.nextInt();
    nums[1] = sc.nextInt();
    nums[2] = sc.nextInt();
    Arrays.sort(nums);
    System.out.println(num[2] * 10 + num[1] + num[0]);
  }
}

Compiler output:
Main.java:11: error: cannot find symbol
    System.out.println(num[2] * 10 + num[1] + num[0]);
                       ^
  symbol:   variable num
  location: class Main
Main.java:11: error: cannot find symbol
    System.out.println(num[2] * 10 + num[1] + num[0]);
                                     ^
  symbol:   variable num
  location: class Main
Main.java:11: error: cannot find symbol
    System.out.println(num[2] * 10 + num[1] + num[0]);
                                              ^
  symbol:   variable num
  location: class Main
3 errors
Language: C++

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


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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'reverce' was not declared in this scope
   11 |   reverce(vec.begin(), vec.end());
      |   ^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 's' was not declared in this scope
    8 |   rep(i,3) cin>>s[i];
      |                 ^
a.cc:9:8: error: 's' was not declared in this scope
    9 |   sort(s,s+3);
      |        ^
Language: Java

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


  }
}


Compiler output:
Main.java:9: error: cannot find symbol
    Array.sort(n);
    ^
  symbol:   variable Array
  location: class Main
1 error
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:12:25: error: expected ')' before ';' token
   12 |         printf("%d\n", a ; b +c + max * 9);
      |               ~         ^~
      |                         )
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < n; ++i)
#define rep2(i,s,n) for (int i = s; i < n; ++i)
using namespace std;

int main() {
    vector<int> v(3);
    rep(i,3) cin >> v[i];
    reverse(sort(v.begin(),v.end()));
    cout << v[0]*10+v[1]+v[2] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: invalid use of void expression
    9 |     reverse(sort(v.begin(),v.end()));
      |             ~~~~^~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <iomanip>
#include <string>
#include <algorithm>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'vector' was not declared in this scope
    9 |   vector<int> A;
      |   ^~~~~~
a.cc:5:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    4 | #include <algorithm>
  +++ |+#include <vector>
    5 | 
a.cc:9:10: error: expected primary-expression before 'int'
    9 |   vector<int> A;
      |          ^~~
a.cc:13:5: error: 'A' was not declared in this scope
   13 |     A.push_back(a);
      |     ^
a.cc:15:10: error: request for member 'begin' in 'a', which is of non-class type 'int'
   15 |   sort(a.begin(), a.end());
      |          ^~~~~
a.cc:15:21: error: request for member 'end' in 'a', which is of non-class type 'int'
   15 |   sort(a.begin(), a.end());
      |                     ^~~
a.cc:16:9: error: 'A' was not declared in this scope
   16 |   cout<<A[2]*10+A[1]+A[0]<<endl;
      |         ^
Language: C++

#include <bits/stdc++.h>

int main()
{
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  int x[3]={a,b,c};
  sort(x,x+3);
  int num=(x[2]*10)+(x[1]+x[0]);
  printf("%d",num);
}

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

//#define _GLIBCXX_DEBUG

#include<bits/stdc++.h>
using namespace std;
const int INF= 1e9+5;
typedef long long ll;

int main(){
  int a,b,c;
  cin>>a>>b>>c;
  cout<<a+b+c+9*max(a,b,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:3:
/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:11:20:   required from here
   11 |   cout<<a+b+c+9*max(a,b,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: Java

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

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[3];
		a[0] = sc.nextInt();
		a[1] = sc.nextInt();
		a[2] = sc.nextInt();
		sc.close();

		Arrays.parallelSort(a);
		System.out.println(a[0] + a[1] + a[2] * 10);
	}
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Arrays;
^
Main.java:2: error: class, interface, enum, or record expected
import java.util.Scanner;
^
2 errors
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'cin'
    6 |   cin>>A.at(0)>>A.at(1)>>A.at(2);
      |   ^~~
Language: C++

#include <bits/stdc++.h>
#define ALL(a) (a).begin(),(a).end()
#define N_MAX 1000
#define ll long long int
using namespace std;

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

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


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

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
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) + 1; i++)
#define all(vecto) vecto.begin(),vecto.end()
typedef long long ll;

int main(){
    vector<int> vec(3);
    rep(i,3){
        cin >> vec.at(i);
    }
    cout<<10*max(vec.at(0),vec.at(2))+min(vec.at(0),vec.at(2))+vec.at(1));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:73: error: expected ';' before ')' token
   17 |     cout<<10*max(vec.at(0),vec.at(2))+min(vec.at(0),vec.at(2))+vec.at(1));
      |                                                                         ^
      |                                                                         ;
Language: C++

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

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

#include <bits/stdc++.h>
#include <math.h>
#include <cmath>
 
using namespace std;
using std::cout;
using ll =long long;
bool is_int_lround(double x){
  return std::lround(x)==x;
}
int ketasuu(int x){
  int n=0;
  while(x>0){
    x /=10 ;
    n ++;
  }
  return n;
}
ll gcd11(ll x, ll y){
  long long a= max(x,y), b=min(x,y), c=a%b;
  while( c!=0){
    a =b;
    b =c;
    c = a%b;
  }
  return b;
}

int ab(int x, int y){
  if(x>=y){
    return x-y;
  }
  else if(y>x){
    return y-x;
  }
}
int main(){
  int n =3;
  int a[n];
  for(int i=0;i<3;i++){
    cin>>a[i];
  }
  sort(a.begin(), a.end());
  cout<< a[0]+a[1]+10*a[2]<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:43:10: error: request for member 'begin' in 'a', which is of non-class type 'int [n]'
   43 |   sort(a.begin(), a.end());
      |          ^~~~~
a.cc:43:21: error: request for member 'end' in 'a', which is of non-class type 'int [n]'
   43 |   sort(a.begin(), a.end());
      |                     ^~~
a.cc: In function 'int ab(int, int)':
a.cc:36:1: warning: control reaches end of non-void function [-Wreturn-type]
   36 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#include <cmath>
 
using namespace std;
using std::cout;
using ll =long long;
bool is_int_lround(double x){
  return std::lround(x)==x;
}
int ketasuu(int x){
  int n=0;
  while(x>0){
    x /=10 ;
    n ++;
  }
  return n;
}
ll gcd11(ll x, ll y){
  long long a= max(x,y), b=min(x,y), c=a%b;
  while( c!=0){
    a =b;
    b =c;
    c = a%b;
  }
  return b;
}

int ab(int x, int y){
  if(x>=y){
    return x-y;
  }
  else if(y>x){
    return y-x;
  }
}
int main(){
  int a[3];
  for(int i=0;i<3;i++){
    cin>>a[i];
  }
  sort(a.begin(), a.end());
  cout<< a[0]+a[1]+10*a[2]<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:42:10: error: request for member 'begin' in 'a', which is of non-class type 'int [3]'
   42 |   sort(a.begin(), a.end());
      |          ^~~~~
a.cc:42:21: error: request for member 'end' in 'a', which is of non-class type 'int [3]'
   42 |   sort(a.begin(), a.end());
      |                     ^~~
a.cc: In function 'int ab(int, int)':
a.cc:36:1: warning: control reaches end of non-void function [-Wreturn-type]
   36 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#include <cmath>
 
using namespace std;
using std::cout;
using ll =long long;
bool is_int_lround(double x){
  return std::lround(x)==x;
}
int ketasuu(int x){
  int n=0;
  while(x>0){
    x /=10 ;
    n ++;
  }
  return n;
}
ll gcd11(ll x, ll y){
  long long a= max(x,y), b=min(x,y), c=a%b;
  while( c!=0){
    a =b;
    b =c;
    c = a%b;
  }
  return b;
}

int ab(int x, int y){
  if(x>=y){
    return x-y;
  }
  else if(y>x){
    return y-x;
  }
}
int main(){
  int vector<int> a(3);
  for(int i=0;i<3;i++){
    cin>>a[i];
  }
  sort(a.begin(), a.end());
  cout<< a[0]+a[1]+10*a[2]<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:19: error: invalid declarator before 'a'
   38 |   int vector<int> a(3);
      |                   ^
a.cc:40:10: error: 'a' was not declared in this scope
   40 |     cin>>a[i];
      |          ^
a.cc:42:8: error: 'a' was not declared in this scope; did you mean 'ab'?
   42 |   sort(a.begin(), a.end());
      |        ^
      |        ab
a.cc: In function 'int ab(int, int)':
a.cc:36:1: warning: control reaches end of non-void function [-Wreturn-type]
   36 | }
      | ^
Language: C++

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: redeclaration of 'int ans'
    8 |   int ans = max(ans,10*a+b+c);
      |       ^~~
a.cc:7:7: note: 'int ans' previously declared here
    7 |   int ans = 0;
      |       ^~~
Language: C++

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    9 |   int ans = max({
      |             ~~~^~
   10 |       10 * a + b + c,
      |       ~~~~~~~~~~~~~~~
   11 |       a + 10 * b + c,
      |       ~~~~~~~~~~~~~~~
   12 |       a + b + 10 * c,
      |       ~~~~~~~~~~~~~~~
   13 |     });
      |     ~~          
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 <bits/stdc++.h>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: expected ';' before 'cout'
    8 |         ans = max(ans, 10*c+a+b)
      |                                 ^
      |                                 ;
    9 |         cout << ans << endl;
      |         ~~~~
Language: C++

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


int main() {
    
    int digits[3];
    scanf("d%d%d%",digits, digits +1, digits +2);
    sort(digits,digits+3);
    int ans = 10 * digits[2] + digits[0] + digits[1];
    print("%d\n",ans);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'print' was not declared in this scope; did you mean 'rint'?
   11 |     print("%d\n",ans);
      |     ^~~~~
      |     rint
Language: C++

#include<iostream>
#include<algorithm>
 
using namespace std;
 
int main()
{
  int A, B , C, maxi;
  cin >> A >> B >> C;
  if (A >= B && A >= C)
    maxi = A;
  else if (B >= A && B >= C)
    maxi = B;
  else
    maxi = C;
  
  s = A + B +C - (maxi);
  cout << maxi*10 + s << "\n";
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:3: error: 's' was not declared in this scope
   17 |   s = A + B +C - (maxi);
      |   ^
Language: C++

#include <bits/stdc++.h>
typedef long long ll;
#define _GLIBCXX_DEBUG
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define all(v) v.begin(), v.end()
using namespace std;
using vi = vector<int>;
using vvi = vector<vi>;
const int INF = 1 << 30;
const ll INFll = 1ll << 60;
template <typename T>
bool chmax(T& a, const T& b) {
  if (a < b) {
    a = b;  // aをbで更新
    return true;
  }
  return false;
}
template <typename T>
bool chmin(T& a, const T& b) {
  if (a > b) {
    a = b;  // aをbで更新
    return true;
  }
  return false;
}

int main() {
  vi V;
  rep(i, 3) cin >> V[i];
  sort(all(V), greater<int>);
  cout << 10 + V[0] + V[1] + V[2] << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:28: error: expected primary-expression before ')' token
   31 |   sort(all(V), greater<int>);
      |                            ^
Language: C++

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

int main(){
    vector<int> a[3];
    int sum=0;

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

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

    cout << 10*a.at(0) + a.at(1) + a.at(2) << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: request for member 'at' in 'a', which is of non-class type 'std::vector<int> [3]'
    9 |         cin >> a.at(i);
      |                  ^~
a.cc:12:12: error: request for member 'begin' in 'a', which is of non-class type 'std::vector<int> [3]'
   12 |     sort(a.begin(),a.end());
      |            ^~~~~
a.cc:12:22: error: request for member 'end' in 'a', which is of non-class type 'std::vector<int> [3]'
   12 |     sort(a.begin(),a.end());
      |                      ^~~
a.cc:14:18: error: request for member 'at' in 'a', which is of non-class type 'std::vector<int> [3]'
   14 |     cout << 10*a.at(0) + a.at(1) + a.at(2) << endl;
      |                  ^~
a.cc:14:28: error: request for member 'at' in 'a', which is of non-class type 'std::vector<int> [3]'
   14 |     cout << 10*a.at(0) + a.at(1) + a.at(2) << endl;
      |                            ^~
a.cc:14:38: error: request for member 'at' in 'a', which is of non-class type 'std::vector<int> [3]'
   14 |     cout << 10*a.at(0) + a.at(1) + a.at(2) << endl;
      |                                      ^~
Language: C++

// BEGINNING WITH NAME OF ALMIGHTY GOD ALLAH
// AUTHOR:: MOHAMMAD FAISAL
// ATCODER BEGINNERS PROBLEMS
//#include<bits/stdc++.h>
#include<iostream>
#include<vector>
using namespace std;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.flush();
     vector<int> v;
    int x;
    for(int i=0;i<3;i++)
    {
        cin >> x;
        v.push_back(x);
    }
    sort(v.begin(),v.end());
    int num = v[2]*10 + v[1];
    num += v[0];
    cout<<num;
    return 0;
    // Bye Bye 2019
}




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

// BEGINNING WITH NAME OF ALMIGHTY GOD ALLAH
// AUTHOR:: MOHAMMAD FAISAL
// ATCODER BEGINNERS PROBLEMS
//#include<bits/stdc++.h>
#include<iostream>
using namespace std;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.flush();
 	vector<int> v;
    int x;
    while(x--) v.push_back(x);
    int num = v[2]*10 + v[1];
    num += v[0];
    cout<<num;
    return 0;
    // Bye Bye 2019
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'vector' was not declared in this scope
   12 |         vector<int> v;
      |         ^~~~~~
a.cc:6:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    5 | #include<iostream>
  +++ |+#include <vector>
    6 | using namespace std;
a.cc:12:16: error: expected primary-expression before 'int'
   12 |         vector<int> v;
      |                ^~~
a.cc:14:16: error: 'v' was not declared in this scope
   14 |     while(x--) v.push_back(x);
      |                ^
a.cc:15:15: error: 'v' was not declared in this scope
   15 |     int num = v[2]*10 + v[1];
      |               ^
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,max(A+10*B+C,A+B+10*C) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:47: error: invalid operands of types 'const int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << max(10*A+B+C,max(A+10*B+C,A+B+10*C) << endl;
      |                        ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
Language: C++

#include <vector>
#include <math.h>
#include <iostream>
#include <string>
#include <algorithm>
#include <queue>
#include <iomanip>
#include <deque>
#include <cctype>
#include <unordered_map>

using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int,int>;
using pll = pair<long, long>;
template <class T> using V = vector<T>;
template <class T> using VV = V<V<T>>;
#define rep(i, n) for(int i = 0; i<n; i++)
#define rep_s(i, start, n) for(int i= start;  i<n; i++)
#define rep_down(i, n) for(int i = n-1; i>=0; i--)
#define rep_down_s(i, n, start) for(int i = n-1; i>=start; i--)
#define ALL(a) (a).begin(), (a).end()
#define ALL_str(a) (a).cbegin(), (a).cend()

string alphabet_upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
string alphabet_lower  = "abcdefghijklmnopqrstuvwxyz";
string numbers = "0123456789";

/*
using edge = struct {int to; ll cost;};
vector<edge> tree[limit];
ll depth[limit];

void dfs(int v, int p, ll d){
  depth[v] = d;
  //cout <<"v: " << v << endl;
  for (auto &e: tree[v]){
    //cout << "e.to: " << e.to << endl;
    if (e.to == p) continue;
    dfs(e.to, v, d+e.cost);
  }
}
*/
int keta_sum(int num){
  int dig, sum = 0;
  while(num){
    dig = num % 10;
    sum = sum + dig;
    num = num / 10;
  }
  return sum;
}

ll binary_search(ll left_key, ll border, ll low, ll high) {
     // 配列 a の左端と右端
    ll mid = (low+high)/2;
    while (high > low+1) {
       mid = (low+high)/2;
        if (left_key*mid>border) high = mid;
        else if (left_key*mid<border) low = mid;
        else {
          mid =mid-1;
          break;
        }
    }
    return mid;
}

bool IsPrime(ll a){
  ll b = sqrt(a);
  b++;
  while(b-->=2){
    if (a%b==0) return false;
  }
  return true;
}

ll gcd(ll a, ll b){
  if(a<b){
    tmp = a;
    a = b;
    b = tmp;
  }

  r = a % b;
  while(r!=0){
    a = b;
    b = r;
    r = a % b;
  }
  return b;
}

struct UnionFind {
    vector<int> par; // par[i]:iの親の番号　(例) par[3] = 2 : 3の親が2

    UnionFind(int N) : par(N) { //最初は全てが根であるとして初期化
        for(int i = 0; i < N; i++) par[i] = i;
    }

    int root(int x) { // データxが属する木の根を再帰で得る：root(x) = {xの木の根}
        if (par[x] == x) return x;
        return par[x] = root(par[x]);
    }

    void unite(int x, int y) { // xとyの木を併合
        int rx = root(x); //xの根をrx
        int ry = root(y); //yの根をry
        if (rx == ry) return; //xとyの根が同じ(=同じ木にある)時はそのまま
        par[rx] = ry; //xとyの根が同じでない(=同じ木にない)時：xの根rxをyの根ryにつける
    }

    bool same(int x, int y) { // 2つのデータx, yが属する木が同じならtrueを返す
        int rx = root(x);
        int ry = root(y);
        return rx == ry;
    }
};

int main(void){
  ll N, M, A, B, C, D, K,W, H, Q, X, Y;
  ll ans;
  string S, T;
  cin >> A >> B >> C;
  vector<ll> max_abc;
  max_abc.push_back(A);
  max_abc.push_back(B);
  max_abc.push_back(C);
  sort(ALL(max_abc));
  cout <<max_abc[2]*10+max_abc[1]+max_abc[0] << endl;

}


Compiler output:
a.cc: In function 'll gcd(ll, ll)':
a.cc:82:5: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   82 |     tmp = a;
      |     ^~~
      |     tm
a.cc:87:3: error: 'r' was not declared in this scope
   87 |   r = a % b;
      |   ^
Language: C++

# frozen_stirng_literal: true

a, b, c = gets.aplit.to_i
d = [a, b, c]
d.sort!
e = 10 * d[0] + d[1] + d[2]
puts e


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #frozen_stirng_literal
    1 | # frozen_stirng_literal: true
      |   ^~~~~~~~~~~~~~~~~~~~~
a.cc:3:1: error: 'a' does not name a type
    3 | a, b, c = gets.aplit.to_i
      | ^
Language: C++

///スマホコーディング
#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(int i=int(a);i<int(b);++i)
typedef long long ll;
const int inf=1e9;
int main(){
  int a,b,c; cin>>a>>b>>c;
  int m=max({a+b,b+c,c+a});
  int n=min(a,b,c);
  cout<<m+n<<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:2:
/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:10:12:   required from here
   10 |   int n=min(a,b,c);
      |         ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

Compiler output:
a.cc:35:2: error: 'd' does not name a type
   35 | }d
      |  ^
Language: C++

#include <iostream>
using namespace std;
int main(){
 
   int a,b,c,z;
    cin>>a>>b>>c;
    z=a*10;
    t=b*10;
    g=c*10;
    if(a>=b && a>=c)
        cout<<(z+c+b);
    else if(b>=a && b>=c)
        cout<<(t+a+c);
     else if(c>=a && c>=b)
     cout<<(g+a+b);
  
 
 
 
 
 
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 't' was not declared in this scope
    8 |     t=b*10;
      |     ^
a.cc:9:5: error: 'g' was not declared in this scope
    9 |     g=c*10;
      |     ^
Language: C++

#include <iostream>

using namespace std;

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

cin>>a>>b>>c;
if(c>b)
cout<<c*10=(a=b);
cout<<b*10+(a+c);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: no match for 'operator=' (operand types are 'std::basic_ostream<char>' and 'int')
   11 | cout<<c*10=(a=b);
      |                ^
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:458:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator=(std::basic_ostream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  458 |       operator=(basic_ostream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/ostream:458:33: note:   no known conversion for argument 1 from 'int' to 'std::basic_ostream<char>&&'
  458 |       operator=(basic_ostream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
Language: C++

#include <iostream>

#include<cmath>

using namespace std;

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

cin>>a>>b>>c;
cout<<b*10+(a+c)


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: expected ';' before 'return'
   14 | cout<<b*10+(a+c)
      |                 ^
      |                 ;
......
   17 |     return 0;
      |     ~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define FOR(i,a,b) for(ll i=a;i<=b;i++)
#define FORD(i,a,b) for(int i=a;i>=b;i--)
#define FORL(i,x) for(int i=head[x];i;i=nxt[i])
#define ALL(a)  (a).begin(),(a).end()
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define PB push_back
#define MP make_pair
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

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

  cout << max(a*10+b+c,b*10+a+c,c*10+a+b) << 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:21:14:   required from here
   21 |   cout << max(a*10+b+c,b*10+a+c,c*10+a+b) << 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 <iostream>
#include <vector>
using namespace std;

int main(){
    vector<int> num(3);
    cin>>num.at(0)>>num.at(1)>>num.at(2);
  
    sort(num.begin(),num.end());
    reverse(num.begin(),num.end());
  
    int sum = (10*num.at(0)+num.at(1))+num.at(2);
    cout<<sum<<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(num.begin(),num.end());
      |     ^~~~
      |     short
a.cc:10:5: error: 'reverse' was not declared in this scope
   10 |     reverse(num.begin(),num.end());
      |     ^~~~~~~
Language: C++

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

int main(){
    vector<int> num(3);
    cin>>num.at(0)>>num.at(1)>>num.at(2);
    sort(num.begin(),num.end());
    reverse(num.begin(),num.end());
    int sum = (10*num.at(0)+num.at(1))+num.at(2);
    cout<<sum<<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(num.begin(),num.end());
      |     ^~~~
      |     short
a.cc:9:5: error: 'reverse' was not declared in this scope
    9 |     reverse(num.begin(),num.end());
      |     ^~~~~~~
Language: C

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'if'
   10 |   if(d == a){
      |   ^~
Language: C++

#incluode<iostream>
#incluode<cmath>
using namespace std;
int main()
{

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incluode; did you mean #include?
    1 | #incluode<iostream>
      |  ^~~~~~~~
      |  include
a.cc:2:2: error: invalid preprocessing directive #incluode; did you mean #include?
    2 | #incluode<cmath>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin>>a[1]>>a[2]>>a[3];
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incluode<iostream>
a.cc:9:5: error: 'sort' was not declared in this scope; did you mean 'short'?
    9 |     sort(a+1,a+1+3);
      |     ^~~~
      |     short
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<a[3]*10+a[1]+a[2]<<endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:30: error: 'endl' was not declared in this scope
   10 |     cout<<a[3]*10+a[1]+a[2]<<endl;
      |                              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incluode<iostream>
Language: C++

include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n,m,x,y;
  cin>>n>>m>>x>>y;
  int a=-5000,b=5000,c;
  for(int i=0;i<n;i++){
    cin>>c;
    a=max(a,c);
    }
  for(int i=0;i<m;i++){
    cin>>c;
    b=min(b,c);
    }
  for(int i=x;i<=y;i++){
    if(a<i&&i<=b){
      cout<<"No War"<<endl;
      return 0;
      }
    }
  cout<<"War"<<endl;
}

Compiler output:
a.cc:1:1: error: 'include' 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>>n>>m>>x>>y;
      |   ^~~
a.cc:10:7: error: 'max' was not declared in this scope
   10 |     a=max(a,c);
      |       ^~~
a.cc:14:7: error: 'min' was not declared in this scope; did you mean 'main'?
   14 |     b=min(b,c);
      |       ^~~
      |       main
a.cc:18:7: error: 'cout' was not declared in this scope
   18 |       cout<<"No War"<<endl;
      |       ^~~~
a.cc:18:23: error: 'endl' was not declared in this scope
   18 |       cout<<"No War"<<endl;
      |                       ^~~~
a.cc:22:3: error: 'cout' was not declared in this scope
   22 |   cout<<"War"<<endl;
      |   ^~~~
a.cc:22:16: error: 'endl' was not declared in this scope
   22 |   cout<<"War"<<endl;
      |                ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:44: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << (max(A, (max(B, C))) + A + B + C << endl;
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
a.cc:7:51: error: expected ')' before ';' token
    7 |   cout << (max(A, (max(B, C))) + A + B + C << endl;
      |           ~                                       ^
      |                                                   )
Language: C++

#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <string>
#include <stdexcept>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:44: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |   cout << (max(A, (max(B, C))) + A + B + C << endl;
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
a.cc:12:51: error: expected ')' before ';' token
   12 |   cout << (max(A, (max(B, C))) + A + B + C << endl;
      |           ~                                       ^
      |                                                   )
Language: C++

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

int main() {

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

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

#include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;++i)
#include<string>
	using namespace std;
	typedef long long ll;
	ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
	ll lcm(ll a, ll b) { return a / gcd(a, b) * b; }


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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:54: error: expected primary-expression before ')' token
   15 |                 sort(v.begin(), v.end(), greater<int>);
      |                                                      ^