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

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

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


Compiler output:
a.cc:17:4: error: expected unqualified-id before 'else'
   17 |   }else if(B>C){
      |    ^~~~
a.cc:20:4: error: expected unqualified-id before 'else'
   20 |   }else{
      |    ^~~~
a.cc:24:3: error: 'cout' does not name a type
   24 |   cout << seged;
      |   ^~~~
a.cc:25:9: error: expected unqualified-id before 'return'
   25 |         return 0;
      |         ^~~~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

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

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 <bits/stdc++.h>
using namespace std;
 
int main() {
  int a, b , c , d;
  cin >> a >> b >> c;
  d = max ( a, max ( b,c))
  cout << ( d==b ? a+10*b+c : d==a ?10*a + b + c : a+b+10*c ) <<endl;
}

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

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<set>
#include<iomanip>
#define rep(i, a, n) for(int i = a; i < n; i++)
using namespace std;
int main(){
  int a[3];
  rep(i, 0, a){
    cin >> a[i];
  }
  sort(a, a + 3);
  int b = a[1] + a[2];
  cout << a[0] + b << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 | #define rep(i, a, n) for(int i = a; i < n; i++)
      |                                       ^
a.cc:11:3: note: in expansion of macro 'rep'
   11 |   rep(i, 0, a){
      |   ^~~
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,10*B+C+A,10*C+A+B})
   cout << ans << endl;  
 
 
 
 }

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: 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:19: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |         int ans = max<int>({10*A+B+C,10*B+A+C,10*C+A+B})
      |                   ^~~
      |                   std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 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:7:23: error: expected primary-expression before 'int'
    7 |         int ans = max<int>({10*A+B+C,10*B+A+C,10*C+A+B})
      |                       ^~~
Language: C++

#include <iostream>
using namespace std;

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected initializer before '.' token
    9 |   vector<int> A.(3);
      |                ^
a.cc:11:12: error: 'A' was not declared in this scope
   11 |     cin >> A.at(i);
      |            ^
a.cc:13:8: error: 'A' was not declared in this scope
   13 |   sort(A.begin(),A.end());
      |        ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:13: error: expected unqualified-id before ';' token
    4 |   int A,B,C,;
      |             ^
Language: C++

#include <iostream>
#include <stdio.h>
#include <vector> 
#include <math.h> 
using namespace std;

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

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

#include <stdio.h>

int main(){
  int a,b,c;
  scanf("%d %d %d", &a, &b, &c);
  
  if(b <= a && c <= a){
    print("%d", 10 * a + b + c);
  } else if(a <= b && c <= b){
    print("%d", 10 * b + a + c);
  } else {
    print("%d", 10 * c + a + b);
  }
}



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

#include <stdio.h>

int main(){
  int a,b,c;
  scanf("%d", &a);
  scanf("%d", &b);
  scanf("%d", &c);
  
  if(b <= a && c <= a){
    print("%d", 10 * a + b + c);
  } else if(a <= b && c <= b){
    print("%d", 10 * b + a + c);
  } else {
    print("%d", 10 * c + a + b);
  }
}



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

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

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: expected primary-expression before '>' token
   14 |     if(a => b && a => c)m += a*10+b+c;
      |           ^
a.cc:14:21: error: expected primary-expression before '>' token
   14 |     if(a => b && a => c)m += a*10+b+c;
      |                     ^
a.cc:15:16: error: expected primary-expression before '>' token
   15 |     else if(b => a && b => c)m+= b*10+a+c;
      |                ^
a.cc:15:26: error: expected primary-expression before '>' token
   15 |     else if(b => a && b => c)m+= b*10+a+c;
      |                          ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ')' before 'A'
    9 |   sort(A.begin()A.end());
      |       ~         ^
      |                 )
a.cc:9:7: error: no matching function for call to 'sort(std::vector<int>::iterator)'
    9 |   sort(A.begin()A.end());
      |   ~~~~^~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 1 provided
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define _GLIBCXX_DEBUG
using namespace std;
int main() {
  
  vector<int> vec(3);
  cin>>vec[0]>>vec[1]>>vec[2];
  sort(vecbegin.(),vec.end());
  
  cout<<vec[0]+vec[2]*10+vec[1]<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'vecbegin' was not declared in this scope
    9 |   sort(vecbegin.(),vec.end());
      |        ^~~~~~~~
a.cc:9:17: error: expected unqualified-id before '(' token
    9 |   sort(vecbegin.(),vec.end());
      |                 ^
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define _GLIBCXX_DEBUG
using namespace std;
int main() {
  
  vector<int> vec(3);
  cin>>vec[0]>>vec[1]>>vec[2];
  sort(vec.begin.(),vec.end());
  
  cout<<vec[0]+vec[2]*10+vec[1]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: invalid use of member function 'std::vector<int>::begin' (did you forget the '()' ?)
    9 |   sort(vec.begin.(),vec.end());
      |        ~~~~^~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'x' was not declared in this scope
   10 |         10*x+y+z,
      |            ^
a.cc:10:14: error: 'y' was not declared in this scope
   10 |         10*x+y+z,
      |              ^
a.cc:10:16: error: 'z' was not declared in this scope
   10 |         10*x+y+z,
      |                ^
a.cc:9:19: error: no matching function for call to 'max<int>(<brace-enclosed initializer list>)'
    9 |     cout<<max<int>({
      |           ~~~~~~~~^~
   10 |         10*x+y+z,
      |         ~~~~~~~~~  
   11 |         10*y+x+z,
      |         ~~~~~~~~~  
   12 |         10*z+x+y
      |         ~~~~~~~~   
   13 |     })<<endl;
      |     ~~             
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'constexpr _Tp std::max(initializer_list<_Tp>) [with _Tp = int]'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:31: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::initializer_list<int>'
 5706 |     max(initializer_list<_Tp> __l)
      |         ~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'A'
    6 |   cin A>>B>>C;
      |      ^~
      |      ;
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(0)<<vec.at(1)<<+vec.at(2)<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'A'
    6 |   cin A,B,C;
      |      ^~
      |      ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:67: error: expected primary-expression before '<<' token
    6 |   cout << max(a,max(b,c))*10 + min(a,max(b,c)) + min(a,min(b,c)); << endl;
      |                                                                   ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:48: error: invalid operands of types 'const int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout<<max(a,max(b,c)*10+(a+b+c-max(a,max(b,c)<<endl;
      |                                        ~~~~~~~~^~~~~~
a.cc:7:54: error: expected ')' before ';' token
    7 |   cout<<max(a,max(b,c)*10+(a+b+c-max(a,max(b,c)<<endl;
      |                           ~                          ^
      |                                                      )
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: 'alhp' was not declared in this scope; did you mean 'alph'?
   10 |   else if(alph == B) cout << alhp*10+A+C << endl;
      |                              ^~~~
      |                              alph
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: 'alhp' was not declared in this scope; did you mean 'alph'?
   10 |   else if(alph == B) cout << alhp*10+A+C << enl;
      |                              ^~~~
      |                              alph
a.cc:10:45: error: 'enl' was not declared in this scope; did you mean 'ynl'?
   10 |   else if(alph == B) cout << alhp*10+A+C << enl;
      |                                             ^~~
      |                                             ynl
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'alph' was not declared in this scope
    8 |   alph=max(max(A,B),C);
      |   ^~~~
a.cc:10:30: error: 'alhp' was not declared in this scope
   10 |   else if(alph == B) cout << alhp*10+A+C << endl;
      |                              ^~~~
Language: C++


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'alph' was not declared in this scope
    9 |   alph=max(max(A,B),C);
      |   ^~~~
a.cc:11:30: error: 'alhp' was not declared in this scope
   11 |   else if(alph == B) cout << alhp*10+A+C << enl;
      |                              ^~~~
a.cc:11:45: error: 'enl' was not declared in this scope; did you mean 'ynl'?
   11 |   else if(alph == B) cout << alhp*10+A+C << enl;
      |                                             ^~~
      |                                             ynl
Language: C++

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

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


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

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

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

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

#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define P pair<int, int>
#define rep(i,n)         for(int i=0; i<(n); i++)
#define prtd(n, var)     cout << fixed << setprecision(n) << var << "\n"

//----------------------------------------------------

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: expected ';' before '}' token
   10 |   cout << d*10+e+f << endl
      |                           ^
      |                           ;
   11 | }
      | ~
Language: C++

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incldue <bits/stdc++.h>
a.cc:7:15: error: 'max' was not declared in this scope
    7 |   int d=max(a,max(b,c));
      |               ^~~
a.cc:7:9: error: 'max' was not declared in this scope
    7 |   int d=max(a,max(b,c));
      |         ^~~
a.cc:8:15: error: 'min' was not declared in this scope; did you mean 'main'?
    8 |   int e=min(a,min(b,c));
      |               ^~~
      |               main
a.cc:8:9: error: 'min' was not declared in this scope; did you mean 'main'?
    8 |   int e=min(a,min(b,c));
      |         ^~~
      |         main
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << d*10+e+f << endl
      |   ^~~~
a.cc:10:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:23: error: 'endl' was not declared in this scope
   10 |   cout << d*10+e+f << endl
      |                       ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incldue <bits/stdc++.h>
Language: C++

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

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


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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define INF 100000000
typedef long long ll;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: request for member 'begin' in 'a', which is of non-class type 'll [3]' {aka 'long long int [3]'}
   11 |     sort(a.begin(),a.end());
      |            ^~~~~
a.cc:11:22: error: request for member 'end' in 'a', which is of non-class type 'll [3]' {aka 'long long int [3]'}
   11 |     sort(a.begin(),a.end());
      |                      ^~~
Language: C++

#include <bits/stdc++.h>

#define fi first
#define se second
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()

using namespace std;

typedef long long ll;
typedef vector<ll> vll;
typedef pair<ll, ll> pll;
typedef long double ld;

const ll MOD = (ll)1e9 + 7;
const ll mxN = 200200;

int main()
{
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
    cout.precision(20);
    cout << fixed;
	
	ll A[3];
	for(int i=0;i<3;i++) cin>>A[i];
	sort(all(A));
	cout<<A[0]*10+A[1]+A[2];

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: request for member 'begin' in 'A', which is of non-class type 'll [3]' {aka 'long long int [3]'}
    6 | #define all(x) (x).begin(), (x).end()
      |                    ^~~~~
a.cc:28:14: note: in expansion of macro 'all'
   28 |         sort(all(A));
      |              ^~~
a.cc:6:33: error: request for member 'end' in 'A', which is of non-class type 'll [3]' {aka 'long long int [3]'}
    6 | #define all(x) (x).begin(), (x).end()
      |                                 ^~~
a.cc:28:14: note: in expansion of macro 'all'
   28 |         sort(all(A));
      |              ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
int A,B,C
  cin >> A >> B >> C;
  
  if(A == B && B == C){
 cout << A * 10 + B * 2 << endl;
  }
  
  else{
    cout << max(max(A,B),C) * 10 + B + C << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> A >> B >> C;
      |   ^~~
a.cc:8:21: error: 'C' was not declared in this scope
    8 |   if(A == B && B == C){
      |                     ^
Language: C++

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


Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:6:10:   required from here
    6 |   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;
  cin>>a>>b>>c;
  ans=max(10*a+b+c,a+10*b+c,a+b+10*c);
  cout<<ans;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    6 |   ans=max(10*a+b+c,a+10*b+c,a+b+10*c);
      |   ^~~
      |   abs
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:10:   required from here
    6 |   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.nextInt();
                int c = sc.nextInt();
                if(a > b && a > c){
                  System.out.println(a * 10 + b + c);
              } else {
                  if(b > a && b > c){
                    System.out.println(a + 10 * b + c);
                  } else {
                    System.out.println(a + b + c*10);
                  }
                }
    }

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

import java.util.*;

public class Main{
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            int a = sc.next();
            int b = sc.next();
            int c = sc.next();
            if(a * 10 + b + c > a + 10 * b + c){
            System.out.println(a * 10 + b + c);
          } else {
            System.out.println(a + 10 * b + c);
        }
          }
}

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to int
            int a = sc.next();
                           ^
Main.java:7: error: incompatible types: String cannot be converted to int
            int b = sc.next();
                           ^
Main.java:8: error: incompatible types: String cannot be converted to int
            int c = sc.next();
                           ^
3 errors
Language: Java

import java.util.*;

public class Main{
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            int a = sc.next();
            int b = sc.next();
            int c = sc.next();
            if(a * 10 + b + c > a + 10 * b + c){
            System.out.println(a * 10 + b + c);
          } else {
            System.out.println(a + 10 * b + c);
        }
      }
          }
}

Compiler output:
Main.java:16: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.*;

public class Main{
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            int a = sc.next();
            int b = sc.next();
            int c = sc.next();
            System.out.println(a * 10 + b + c);
          }
}

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to int
            int a = sc.next();
                           ^
Main.java:7: error: incompatible types: String cannot be converted to int
            int b = sc.next();
                           ^
Main.java:8: error: incompatible types: String cannot be converted to int
            int c = sc.next();
                           ^
3 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,N) for(int i = 0; i < (N); i++)
#define repo(i,N) for(int i = 1; i < (N); i++)
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define all(x) (x).begin(),(x).end()
//#define num 1000000007
#define pi acos(-1.0)
//intの最大値2147483647 ≒ 2×10^9
//long longの最大値9223372036854775807 ≒ 9×10^18
//#define int long long

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



Compiler output:
a.cc: In function 'int main()':
a.cc:22:16: error: no matching function for call to 'max(std::vector<int>&)'
   22 |   cout << 9*max(memo)+a+b+c;
      |             ~~~^~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
a.cc:22:16: note:   'std::vector<int>' is not derived from 'std::initializer_list<_Tp>'
   22 |   cout << 9*max(memo)+a+b+c;
      |             ~~~^~~~~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,N) for(int i = 0; i < (N); i++)
#define repo(i,N) for(int i = 1; i < (N); i++)
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define all(x) (x).begin(),(x).end()
//#define num 1000000007
#define pi acos(-1.0)
//intの最大値2147483647 ≒ 2×10^9
//long longの最大値9223372036854775807 ≒ 9×10^18
//#define int long long

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



Compiler output:
a.cc: In function 'int main()':
a.cc:22:3: error: expected ',' or ';' before 'cout'
   22 |   cout << 9*max(memo)+a+b+c;
      |   ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: no matching function for call to 'max(int)'
    7 |   cout<<max(max(10*A+B+C),10*B+A+C),10*C+A+B)<<endl;
      |             ~~~^~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
a.cc:7:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    7 |   cout<<max(max(10*A+B+C),10*B+A+C),10*C+A+B)<<endl;
      |             ~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include <bits/stdc++>
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] << '\n';
  return 0; 
}

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

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a,b,c,
  cin >> a >> b >> c;
  
  vector<int> vec = {10*a+b+c, 10*b+a+c,10*c+a+b};
  sort(vec.begin(),vec.end());
  cout << vec.at(2) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected initializer before '>>' token
    5 |   cin >> a >> b >> c;
      |       ^~
Language: C++

#include<bits/stdc++.h>
#define fast ios::sync_with_stdio(false), cin.tie(0);
#define ll long long
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define endl '\n'

using namespace std;

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

Compiler output:
a.cc:12:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   12 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:19:14: error: 'n' was not declared in this scope
   19 |     sort(a,a+n,greater<int>());
      |              ^
Language: C++

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


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;
}

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:13:   required from here
   11 | cout << max (a*10+b+c,a+b*10+c,a+b+c*10)<< 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 <stdio.h>
int main(){
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  int ans = max(a*10 + b + c, max(b*10 + a + c, c*10 + a + b));
  printf("%d\n", ans);
}

Compiler output:
main.c: In function 'main':
main.c:5:13: error: implicit declaration of function 'max' [-Wimplicit-function-declaration]
    5 |   int ans = max(a*10 + b + c, max(b*10 + a + c, c*10 + a + b));
      |             ^~~
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());
    reverse(n.begin(),n.end());

    cout<<a*10+b+c<<endl;








    return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: 'i' was not declared in this scope
    5 |   rep(i, 3) cin >> a[i];
      |       ^
a.cc:5:3: error: 'rep' was not declared in this scope
    5 |   rep(i, 3) cin >> a[i];
      |   ^~~
Language: C++

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

#define rep(i,n) for (int i = 0; i< (n); ++i)
#define vvec(m,n) vector<vector<int>> (int(m), vector<int>(n))
#define ALL(a) (a).begin(), (a).end()

using ll = long long;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: expected ',' or ';' before 'int'
   14 |     int element2 = A + B + C;
      |     ^~~
a.cc:15:24: error: 'element2' was not declared in this scope; did you mean 'element1'?
   15 |     cout << element1 + element2 << endl;
      |                        ^~~~~~~~
      |                        element1
Language: C++

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

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

Compiler output:
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:7:13:   required from here
    7 |  cout << max(a , b , c) * 10 + a + b + c - 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<bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
bool sosuu[mod];
for (int i = 0; i <= 1e9; i ++) {
  sosuu[i] = true;
}
sosuu[0] = sosuu[1] = false;
for (int i = 0; i <= 1e9; i ++) {
  if (!sosuu[i]) continue;
  for (int j = 2; j <= 1e9 / i; j ++) {
    sosuu[i * j] = false;
  }
}
vector<int>num;
for (int i = 0; i <= 1e9; i ++) {
  if (sosuu[i]) num.push_back(i);
}
int fli(int a) {
  int m = mod;
  int u = 1;
  int v = 0;
  while(m) {
    int t = m / a;
    m -= a;
    u -= t * v;
    swap(a, m);
    swap(u, v);
  }
  u %= mod;
  if (u < 0) u += mod;
  return u;
}
int main () {
  int N, M;
  cin >> N >> M;
  vector<int>mum;
  for (int i = 0; i < num.size(); i ++) {
    if (!(M % num[i])) {
      int k = 0;
      while(!(M % num[i])) {
        M /= num[i];
        k ++;
      }
      mum.push_back(k);
    }
  }
  int ans = 1;
  for (int i = 0; i < mum.size(); i ++) {
    for (int j = 1; j <= mum[i]; j ++) {
      ans *= N + mum[i] - j + 1;
      ans %= mod;
      ans *= fli(j);
      ans %= mod;
    }
  }
  cout << ans << endl;
}


Compiler output:
a.cc:5:1: error: expected unqualified-id before 'for'
    5 | for (int i = 0; i <= 1e9; i ++) {
      | ^~~
a.cc:5:17: error: 'i' does not name a type
    5 | for (int i = 0; i <= 1e9; i ++) {
      |                 ^
a.cc:5:27: error: 'i' does not name a type
    5 | for (int i = 0; i <= 1e9; i ++) {
      |                           ^
a.cc:8:1: error: 'sosuu' does not name a type
    8 | sosuu[0] = sosuu[1] = false;
      | ^~~~~
a.cc:9:1: error: expected unqualified-id before 'for'
    9 | for (int i = 0; i <= 1e9; i ++) {
      | ^~~
a.cc:9:17: error: 'i' does not name a type
    9 | for (int i = 0; i <= 1e9; i ++) {
      |                 ^
a.cc:9:27: error: 'i' does not name a type
    9 | for (int i = 0; i <= 1e9; i ++) {
      |                           ^
a.cc:16:1: error: expected unqualified-id before 'for'
   16 | for (int i = 0; i <= 1e9; i ++) {
      | ^~~
a.cc:16:17: error: 'i' does not name a type
   16 | for (int i = 0; i <= 1e9; i ++) {
      |                 ^
a.cc:16:27: error: 'i' does not name a type
   16 | for (int i = 0; i <= 1e9; i ++) {
      |                           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected ')' before '{' token
    7 |   if(max{a,b,c}==a){
      |     ~   ^
      |         )
a.cc:7:19: error: cannot resolve overloaded function 'max' based on conversion to type 'bool'
    7 |   if(max{a,b,c}==a){
      |                   ^
a.cc:10:14: error: expected ')' before '{' token
   10 |   else if(max{a,b,c}==b){
      |          ~   ^
      |              )
a.cc:10:24: error: cannot resolve overloaded function 'max' based on conversion to type 'bool'
   10 |   else if(max{a,b,c}==b){
      |                        ^
a.cc:13:14: error: expected ')' before '{' token
   13 |   else if(max{a,b,c}==c){
      |          ~   ^
      |              )
a.cc:13:24: error: cannot resolve overloaded function 'max' based on conversion to type 'bool'
   13 |   else if(max{a,b,c}==c){
      |                        ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'n' was not declared in this scope
    6 |   for(int i=0;i<n;i++) cin>>x[i];
      |                 ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: expected primary-expression before ',' token
   11 |   else cout<<10*c+a+b,,endl;
      |                       ^
Language: C++

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

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