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

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

int main() {
    vector<pair<char,char>> p(100000);
    vector<pair<char,char>> p2(100000);
    bool can = true;
    string S,T; cin >> S >> T;
   
    for(int i=0;i<S.size();i++){
        char a,b;
        a=S.at(i); b=T.at(i);
        p.push_back(make_pair(a,b));
        p2.push_back(make_pair(a,b));
    }
    sort(p.begin(),p.end());
    sort(p2.begin(),p2.end());
    for(int i=0;i<S.size()-1;i++){
        char a=p[i].first;
        char b=p[i+1].first;
        char c=p[i].second;
        if(p[i].first == p[i+1].first) {
           if(p[i].second != p[i+1].second)
        {can = false;
         break;}
        }
    }
    for(int i=0;i<S.size()-1;i++){
        if(p2[i].first == p2[i+1].first){
          if(p2[i].second != p2[i+1].second)
        {can = false;
         break;}
        }
    }

    if(can) cout << "Yes" << endl;
    else cout << "No" << endl;

    return 0;
}
}



Compiler output:
a.cc:43:1: error: expected declaration before '}' token
   43 | }
      | ^
Language: C++

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

int main(void){
  int a,b,c;
  cin >> a >> b >> c;
  int maxi = max(max(a,b),max(a,c));
  printf("%d\n",maxi*10+a+b+c-maxi);
  return 0;
}

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:18: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |   int maxi = max(max(a,b),max(a,c));
      |                  ^~~
      |                  std::max
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:
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: 'std::max' declared here
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:7:14: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |   int maxi = max(max(a,b),max(a,c));
      |              ^~~
      |              std::max
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: 'std::max' declared here
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
Language: C++

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

return 0;
}

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

return 0;
}


Compiler output:
a.cc:23:5: error: redefinition of 'int main()'
   23 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: C++

#include<iostream>
#include<vector>
#include<map>
#include<algorithm>
#include<math.h>
#include<string>
#include <iomanip>
#include<deque>

typedef long long ll;
typedef unsigned long long ull;
typedef int itn;
const ll LINF = 1e18;
const int INF = 1e8;

using namespace std;


//マクロ定義
#define vvint(vec,n,m,l) vector<vector<int>> vec(n, vector<int>(m,l));	// lで初期化
#define vvll(vec,n,m,l) vector<vector<ll>> vec(n,vector<ll>(m,l));
#define vint vector<int>
#define pint pair<int,int>
#define rep(i,a) for(int i=0;i<(a);i++)
#define all(x) (x).begin(),(x).end()
#define debug system("pause")				//デバッグ用


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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:25:11: error: 'out' was not declared in this scope
   25 |   cout << out << endl;
      |           ^~~
Language: C++

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


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

#include <iostream>
#include <vector>

using namespace std;

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

    vector<int> v;
    v.push_back(a);
    v.push_back(b);
    v.push_back(c);

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

    int ans = v.at(0) * 10 + v.at(1) + v.at(2);
    cout << ans << endl;

    return 0;
}

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

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

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

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*a[2]+a[1]+a[0];
      |   ^~~
      |   abs
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main(){
	vector<int>a(3);
  for(auto&& u:a)cin>>u;
  sort(begin(a),end(a));
  cout<<a[0]+a[1]+a[2]*10<<endl;
}

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

#include<iostream>
using namespace std;
int main(){
	vector<int>a(3);
  for(auto&& u:a)cin>>u;
  sort(begin(a),end(a));
  cout<<a[0]+a[1]+a[2]*10<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'vector' was not declared in this scope
    4 |         vector<int>a(3);
      |         ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:4:16: error: expected primary-expression before 'int'
    4 |         vector<int>a(3);
      |                ^~~
a.cc:5:16: error: 'a' was not declared in this scope
    5 |   for(auto&& u:a)cin>>u;
      |                ^
a.cc:6:14: error: 'a' was not declared in this scope
    6 |   sort(begin(a),end(a));
      |              ^
a.cc:6:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    6 |   sort(begin(a),end(a));
      |   ^~~~
      |   short
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: cannot resolve overloaded function 'min' based on conversion to type 'int'
    7 |   int d=min{a,b,c};
      |         ^~~
a.cc:8:9: error: cannot resolve overloaded function 'max' based on conversion to type 'int'
    8 |   int e=max{a,b,c};
      |         ^~~
Language: C++

/*
  ∧,,∧
( 'ω' )つ ＜WA,またお前か！！　
（m9 ＼ 　　
　 ＼　 ＼
　 　 ) ) ＼
　 ／／ ＼ ＼
　 (＿） 　 (＿)
*/

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

#define all(x) (x).begin(),(x).end()
#define rep(x, y) for (int x = 0; x < y; x++)
#define MOD 1000000007

typedef long long LL;
typedef long double LD;

bool compare_by_b(pair<int, int> a, pair<int, int> b)
{
    if (a.second != b.second) {
        return a.second < b.second;
    } else {
        return a.first < b.first;
    }
}

ostringstream oss_global;
string s_global = oss_global.str();

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

    int max = max({A, B, C});
    int ans = 9*max + A + B + C;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:38:18: error: 'max' cannot be used as a function
   38 |     int max = max({A, B, C});
      |               ~~~^~~~~~~~~~~
Language: C++

/*
  ∧,,∧
( 'ω' )つ ＜WA,またお前か！！　
（m9 ＼ 　　
　 ＼　 ＼
　 　 ) ) ＼
　 ／／ ＼ ＼
　 (＿） 　 (＿)
*/

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

#define all(x) (x).begin(),(x).end()
#define rep(x, y) for (int x = 0; x < y; x++)
#define MOD 1000000007

typedef long long LL;
typedef long double LD;

bool compare_by_b(pair<int, int> a, pair<int, int> b)
{
    if (a.second != b.second) {
        return a.second < b.second;
    } else {
        return a.first < b.first;
    }
}

ostringstream oss_global;
string s_global = oss_global.str();

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

    int max = max{A, B, C};
    int ans = 9*max + A + B + C;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:38:18: error: expected ',' or ';' before '{' token
   38 |     int max = max{A, B, C};
      |                  ^
Language: C++

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

int main(){
  vector<int> a(3);

  cin >> a[0] >> a[1] >> a[2];
  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:8:43: error: expected ';' before 'cout'
    8 |   sort(a.begin(), a.end(), greater<int>())
      |                                           ^
      |                                           ;
    9 |   cout << a[0]*10+a[1]+a[2] << endl;
      |   ~~~~
Language: C++

#include <iostream>
using namespace std;
int main() {
  int a,b,c; cin >> a >> b >> c;
  int (10*a+b)+c=d;
  int (10*b+a)+c=e;
  int (10*a+c)+b=f;
  int (10*c+a)+b=g;
  int (10*b+c)+a=h;
  int (10*c+b)+a=i;
  int j=max(d,e);
  int k=max(f,g);
  int m=max(h,i);
  int n=max(j,k);
  int o=max(m,n);
  cout << o << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: 'd' was not declared in this scope
    5 |   int (10*a+b)+c=d;
      |                  ^
a.cc:6:18: error: 'e' was not declared in this scope
    6 |   int (10*b+a)+c=e;
      |                  ^
a.cc:7:18: error: 'f' was not declared in this scope
    7 |   int (10*a+c)+b=f;
      |                  ^
a.cc:8:18: error: 'g' was not declared in this scope
    8 |   int (10*c+a)+b=g;
      |                  ^
a.cc:9:18: error: 'h' was not declared in this scope
    9 |   int (10*b+c)+a=h;
      |                  ^
a.cc:10:18: error: 'i' was not declared in this scope
   10 |   int (10*c+b)+a=i;
      |                  ^
Language: C++

#include <iostream>
using namespace std;
int main() {
  int a,b,c; cin >> a >> b >> c;
  int (10*a+b)+c=d;
  int (10*b+a)+c=e;
  int (10*a+c)+b=f;
  int (10*c+a)+b=g;
  int (10*b+c)+a=h;
  int (10*c+b)+a=i;
  int max (d,e)=j;
  int max (f,g)=k;
  int max (h,i)=m;
  int max (j,k)=n;
  int max (m,n)=o;
  cout << o << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: 'd' was not declared in this scope
    5 |   int (10*a+b)+c=d;
      |                  ^
a.cc:6:18: error: 'e' was not declared in this scope
    6 |   int (10*b+a)+c=e;
      |                  ^
a.cc:7:18: error: 'f' was not declared in this scope
    7 |   int (10*a+c)+b=f;
      |                  ^
a.cc:8:18: error: 'g' was not declared in this scope
    8 |   int (10*c+a)+b=g;
      |                  ^
a.cc:9:18: error: 'h' was not declared in this scope
    9 |   int (10*b+c)+a=h;
      |                  ^
a.cc:10:18: error: 'i' was not declared in this scope
   10 |   int (10*c+b)+a=i;
      |                  ^
a.cc:11:15: error: expression list treated as compound expression in initializer [-fpermissive]
   11 |   int max (d,e)=j;
      |               ^
a.cc:12:7: error: redeclaration of 'int max'
   12 |   int max (f,g)=k;
      |       ^~~
a.cc:11:7: note: 'int max' previously declared here
   11 |   int max (d,e)=j;
      |       ^~~
a.cc:13:7: error: redeclaration of 'int max'
   13 |   int max (h,i)=m;
      |       ^~~
a.cc:11:7: note: 'int max' previously declared here
   11 |   int max (d,e)=j;
      |       ^~~
a.cc:14:7: error: redeclaration of 'int max'
   14 |   int max (j,k)=n;
      |       ^~~
a.cc:11:7: note: 'int max' previously declared here
   11 |   int max (d,e)=j;
      |       ^~~
a.cc:14:12: error: 'j' was not declared in this scope
   14 |   int max (j,k)=n;
      |            ^
a.cc:14:14: error: 'k' was not declared in this scope
   14 |   int max (j,k)=n;
      |              ^
a.cc:15:7: error: redeclaration of 'int max'
   15 |   int max (m,n)=o;
      |       ^~~
a.cc:11:7: note: 'int max' previously declared here
   11 |   int max (d,e)=j;
      |       ^~~
a.cc:15:12: error: 'm' was not declared in this scope
   15 |   int max (m,n)=o;
      |            ^
a.cc:15:14: error: 'n' was not declared in this scope
   15 |   int max (m,n)=o;
      |              ^
a.cc:16:11: error: 'o' was not declared in this scope
   16 |   cout << o << endl;
      |           ^
Language: C++

#include <iostream>
using namespace std;
int main() {
  int a,b,c; cin >> a >> b >> c;
  int ab+c=d;
  int ba+c=e;
  int ac+b=f;
  int ca+b=g;
  int bc+a=h;
  int cb+a=i;
  int max (d,e)=j;
  int max (f,g)=k;
  int max (h,i)=m;
  int max (j,k)=n;
  int max (m,n)=o;
  cout << o << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before '+' token
    5 |   int ab+c=d;
      |         ^
a.cc:6:9: error: expected initializer before '+' token
    6 |   int ba+c=e;
      |         ^
a.cc:7:9: error: expected initializer before '+' token
    7 |   int ac+b=f;
      |         ^
a.cc:8:9: error: expected initializer before '+' token
    8 |   int ca+b=g;
      |         ^
a.cc:9:9: error: expected initializer before '+' token
    9 |   int bc+a=h;
      |         ^
a.cc:10:9: error: expected initializer before '+' token
   10 |   int cb+a=i;
      |         ^
a.cc:11:12: error: 'd' was not declared in this scope
   11 |   int max (d,e)=j;
      |            ^
a.cc:11:14: error: 'e' was not declared in this scope
   11 |   int max (d,e)=j;
      |              ^
a.cc:11:15: error: expression list treated as compound expression in initializer [-fpermissive]
   11 |   int max (d,e)=j;
      |               ^
a.cc:12:7: error: redeclaration of 'int max'
   12 |   int max (f,g)=k;
      |       ^~~
a.cc:11:7: note: 'int max' previously declared here
   11 |   int max (d,e)=j;
      |       ^~~
a.cc:12:12: error: 'f' was not declared in this scope
   12 |   int max (f,g)=k;
      |            ^
a.cc:12:14: error: 'g' was not declared in this scope
   12 |   int max (f,g)=k;
      |              ^
a.cc:13:7: error: redeclaration of 'int max'
   13 |   int max (h,i)=m;
      |       ^~~
a.cc:11:7: note: 'int max' previously declared here
   11 |   int max (d,e)=j;
      |       ^~~
a.cc:13:12: error: 'h' was not declared in this scope
   13 |   int max (h,i)=m;
      |            ^
a.cc:13:14: error: 'i' was not declared in this scope
   13 |   int max (h,i)=m;
      |              ^
a.cc:14:7: error: redeclaration of 'int max'
   14 |   int max (j,k)=n;
      |       ^~~
a.cc:11:7: note: 'int max' previously declared here
   11 |   int max (d,e)=j;
      |       ^~~
a.cc:14:12: error: 'j' was not declared in this scope
   14 |   int max (j,k)=n;
      |            ^
a.cc:14:14: error: 'k' was not declared in this scope
   14 |   int max (j,k)=n;
      |              ^
a.cc:15:7: error: redeclaration of 'int max'
   15 |   int max (m,n)=o;
      |       ^~~
a.cc:11:7: note: 'int max' previously declared here
   11 |   int max (d,e)=j;
      |       ^~~
a.cc:15:12: error: 'm' was not declared in this scope
   15 |   int max (m,n)=o;
      |            ^
a.cc:15:14: error: 'n' was not declared in this scope
   15 |   int max (m,n)=o;
      |              ^
a.cc:16:11: error: 'o' was not declared in this scope
   16 |   cout << o << endl;
      |           ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int x[3];
  cin >> x[0] >> x[1] >> x[2];

  sort(x, x+3, greater<int>());

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

  return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:12:10: error: expected ';' before '{' token
   12 |         s{j]=tmp;
      |          ^
      |          ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:10: error: expected ';' before '{' token
   12 |         s{j]=tmp;
      |          ^
      |          ;
main.c:17:5: error: 'dreturn' undeclared (first use in this function)
   17 |     dreturn 0;
      |     ^~~~~~~
main.c:17:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:12: error: expected ';' before numeric constant
   17 |     dreturn 0;
      |            ^~
      |            ;
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 << a[2]**10+a[1]+a[0];
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: invalid type argument of unary '*' (have 'int')
    8 |   cout << a[2]**10+a[1]+a[0];
      |                ^~~
Language: C++

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

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

#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <numeric>

#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;



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



    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'cpit' was not declared in this scope
   19 |         cpit << b*10+c << endl;
      |         ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <numeric>

#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;



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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'cpit' was not declared in this scope
   19 |         cpit << b*10 + c << endl;
      |         ^~~~
Language: Java

import java.util.*;
class Main{
  public static void main(String[] a ){
    Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
int c=sc.nextInt();
System.out.println(Math.max(a,Math.max(b,c))*9+a+b+c);
}}

Compiler output:
Main.java:5: error: variable a is already defined in method main(String[])
int a=sc.nextInt();
    ^
1 error
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    7 |   cout<<max({a*10+b+c, a+b*10+c, a+b+c*10})<<endl;
      |         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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++

>>>>>
,>,,>,,>>,[-<+++++>]<--
[[<]>[->]<]
<
//** Sort
<[
  [
    [->>>+>>+<< <<<]
    >[-<+>>+<]
    >[[->]<[<]>]<<
    [-<<->> >>>+<<<]
    <<<
  ]
  >[-<+>]
  >>>>> [ [-<<<<+>>>>]>]<< <<<<
]
<
[ [->+<]<]
>>[>]<
//**
[-<++++++++++>]<<[->+<]>

[->+<]>[>++++++++++<[->->+<[>]>[[-<+>]>>>+<]<<<<]>[-]>+[-<<+>>]>>>[-<<<<+>>>>]<<<<]
+<[>->++++++++++[-<+++++>]<---[<[+<]>[>]<-]<[.[-]<]]
>[>++++++++++[->+++++<]+>--.[[-]<]>]

++++++++++.


Compiler output:
a.cc:1:1: error: expected unqualified-id before '>>' token
    1 | >>>>>
      | ^~
Language: C

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

int main() {
  int A, B, C, a, ans;
  cin>> A >> B >> C;
  vector<int> vec = {A, B, C};
    sort(vec.begin(), vec.end());
 
    ans = vec.at(2)*10+vec.at(1)+vec.at(0);
      cout << ans << endl;
}


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

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

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



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

#include<<bits/stdc++.h>>
using namespace std;
int main(){
    int A,B,C;
    cin>>A>>B>>C;
  vector<int> vec={A,B,C};


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

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

Compiler output:
a.cc:1:25: warning: extra tokens at end of #include directive
    1 | #include<<bits/stdc++.h>>
      |                         ^
a.cc:1:9: fatal error: <bits/stdc++.h: No such file or directory
    1 | #include<<bits/stdc++.h>>
      |         ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

  #include<iostream>
#include<vector>
using namespace std;
int main(){
    int A,B,C;
cin>>A>>B>>C;
  vector<int>vec={A,B,C};

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

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


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

  #include<iostream>
using namespace std;
int main(){
    int A,B,C;
cin>>A>>B>>C;
  vector<int>vec={A,B,C};

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int>vec={A,B,C};
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 |   #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int>vec={A,B,C};
      |          ^~~
a.cc:8:8: error: 'vec' was not declared in this scope
    8 |   sort(vec.begin(),vec.end());
      |        ^~~
a.cc:8:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |   sort(vec.begin(),vec.end());
      |   ^~~~
      |   short
Language: C++


  #include<iostream>
#include<vector>
using namespace std;
int main(){
    int A,B,C;
cin>>A>>B>>C;
  vector<int>={A,B,C};

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: '>=' should be '> =' to terminate a template argument list
    8 |   vector<int>={A,B,C};
      |             ^~
      |             > =
a.cc:10:8: error: 'vec' was not declared in this scope
   10 |   sort(vec.begin(),vec.end());
      |        ^~~
a.cc:10:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 |   sort(vec.begin(),vec.end());
      |   ^~~~
      |   short
Language: C++


  #include<iostream>
#include<vector>
using namespace std;
int main(){
    int A,B,C;
  vector<int> vec={A,B,C};
  cin>>A>>B>>C;

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

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


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


  #include<iostream>
#include<vector>
using namespace std;
int main(){
    int A,B,C;
  vector<int> vec={A,B,C};
  cin>>A>>B>>C;

  sortt(vec.begin(),vec.end());

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


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

#include <iostream>
#include<math.h>
#include <vector>
#include <numeric>

using namespace std;

int main() {

    int A, B, C;
    cin >> A >> B >> C;


    int resultA = A * 10 + B + C;
    int resultB = A + B * 10 + C;
    int resultC= A + B + C * 10;

    vector<int> answer(3);
    answer.push_back(resultA);
    answer.push_back(resultB);
    answer.push_back(resultC);

    int max = *max_element(answer.begin(), answer.end());

    cout << max << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:16: error: 'max_element' was not declared in this scope
   23 |     int max = *max_element(answer.begin(), answer.end());
      |                ^~~~~~~~~~~
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());
  int ans=a.at(0)*10+a.at(1)+a.at(2);
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: 'A' was not declared in this scope
    5 |   cin>>a.at(0)>>A.at(1)>>a.at(2);
      |                 ^
Language: C++

#include<algorithm>
#include <iostream>
#include<cstdio>
#include<cmath>
#include<iomanip>
#include<string>
using namespace std;
int main() {

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

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

	cout << ans << endl;



	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:35: error: invalid types 'int[int]' for array subscript
   18 |         ans = 10 * a[2] + a[1] + 1[0];
      |                                   ^
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'AB' was not declared in this scope; did you mean 'B'?
    9 |       cout << AB + C << endl;
      |               ^~
      |               B
a.cc:12:19: error: 'BC' was not declared in this scope; did you mean 'C'?
   12 |       cout << A + BC << endl;
      |                   ^~
      |                   C
a.cc:15:19: error: 'BC' was not declared in this scope; did you mean 'C'?
   15 |       cout << A + BC << endl;
      |                   ^~
      |                   C
a.cc:18:15: error: 'AB' was not declared in this scope; did you mean 'B'?
   18 |       cout << AB + C << endl;
      |               ^~
      |               B
a.cc:21:15: error: 'AB' was not declared in this scope; did you mean 'B'?
   21 |       cout << AB + C << endl;
      |               ^~
      |               B
Language: C++

#include <iostream>
using namespace std;

int main() {
  int a[3];
  for(int i = 0; i < 3; i++) cin >> a[i];

  sort(a, a+2);

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


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

# include < bits/stdc++.h >

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:  bits/stdc++.h : No such file or directory
    1 | # include < bits/stdc++.h >
      |           ^~~~~~~~~~~~~~~~~
compilation terminated.
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>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: expected '(' before 'else'
   10 |   if else(b >= a && b >= c){
      |      ^~~~
      |      (
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else{
      |   ^~~~
Language: C++

#include <iostream>
#include <vecotor>
#include <algorithm>

using namespace std;



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


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

#include <iostream > 
#include <algorithm >

using namespace std;

int main() {
int A, B, C;
  cin>>A>>B>>C;
  
  int mx=max({A,B,C,});
  
  int ans=mx*9+A+B+C;
  
  cout<<ans<<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 <algorithm >
using namespace std;
int main() {
int A, B, C;
  cin>>A>>B>>C;
  
  int mx=max({A,B,C,});
  
  int ans=mx*9+A+B+C;
  
  cout<<ans<<endl;
  
}
  

Compiler output:
a.cc:1:22: warning: extra tokens at end of #include directive
    1 | #include <iostream > #include <algorithm >
      |                      ^
a.cc:1:10: fatal error: iostream : No such file or directory
    1 | #include <iostream > #include <algorithm >
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc:1:22: warning: extra tokens at end of #include directive
    1 | #include <iostream > #include <algorithm >
      |                      ^
a.cc:1:10: fatal error: iostream : No such file or directory
    1 | #include <iostream > #include <algorithm >
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc:1:22: warning: extra tokens at end of #include directive
    1 | #include <iostream > #include <algorithm >
      |                      ^
a.cc:1:10: fatal error: iostream : No such file or directory
    1 | #include <iostream > #include <algorithm >
      |          ^~~~~~~~~~~
compilation terminated.
Language: C

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'vecotr' was not declared in this scope
    5 |   vecotr<int> n(3);
      |   ^~~~~~
a.cc:5:10: error: expected primary-expression before 'int'
    5 |   vecotr<int> n(3);
      |          ^~~
a.cc:7:12: error: 'n' was not declared in this scope
    7 |     cin >> n.at(i);
      |            ^
a.cc:9:8: error: 'n' was not declared in this scope; did you mean 'yn'?
    9 |   sort(n.begin(), n.end());
      |        ^
      |        yn
Language: C++

#include<iostream>
#include<vector>
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[0]+a[1]<<endl;
}
  

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    6 |   cout << max({
      |           ~~~^~
    7 |     a * 10 + b + c,
      |     ~~~~~~~~~~~~~~~
    8 |     a + b * 10 + c,
      |     ~~~~~~~~~~~~~~~
    9 |     a + b + c * 10
      |     ~~~~~~~~~~~~~~
   10 |   }) << endl;
      |   ~~          
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
Language: C++

#include <iostream>
#include <cstring>
#include <map>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <set>
#include <vector>
#include <queue>
#include <list>
#include <numeric>

using namespace std;
typedef long long ll;

/*迷路
const int INF = 50;

typedef pair<int,int> P;
char field[52][52];
int d[51][51];
int r,c;
int sx,sy;
int gx,gy;

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

int bfs(){
    queue<P> que;
    for(int i=0;i<r;i++){
        for(int j=0;j<c;j++){
            d[i+1][j+1] = INF;
        }
    }
    que.push(P(sy,sx));
    d[sy][sx]=0;
while(que.size()){
    P p=que.front();
    que.pop();
    if(p.second==gx&&p.first==gy) break;
    for(int i=0;i<4;i++){
        int nx=p.second+dx[i];
        int ny=p.first+dy[i];

        if(1<=nx&&nx<=c&&1<=ny&&ny<=r&&field[ny][nx]!='#'&&d[ny][nx]==INF){
            que.push(P(ny,nx));
            d[ny][nx] = d[p.first][p.second] + 1;
        }
    }
}
return d[gy][gx];
}
*/

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


Compiler output:
a.cc: In function 'int main()':
a.cc:58:25: error: expected ';' before ')' token
   58 |   for(int i = 0; i<3,i++) cin>>a[i];
      |                         ^
      |                         ;
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cstdlib>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <stack>
#include <math.h>
#define rep(i, n) for(int i = 0; i < (n); ++i)
using namespace std;

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 GCD(int a, int b) { return b ? GCD(b, a%b) : a; }
const long long INF = 1LL << 60;
// spring s; cin >> s;
// cout << res << endl;
// --------write my code!!!!!----------//

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:31: error: 'c' was not declared in this scope
   24 |   cout << max(A*10+B+C,A+B*10+c) << endl;
      |                               ^
Language: C++

#include <cstdio>  
#include <algorithm>
using namespace std;  
int main() { 	
	int a,b,c;
	int d;
	scanf("%d %d %d", &a, &b, &c);
	if(a>=b && a>=c){
		d=a*10;
		d+=b;
		d+=c;
		printf("%d", d);
	}
	if(b>=a && b>=c){
		d=b*10;
		d+=a;
		d+=c;
		printf("%d," d);
	}
	if(c>=a && c>=b){
		d=c*10;
		d+=a;
		d+=b;
		printf("%d," d);
	}
	

	
	
}






Compiler output:
a.cc: In function 'int main()':
a.cc:18:29: error: expected ')' before 'd'
   18 |                 printf("%d," d);
      |                       ~     ^~
      |                             )
a.cc:24:29: error: expected ')' before 'd'
   24 |                 printf("%d," d);
      |                       ~     ^~
      |                             )
Language: C++

#include <iostream>
#include <string.h>
#include <math.h>
#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;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected primary-expression before 'int'
   10 |     int ans = max(int)({10*a+b+c, a+10*b+c, a+b+10*c});
      |                   ^~~
Language: C++

#include <iostream>
#include <string.h>
#include <math.h>
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;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected primary-expression before 'int'
    9 |     int ans = max(int)({10*a+b+c, a+10*b+c, a+b+10*c});
      |                   ^~~
Language: C++

#include <iostream>
#include <string.h>
#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, 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:9:18:   required from here
    9 |     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: 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.nexyInt();
    int c=sc.nextInt();
    int r=(a>b?a:b)>c?(a>b?a:b):c;
    System.out.println(r*10+a+b+c-r);
  }
}

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

#include<bits/stdc++.h>
using namespace std;
int main() {
	int A,B,C;
	cin >> A >> B >>C;
    int D = max(A, B, C);
		cout << 10*D+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:6:16:   required from here
    6 |     int D = max(A, B, C);
      |             ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
	int A,B,C;
	cin >> A >> B >>C;
    int D = max(A, B, C);
		cout << 10*D+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:6:16:   required from here
    6 |     int D = max(A, B, C);
      |             ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
	int A,B,C;
	cin >> A >> B >>C;
   int D = max(A,B,C);
		cout << 10*D+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:6:15:   required from here
    6 |    int D = max(A,B,C);
      |            ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before 'cout'
    7 | s=max({a,b,c})
      |               ^
      |               ;
    8 | cout << a+b+c-s+s*10 << endl;
      | ~~~~
Language: C++

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

int main(){
  	int a, b, c;
  	cin >> a >> b >> c;
  	cout << max(10*a+b+c, 10*b+a+c, 10*c+a+b) << 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:9:15:   required from here
    9 |         cout << max(10*a+b+c, 10*b+a+c, 10*c+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))
      |           ~~~~~~^~~~~~~~~~