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;
  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:6:7: error: redeclaration of 'int a'
    6 |   int a=max<int>{(
      |       ^
a.cc:4:6: note: 'int a' previously declared here
    4 |  int a,b,c;
      |      ^
Language: C

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



return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: error: 'B' undeclared (first use in this function)
    7 | f=10*c+a+B;
      |          ^
main.c:7:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main(int argc, char *argv[])
{
	int a, b, c;
	Vector<int> target;

	cin >> a >> b >> c;
	target.push_back(a);
	target.push_back(b);
	target.push_back(c);

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

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


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:9:9: error: 'Vector' was not declared in this scope
    9 |         Vector<int> target;
      |         ^~~~~~
a.cc:9:16: error: expected primary-expression before 'int'
    9 |         Vector<int> target;
      |                ^~~
a.cc:12:9: error: 'target' was not declared in this scope
   12 |         target.push_back(a);
      |         ^~~~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)  
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define llong long long
#define pb(a) push_back(a)
#define INF 999999999
using namespace std;
typedef pair<int, int> P;
typedef pair<llong, llong> LP;
typedef pair<int, P> PP;
typedef pair<llong, LP> LPP;

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

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:16: error: 'max' cannot be used as a function
   24 |   max = max(max(a,b),c);
      |             ~~~^~~~~
a.cc:24:12: error: 'max' cannot be used as a function
   24 |   max = max(max(a,b),c);
      |         ~~~^~~~~~~~~~~~
Language: C

#include <stdio.h>

int main(void)
{
        int a[3],i,f,s,t;

        for (i=0;i<3;i++){
                scanf("%d",&a[i]);
        }

        f=s=t=a[0];


        for (i=1;i<3;i++){
                if (a[i]>=f)
                        f=a[i];
                else if (a[i]=<t)
                        t=a[i];
                else
                        s=a[i];
        }

        printf("%d\n",f*10+s+t);

        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:17:31: error: expected expression before '<' token
   17 |                 else if (a[i]=<t)
      |                               ^
Language: C

#include<stdio.h>
int main(void)
{
	int a[3];
	int max = 0;
	scanf_s("%d %d %d", &a[0], &a[1], &a[2]);
	for(int i = 0;i < 3;i++){
		for(int j = 0; j < 3;j++){
			if (a[i] < a[j]) {
				max = a[i];
				a[i] = a[j];
				a[j] = max;
			}
		
		}
	}
	
	printf("%d", a[2] * 10 + a[1] + a[0]);

	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d %d %d", &a[0], &a[1], &a[2]);
      |         ^~~~~~~
      |         scanf
Language: C++

a, b, c = map(int, input().split())

if a >= b and a >= c:
    print(a*10 + b + c)
elif b >= a and b >= c:
    print(b*10 + a + c)
else:
    print(c*10 + a + b)

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

#include <iostream>
#include <string>
#include <algorithm>
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:
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:10:14:   required from here
   10 |   int ans=max(10*A+B+C, A+10*B+C, A+B+10*C);
      |           ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C

#include<stdio.h>

int main()
{
  int A, B, C, chan, i, j;
  scanf("%d,%d,%d", &A, &B, &C);
  
  if (B > C)
  {
    chan = B
      B = C
      C = chan
  }
  
  if (A > B)
  {
    chan = A
      A = B
      B = chan
  }
  
  printf("%d", A+B+10*C);
  
  return 0;
}
      
  

Compiler output:
main.c: In function 'main':
main.c:10:13: error: expected ';' before 'B'
   10 |     chan = B
      |             ^
      |             ;
   11 |       B = C
      |       ~      
main.c:17:13: error: expected ';' before 'A'
   17 |     chan = A
      |             ^
      |             ;
   18 |       A = B
      |       ~
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;

int main(){
  int A, B, C;
  cin >> A >> B >> C;
  int mx = max<int>(
    10 * A + B + C,
    A + B * 10 + C,
    A + B + C * 10,
  );

  cout << mx << endl;
}

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

#include<iostream>
#include<algorithm>

using namespace std;

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

  cout << mx << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: cannot resolve overloaded function 'max' based on conversion to type 'int'
    9 |   int mx = max<int>{
      |            ^~~~~~~~
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;

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

  cout << mx << endl;

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

#include<iostream>
#include<algorithm>

using namespace std;

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

  cout << mx << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: expected ',' or ';' before 'cout'
   15 |   cout << mx << endl;
      |   ^~~~
a.cc:15:22: error: expected '}' at end of input
   15 |   cout << mx << endl;
      |                      ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;

int main(){
  int A, B, C;
  cin >> A >> B >> C;
  if(A = max(A, B, C)){
    cout << A*10 + B + C << endl;
  }
  if(B = max(A, B,C)){
    cout << B*10 + A + C << endl;
  }
  else {
    cout << C*10 + A + B << 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:13:   required from here
    9 |   if(A = 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;
  cin >> A >> B >> C;
  if(A = max(A, B, C)){
    cout << A*10 + B + C << endl;
  }
  if else(B = max(A, B,C)){
    cout << B*10 + A + C << endl;
  }
  else {
    cout << C*10 + A + B << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: expected '(' before 'else'
   12 |   if else(B = max(A, B,C)){
      |      ^~~~
      |      (
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else {
      |   ^~~~
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:13:   required from here
    9 |   if(A = 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;
  cin >> A >> B >> C;
  if(A = max(A, B, C)){
    cout << A*10 + B + C << endl;
  }
  else if (B = max(A, B,C)){
    cout << B*10 + A + C << endl;
  }
  else {
    cout << C*10 + A + B << 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:13:   required from here
    9 |   if(A = 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 A, B, C;
  cin >> A >> B >> C;
  if(A = max(A, B, C)){
    cout << A*10 + B + C << endl;
  }
  else if (B = max(A, B,C)){
    cout << B*10 + A + C << endl;
  }
  else {
    cout << C*10 + A + B << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
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:7:10: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |   if(A = 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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout << A*10 + B + C << 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:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout << A*10 + B + C << 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)
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << B*10 + A + C << 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:11:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout << B*10 + A + C << endl;
      |                             ^~~~
      |                             std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     cout << C*10 + A + B << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |     cout << C*10 + A + B << endl;
      |                             ^~~~
      |                             std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

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

int main(){
int i, j, n, a, b;

scanf("%d %d %d", &n, &a &b);
if(a > b){
  if(n > a) {i = n*10 + a + b;
  }else{i = a*10+n+b;}
}
if(n > b) {i = n*10 + a + b;
}else{i = b*10+n+a;}

printf("%d\n", i)
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:26: error: invalid operands to binary & (have 'int *' and 'int')
    8 | scanf("%d %d %d", &n, &a &b);
      |                       ~~ ^
      |                       |
      |                       int *
main.c:16:18: error: expected ';' before 'return'
   16 | printf("%d\n", i)
      |                  ^
      |                  ;
   17 |   return 0;
      |   ~~~~~~
Language: C

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

int main(){
int i, j, n, a, b;
int a[100000];

scanf("%d %d %d", &n, &a &b);
if(a > b){
  if(n > a) {i = n*10 + a + b;
  }else{i = a*10+n+b;}
}
if(n > b) {i = n*10 + a + b;
}else{i = b*10+n+a;}

printf("%d\n", i)
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:5: error: conflicting types for 'a'; have 'int[100000]'
    7 | int a[100000];
      |     ^
main.c:6:14: note: previous declaration of 'a' with type 'int'
    6 | int i, j, n, a, b;
      |              ^
main.c:17:18: error: expected ';' before 'return'
   17 | printf("%d\n", i)
      |                  ^
      |                  ;
   18 |   return 0;
      |   ~~~~~~
Language: C++

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

int main(){
int i, j, n, a, b;
int a[100000];

scanf("%d %d %d", &n, &a &b);
if(a > b){
  if(n > a) {i = n*10 + a + b;
  }else{i = a*10+n+b;}
}
if(n > b) {i = n*10 + a + b;
}else{i = b*10+n+a;}

printf("%d\n", i)
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: conflicting declaration 'int a [100000]'
    7 | int a[100000];
      |     ^
a.cc:6:14: note: previous declaration as 'int a'
    6 | int i, j, n, a, b;
      |              ^
a.cc:9:26: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    9 | scanf("%d %d %d", &n, &a &b);
      |                       ~~ ^~
      |                       |   |
      |                       |   int
      |                       int*
a.cc:17:18: error: expected ';' before 'return'
   17 | printf("%d\n", i)
      |                  ^
      |                  ;
   18 |   return 0;
      |   ~~~~~~
Language: C++

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

int main(){
int i, j, n, a, b;
int a[100000];

scanf("%d %d %d", &n, &a &b);
if(a > b){
  if(n > a) {i = n*10 + a + b;
  }else{i = a*10+n+b}
}
if(n > b) {i = n*10 + a + b;
}else{i = b*10+n+a}

printf("%d\n", i)
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: conflicting declaration 'int a [100000]'
    7 | int a[100000];
      |     ^
a.cc:6:14: note: previous declaration as 'int a'
    6 | int i, j, n, a, b;
      |              ^
a.cc:9:26: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    9 | scanf("%d %d %d", &n, &a &b);
      |                       ~~ ^~
      |                       |   |
      |                       |   int
      |                       int*
a.cc:12:21: error: expected ';' before '}' token
   12 |   }else{i = a*10+n+b}
      |                     ^
      |                     ;
a.cc:15:19: error: expected ';' before '}' token
   15 | }else{i = b*10+n+a}
      |                   ^
      |                   ;
a.cc:17:18: error: expected ';' before 'return'
   17 | printf("%d\n", i)
      |                  ^
      |                  ;
   18 |   return 0;
      |   ~~~~~~
Language: C++

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

int main(){
int i, j, n, a, b;
int a[100000];

scanf("%d, %d, %d", &n, &a &b);
if(a > b){
if(n > a) {i = n*10 + a + b;
}else{i = a*10+n+b}
}if(n > b) {i = n*10 + a + b;
}else{i = b*10+n+a}

printf("%d\n", i)
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: conflicting declaration 'int a [100000]'
    7 | int a[100000];
      |     ^
a.cc:6:14: note: previous declaration as 'int a'
    6 | int i, j, n, a, b;
      |              ^
a.cc:9:28: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    9 | scanf("%d, %d, %d", &n, &a &b);
      |                         ~~ ^~
      |                         |   |
      |                         |   int
      |                         int*
a.cc:12:19: error: expected ';' before '}' token
   12 | }else{i = a*10+n+b}
      |                   ^
      |                   ;
a.cc:14:19: error: expected ';' before '}' token
   14 | }else{i = b*10+n+a}
      |                   ^
      |                   ;
a.cc:16:18: error: expected ';' before 'return'
   16 | printf("%d\n", i)
      |                  ^
      |                  ;
   17 |   return 0;
      |   ~~~~~~
Language: C++

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

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


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: cannot resolve overloaded function 'max' based on conversion to type 'int'
   11 |     int d = max{(a,b,c)};
      |             ^~~
Language: Java

import java.util Scanner;
public class Main {
	public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
int a=scan.nextInt();
int b=scan.nextInt();
int c=scan.nextInt();
int max=a;
if(max<b){
max=b;
}
if(max<c){
max=c;
}
if(max==a){
a=0;
}
else if(max==b){
b=0;
}
else if(max==c){
c=0;
}
System.out.println(max*10+a+b+c);
}
}

Compiler output:
Main.java:1: error: ';' expected
import java.util Scanner;
                ^
1 error
Language: C++

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

const int N = 200005;
bitset< N> ok;
bitset< 10> chk;



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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: 'swpa' was not declared in this scope
   13 |     if(a < b) swpa(a, b);
      |               ^~~~
Language: C++

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

vector<int> a(3);

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


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

#include<bits/stdc++.h>
using namespace std;
 
#define P(p) cout<<(p)<<endl
#define rep(i,m,n) for(int i = (m); i < (int)(n); i++)
#define rrep(i,m,n) for(int i=(int)(m); i>=(int)(n); i--)
#define vsort(v) sort(v.begin(), v.end());
#define rvsort(v) sort(v.begin(), v.end(),greater<int>());
#define YES cout<<"YES"<< endl
#define NO cout<<"NO"<<endl
#define Yes cout<<"Yes"<<endl
#define No cout<<"No"<<endl  
#define yes cout<<"yes"<<endl
#define no cout<<"no"<<endl
#define ret return
#define lb(v,n) lower_bound(v.begin(),v.end(),n)
#define ub(v,n) upper_bound(v.begin(),v.end(),n)
#define mae(v) max_element(v.begin(),v.end())
#define mie(v) min_element(v.begin(),v.end())
#define INF 0x7FFFFFFF
#define mod 1000000007
typedef long long ll;
////////////////////////////////////////////////////////////

int main(){
	vector<int> v(n);
	cin >> v[0] >> v[1] >> v[2];
	vsort(v);
	cout << v[2]*10+v[1]+v[0] << endl;

	ret 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:23: error: 'n' was not declared in this scope
   26 |         vector<int> v(n);
      |                       ^
Language: C++

#include<iostream>
#include<string>
#include<array>
#include <vector>
#include<deque>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   13 |         std::sort(arr.begin(),arr.end());
      |              ^~~~
      |              qsort
Language: Java

#include <iostream>
#include <string>
using namespace std;
int main(){
	int a[3];
	cin >> a[0] >> a[1] >> a[2];
	string s;
	for(int i=0; i<2; i++){
	int max=i;
		for(int j=i+1; j<3; j++){
			if(a[max]<a[j]) max=j;
		}
		int temp=a[max];
		a[max]=a[i];
		a[i] = temp;
	}
	
	s = to_string(a[0]) + to_string(a[1]);
    int i = stoi(s);
    int sum = i + a[2];
    cout << sum << endl;
    
    return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:2: error: illegal character: '#'
#include <string>
^
Main.java:6: error: not a statement
	cin >> a[0] >> a[1] >> a[2];
	                    ^
Main.java:21: error: not a statement
    cout << sum << endl;
                ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: ']' expected
	int a[3];
	      ^
6 errors
Language: C++

#include <iostream>
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;

int main(int argc, const char * argv[]) {

  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;
  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:17:16:   required from here
   17 |   int ans = max(10*a+b+c, a+10*b+c, a+b+10*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<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,c;
    int x,y,z;
    cin>>a>>b>>c;
    x=a*10+b+c;
    y=b*10+a+c;
    z=c*10+a+b
    cout<<max(x,y,z);
    return(0);
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected ';' before 'cout'
   10 |     z=c*10+a+b
      |               ^
      |               ;
   11 |     cout<<max(x,y,z);
      |     ~~~~
Language: C++

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

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

#pragma GCC diagnostic error "-std=c++11"
#include<set>
#include<map>
#include<cmath>
#include<ctime>
#include<queue>
#include<stack>
#include<cstdio>
#include<string>
#include<vector>
#include<cstdlib>
#include<cstring>
#include<iomanip>
#include<iostream>
#include<algorithm>
#define fi first
#define se second
#define pb push_back
#define lowbit(x) x&(-x)
#define PII  pair<int, int> 
#define all(x) x.begin(), x.end()
#define FAST ios::sync_with_stdio(false); cin.tie(0); cout.tie(0)
typedef long long ll;
const int inf = 0x3f3f3f3f;
const int mod = (int)1e9 + 7;
const int maxn = (int)1e5 + 5;
using namespace std;

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

Compiler output:
main.c:1:30: warning: '-std=c++11' is not an option that controls warnings [-Wpragmas]
    1 | #pragma GCC diagnostic error "-std=c++11"
      |                              ^~~~~~~~~~~~
main.c:2:9: fatal error: set: No such file or directory
    2 | #include<set>
      |         ^~~~~
compilation terminated.
Language: Java

import java.util.*;
public class Main2{
     public static void main(String [] args){
          Scanner sc=new Scanner(System.in);
          int a=sc.nextInt();
          int b=sc.nextInt();
          int c=sc.nextInt();
          int z=Findmax(a,b,c);
          System.out.println(z);
          
     }
     public static int Findmax(int a, int b, int c){
          
          if(a>=b&&a>=c){
               return a*10+b+c;}
          else if(b>=a&&b>=c){
               return b*10+c+a;}
          else if(c>=a&&c>=b){
               return c*10+b+a;}
          return 0;
     }
     
}

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

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
    int A[3];
    cin>>A[0]>>A[1]>>A[2];
    sort(A,A+3);
    cout<<10*c+a+b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'c' was not declared in this scope
    8 |     cout<<10*c+a+b;
      |              ^
a.cc:8:16: error: 'a' was not declared in this scope
    8 |     cout<<10*c+a+b;
      |                ^
a.cc:8:18: error: 'b' was not declared in this scope
    8 |     cout<<10*c+a+b;
      |                  ^
Language: C++

#include<iostream>
#include <stdio.h>
#include <string>
#include <string.h>
#include <algorithm>
#include <functional>
#include <vector>
#include <math.h>

using namespace std;

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

	int Ans = max(10 * a + b + c, a + 10 * b + c);
	int Ans = max(a + b + 10 * c, Ans);

	cout << Ans;


	return 0;
}


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

function Main(input){
    input = input.split("\n")
    var array = new Array()
    for(var i = 0;i < 3;i++){
        array.push(parseInt(input[i],10))
    }

    console.log(array[0] + array[1] + array[2] + 9 * Math.max(...array))
}

Main(require("fs").readFileSync("/dev/stdin","utf8"))

Compiler output:
a.cc:1:1: error: 'function' does not name a type; did you mean 'union'?
    1 | function Main(input){
      | ^~~~~~~~
      | union
a.cc:11:5: error: expected constructor, destructor, or type conversion before '(' token
   11 | Main(require("fs").readFileSync("/dev/stdin","utf8"))
      |     ^
Language: Java

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:
Main.java:1: error: class, interface, enum, or record expected
using namespace std ;
^
Main.java:3: error: not a statement
int A , B , C ; cin >> A >> B >> C ;
                              ^
Main.java:5: error: not a statement
10 * A + B + C ,
           ^
Main.java:6: error: not a statement
A + 10 * B + C ,
           ^
Main.java:7: error: not a statement
A + B + 10 * C ,
      ^
Main.java:9: error: not a statement
cout << ans << endl ;
            ^
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
int main () {
^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: '.class' expected
int ans = max <int >({
                   ^
Main.java:4: error: illegal start of expression
int ans = max <int >({
                     ^
Main.java:5: error: ';' expected
10 * A + B + C ,
              ^
Main.java:6: error: ';' expected
A + 10 * B + C ,
              ^
Main.java:7: error: ';' expected
A + B + 10 * C ,
              ^
Main.java:8: error: illegal start of expression
});
 ^
13 errors
Language: C++

#include <iostream>

using namespace std;

int main()
{
    string s, t;
    char test[100] = { 0 } ;
    cin >> s;
    cin >> t;
    const int len = s.length();
    
    if (len != t.length()) { cout << "No" << endl; return; }
    
    for (int i=0; i<len; i++) {
        int x = (int) (s[i] - 'a') ;
        const char y = t[i];
        if (test[x] == 0) {
            test[x] = y;
        } else if (test[x]!=y) {
            cout << "No" << endl;
            return;
        }
    }
    cout << "Yes" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:52: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |     if (len != t.length()) { cout << "No" << endl; return; }
      |                                                    ^~~~~~
a.cc:22:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   22 |             return;
      |             ^~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
  
  int a[3];
  fot (int i=0;i<=2;i++){
    cin>>a[i] ;
  }
 int b= *max_element(a,a+3);
  
  cout<<a[0]+a[1]+a[2]+b*9<<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected primary-expression before 'int'
    8 |   fot (int i=0;i<=2;i++){
      |        ^~~
a.cc:8:16: error: 'i' was not declared in this scope
    8 |   fot (int i=0;i<=2;i++){
      |                ^
Language: C++

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

using namespace std;

bool is_war(const vector<int> &x, const vector<int> &y) {
    for (int Z = -100; Z <= 100; ++Z) {
        bool is_ok = true;
        for (int i = 0; i < x.size(); ++i) {
            if (x[i] >= Z) is_ok = false;
        }
        for (int i = 0; i < y.size(); ++i) {
            if (y[i] < Z) is_ok = false;
        }
        if (is_ok) return false;
    }
    return true;
}

int main() {
    int N, M;
    cin >> N >> M;
    vector<int> x(N + 1), y(M + 1);
    cin >> x[0] >> y[0];
    for (int i = 0; i < N; ++i) {
        cin >> x[i + 1];
    }
    for (int i = 0; i < M; ++i) {
        cin >> y[i + 1];
    }
    if (is_war(x, y)) {
        cout << " War " << endl;
    } else {
        cout << "No War " << endl;
    }
}

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

#include<iostream>
#include<cstdio>
#include<math.h>
#include<algorithm>

int main(void){
    int A[3];
    scnaf("%d%d%d",A[0],A[1],A[2]);
    sort(A,A+3,greater<int>());
    std::cout<<10*A[0]+A[1]+A[2]<<std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
    8 |     scnaf("%d%d%d",A[0],A[1],A[2]);
      |     ^~~~~
      |     scanf
a.cc:9:16: error: 'greater' was not declared in this scope; did you mean 'std::greater'?
    9 |     sort(A,A+3,greater<int>());
      |                ^~~~~~~
      |                std::greater
In file included from /usr/include/c++/14/string:49,
                 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_function.h:353:12: note: 'std::greater' declared here
  353 |     struct greater;
      |            ^~~~~~~
a.cc:9:24: error: expected primary-expression before 'int'
    9 |     sort(A,A+3,greater<int>());
      |                        ^~~
a.cc:9:5: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    9 |     sort(A,A+3,greater<int>());
      |     ^~~~
      |     std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:4:
/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: Java

import java.util.Scanner;
public class taskA.java{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
int A=sc.nextInt();
int B=sc.nextInt();
int C=sc.nextInt();
int maximum=A+(B*10+C);
System.out.println(maximum);
}
}

Compiler output:
Main.java:2: error: '{' expected
public class taskA.java{
                  ^
1 error
Language: Java

import java.util.Scanner;
public class taskA{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
int A=sc.nextInt();
int B=sc.nextInt();
int C=sc.nextInt();
int maximum=A+(B*10+C);
System.out.println(maximum);
}
}


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


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

public class JavaApplication2.java {


    public static void main (String[] args) {
        Scanner key = new Scanner(System.in);
        int A = key.nextInt();
        int B = key.nextInt();
        int C = key.nextInt();
        int maximum = A+B*10+C;
        System.out.println(maximum);
    }
}

Compiler output:
Main.java:6: error: '{' expected
public class JavaApplication2.java {
                             ^
1 error
Language: Java


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

public class MaximizeTheFormula{

    public static void main (String[] args) {
        Scanner key = new Scanner(System.in);
        int A = key.nextInt();
        int B = key.nextInt();
        int C = key.nextInt();
        int maximum = A+B*10+C;
        System.out.println(maximum);
    }
}

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

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

public class JavaApplication2 {


    public static void main (String[] args) {
        Scanner key = new Scanner(System.in);
        int A = key.nextInt();
        int B = key.nextInt();
        int C = key.nextInt();
        int maximum = A+B*10+C;
        System.out.println(maximum);
    }
}

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

#include <iostream>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
int x[3];
if(a >= b && a >= c){
x[0] = a;
if(b >= c){
x[1] = b;
x[2] = c;
} else {
x[1] = c;
x[2] = b;
}
} else if(b >= a && b >= c){
x[0] = b;
if(a >= c){
x[1] = a;
x[2] = c;
} else {
x[1] = c;
x[2] = a;
}
} else if(c >= a && c >= b){
x[0] = c;
if(a >= b){
x[1] = a;
x[2] = b;
} else {
x[1] = b;
x[2] = a;
}
}
int sum = x[0] * 10 + x[1] + x[2]
cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:1: error: expected ',' or ';' before 'cout'
   36 | cout << sum << endl;
      | ^~~~
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    String t = null;
    if(a>c && b>c){
      String s1 = Integer.toString(a);
      String s2 = Integer.toString(b);
      t = s1+s2;
      int d = Integer.parseInt(t);
      d+=c;
      System.out.println(d);
    }
    else if(a>b && c>b){
      String s1 = Integer.toString(a);
      String s2 = Integer.toString(c);
      t = s1+s2;
      int d = Integer.parseInt(t);
      d+=b;
      System.out.println(d);
    }
    else if(b>a && c>a){
      String s1 = Integer.toString(b);
      String s2 = Integer.toString(c);
      t = s1+s2;
      int d = Integer.parseInt(t);
      d+=a;
      System.out.println(d);
    }
      else if(a==b && b==c){
        String s1 = Integer.toString(a);
        String s2 = Integer.toString(b);
        t = s1+s2;
        int d = Integer.parseInt(t);
        d+=c;
        System.out.println(d);
      }
  }

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

#include "pch.h"
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
	int input[3];
	cin >> input[0] >> input[1] >> input[2];
	sort(input,input+3);
	cout << input[2] * 10 + input[1] + input[0] << endl;
	return 0;
}


Compiler output:
a.cc:1:10: fatal error: pch.h: No such file or directory
    1 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		int c = in.nextInt();

		int max = Math.max(Math.max(a, b), c);

		if (max == a) {
			System.out.println(10 * a + b + c);
		} else if (max == b) {
			System.out.println(10 * b + a + c);

		} else {
			System.out.print(10 * c + a + b);
		}

	}

Compiler output:
Main.java:23: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

import java.util.*;
import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.MathContext;
 
public class WCS {
    
    public static void main(String[] args) throws IOException {
    	String[] s = in.nextLine().split(" ");
    	Arrays.sort(s);
    	sop(Integer.parseInt(s[2] + s[1]) + Integer.parseInt(s[0]));
    }
    
    static class FastReader {
        BufferedReader br;
        StringTokenizer st;
 
        public FastReader() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }
        
        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException  e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
 
        int nextInt() {
            return Integer.parseInt(next());
        }
        
        char nextChar() {
            return in.next().charAt(0);
        }
 
        long nextLong() {
            return Long.parseLong(next());
        }
 
        double nextDouble() {
            return Double.parseDouble(next());
        }
 
        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            }
            catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
    
    static FastReader in = new FastReader();
    static OutputStream out = new BufferedOutputStream(System.out);
    
    public static byte[] toByte(Object o) {
        return String.valueOf(o).getBytes();
    }
    
    public static void sop(Object o) {
        System.out.print(o);
    }
} 

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

#include <bits/stdc++.h>
#define FOR(I,X,Y) for(long long (I)=(X);(I)<(Y);(I)++)
#define REP(I,X,Y) for(long long (I)=(Y)-1;(I)>=(X);(I)--)
#define ALL(X) (X).begin(),(X).end()
@define int long long
#define INF 1000000007
#define LINF 1000000000000000007
typedef long long ll;
using namespace std;

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


Compiler output:
a.cc:5:1: error: stray '@' in program
    5 | @define int long long
      | ^
a.cc:5:2: error: 'define' does not name a type
    5 | @define int long long
      |  ^~~~~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:7: error: 'i' undeclared (first use in this function)
    6 |   for(i=0;i<3;i++){
      |       ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <string>
#include <cmath>
#include <iomanip>
#include <numeric>

using namespace std;

#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) FOR(i, 0, n)
#define SORT(c) sort((c).begin(), (c).end())
#define INF (ll)1e18
#define MOD (ll)1e9 + 7

typedef long long ll;
typedef pair<int, int> P;
typedef vector<int> V;
typedef map<int, int> M;

int main()
{
  return 0
  
    int a[3];
    REP(i, 3)
    cin >> a[i];

    sort(a, a + 3);

    int ans = a[0] + a[1] + a[2] * 10;

    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:11: error: expected ';' before 'int'
   25 |   return 0
      |           ^
      |           ;
   26 | 
   27 |     int a[3];
      |     ~~~
Language: C++

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


int main() {
	//(1)
	//string a, b, c;
	int array[3];
	cin >> array[0] >> array[1] >> array[2];

	sort(array,array+3);
	int max = array[2] * 10 + array[0] + array[1];

	
	cout << max << endl;
	
	
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         cin >> array[0] >> array[1] >> array[2];
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<algorithm>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout << max << endl;
      |         ^~~~
a.cc:16:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:24: error: 'endl' was not declared in this scope
   16 |         cout << max << endl;
      |                        ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<algorithm>
  +++ |+#include <ostream>
    3 | using namespace std;
Language: C++

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

int fmax(int *array,int length);
int fmin(int *array,int length);

int main() {
	//(1)
	//string a, b, c;
	int array[3];
	cin >> array[0] >> array[1] >> array[2];

	sort(array,array+3);
	int max = array[2] * 10 + array[0] + array[1];

	/*int max= atoi((a + b).c_str())+ atoi((c).c_str());
	if (atoi((b + a).c_str())+ atoi((c).c_str()) > max) {
		max = atoi((b + a).c_str()) + atoi((c).c_str());
	}
	if (atoi((a + c).c_str()) + atoi((b).c_str()) > max) {
		max = atoi((a + c).c_str()) + atoi((b).c_str());
	}
	if (atoi((c + a).c_str()) + atoi((b).c_str()) > max) {
		max = atoi((c + a).c_str()) + atoi((b).c_str());
	}
	if (atoi((c + b).c_str()) + atoi((a).c_str()) > max) {
		max = atoi((c + b).c_str()) + atoi((a).c_str());
	}
	if (atoi((b + c).c_str()) + atoi((a).c_str()) > max) {
		max = atoi((b + c).c_str()) + atoi((a).c_str());
	}
	*/
	cout << max << endl;
	
	//(2)
	/*
	int n, m, x, y ;
	cin >> n >> m >> x >> y;
	//vector<int> ax(n);
	//vector<int> ay(n);
	int *ax = new int[n];
	int *ay = new int[m];
	for (int i = 0; i < n; i++)
	{
		cin >> ax[i];
	}
	for (int i = 0; i < m; i++)
	{
		cin >> ay[i];
	}
	int max_x = fmax(ax, n);
	int min_y = fmin(ay, m);

	if(max_x+1==x && min_y -1 == x)
		cout << "War" << endl;
	else if(x >=min_y)
		cout << "War" << endl;
	else if(max_x >= y)
		cout << "War" << endl;
	else if(max_x < min_y )
		cout << "No War" << endl;

	cout << x << endl;
	cout << min_y << endl;
	

	cin >> n;
	

	return 0;
}

int fmax(int *array,int length) {
	int max = array[0];
	for (int i = 1; i < length; i++)
	{
		if (max < array[i] )
			max = array[i];
	}
	return max;

}
int fmin(int *array, int length) {
	int min = array[0];
	for (int i = 1; i < length; i++)
	{
		if (min > array[i])
			min = array[i];
	}
	return min;

}*/
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'cin' was not declared in this scope
   12 |         cin >> array[0] >> array[1] >> array[2];
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<algorithm>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:34:9: error: 'cout' was not declared in this scope
   34 |         cout << max << endl;
      |         ^~~~
a.cc:34:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:34:24: error: 'endl' was not declared in this scope
   34 |         cout << max << endl;
      |                        ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<algorithm>
  +++ |+#include <ostream>
    3 | using namespace std;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected expression before '>' token
    7 | if(a=>b){
      |      ^
main.c:8:6: error: expected expression before '>' token
    8 | if(a=>c){
      |      ^
main.c:14:6: error: expected expression before '>' token
   14 | if(b=>c){
      |      ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:18:17: error: expected ';' before '}' token
   18 | printf("%d\n",e)
      |                 ^
      |                 ;
   19 | }else{
      | ~