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

#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const int INF = 1e9;
const ll LINF = 1e18;
inline ll gcd(ll a, ll b) { return b ? gcd(b, a%b) : a; }
inline ll lcm(ll a, ll b) { return a / gcd(a, b)*b; }
template<class S,class T> ostream& operator << (ostream& out,const pair<S,T>& o){ out << "(" << o.first << "," << o.second << ")"; return out; }
template<class T> ostream& operator << (ostream& out,const vector<T> V){ for(int i = 0; i < V.size(); i++){ out << V[i]; if(i!=V.size()-1) out << " ";} return out; }
template<class T> ostream& operator << (ostream& out,const vector<vector<T> > Mat){ for(int i = 0; i < Mat.size(); i++) { if(i != 0) out << endl; out << Mat[i];} return out; }
template<class S,class T> ostream& operator << (ostream& out,const map<S,T> mp){ out << "{ "; for(auto it = mp.begin(); it != mp.end(); it++){ out << it->first << ":" << it->second; if(mp.size()-1 != distance(mp.begin(),it)) out << ", "; } out << " }"; return out; }

/*
 <url:>
 問題文============================================================
 =================================================================
 解説=============================================================
 ================================================================
 */


template<class Type>
Type solve(Type res = Type()){
    int A,B,C; cin >> A >> B >> C;
    res = max(10*A+B+C,A+10*B+C,A+B+10*C);
    return res;
}
int main(void) {
    cin.tie(0); ios_base::sync_with_stdio(false);
    //test();
    //solve<ll>();
    cout << fixed << setprecision(15) << solve<ll>() << endl;
    return 0;
}



Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:27:14:   required from 'Type solve(Type) [with Type = long long int]'
   27 |     res = max(10*A+B+C,A+10*B+C,A+B+10*C);
      |           ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:34:51:   required from here
   34 |     cout << fixed << setprecision(15) << solve<ll>() << 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

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

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected declaration specifiers or '...' before string constant
    4 |   scanf("%d%d%d",&a,&b,&c);
      |         ^~~~~~~~
main.c:4:18: error: expected declaration specifiers or '...' before '&' token
    4 |   scanf("%d%d%d",&a,&b,&c);
      |                  ^
main.c:4:21: error: expected declaration specifiers or '...' before '&' token
    4 |   scanf("%d%d%d",&a,&b,&c);
      |                     ^
main.c:4:24: error: expected declaration specifiers or '...' before '&' token
    4 |   scanf("%d%d%d",&a,&b,&c);
      |                        ^
main.c:8:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |   printf("%d",max*9+a+b+c);
      |   ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:8:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |   printf("%d",max*9+a+b+c);
      |   ^~~~~~
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<iostream>
using namespace std;

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

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

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

int main() {
  int N,M,X,Y;
  cin>>N>>M>>X>>Y;
  
  // 100要素の配列で初期化
  vector<int> x(N);
  vector<int>y(M);
  for(int i=0;i<N;i++)
    cin>>x.at(i);
  for(int i=0;i<M;i++)
    cin>>y.at(i);
  sort(x.begin(),x.end());
  sort(y.begin(),y.end());
  int ans=0;
  int tmp=0;
  for(i=X;i<Y+1;i++){
    if(x(N-1)<tmp&&y(0)>=tmp){
      cout<<"No War"<<endl;
      ans=1;
      break;
    }
    tmp++;
  }
  if(ans==0)
    cout<<"War"<<endl;
}
  



Compiler output:
a.cc: In function 'int main()':
a.cc:19:7: error: 'i' was not declared in this scope
   19 |   for(i=X;i<Y+1;i++){
      |       ^
a.cc:20:9: error: no match for call to '(std::vector<int>) (int)'
   20 |     if(x(N-1)<tmp&&y(0)>=tmp){
      |        ~^~~~~
a.cc:20:21: error: no match for call to '(std::vector<int>) (int)'
   20 |     if(x(N-1)<tmp&&y(0)>=tmp){
      |                    ~^~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    7 |   cout<<a+b+c+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<iostream>
#include<string>
#include<vector>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    9 |   cout<<a+b+c+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<iostream>
#include<string>
#include<vector>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: request for member 'begin' in 'a', which is of non-class type 'int [3]'
    9 |   sort(a.begin(),a.end());
      |          ^~~~~
a.cc:9:20: error: request for member 'end' in 'a', which is of non-class type 'int [3]'
    9 |   sort(a.begin(),a.end());
      |                    ^~~
a.cc:9:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    9 |   sort(a.begin(),a.end());
      |   ^~~~
      |   short
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: invalid type argument of unary '*' (have 'int')
    6 |   cout<<a+b+c+9*(*max({a,b,c}))<<endl;
      |                  ^~~~~~~~~~~~~
Language: C++

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

  cout<<ans<<endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'max1' was not declared in this scope
    8 |   max1=max(max(a,b),max(b,c));
      |   ^~~~
Language: C++

#include <cstdio>
#include <cmath>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <climits>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <algorithm>
#include <set>
#include <map>
#include <list>
#include <deque>
#include <vector>
#include <string>
#include <bitset>
#define y0 qvya13579
#define y1 qvyb24680
#define j0 qvja13579
#define j1 qvjb24680
#define next qvne13579xt
#define prev qvpr13579ev
#define INF 1000000007
#define PI acos(-1.0)
#define endl "\n"
#define IOS cin.tie(0);ios::sync_with_stdio(false)
#define MP_ make_pair
#define PB_ push_back
#define FIR first
#define SEC second
#define REP(i,n) for(int i=0;i<(int)(n);++i)
#define REP_R(i,n) for(int i=((int)(n)-1);i>=0;--i)
#define FOR(i,m,n) for(int i=((int)(m));i<(int)(n);++i)
#define FOR_R(i,m,n) for(int i=((int)(m)-1);i>=(int)(n);--i)
#define ALL(v) (v).begin(),(v).end()
#define RALL(v) (v).rbegin(),(v).rend()
#define SIZ(x) ((int)(x).size())
typedef long long int lli;
using namespace std;
int ctoi(char c){if(c>='0' and c<='9'){return (int)(c-'0');}return -1;}



int main()
{
  //IOS; /* making cin faster */
  vector<int> a(3);

  
  REP(i,3)
    {
      cin >> a[i];
      
    }


  int mx = a[0];
  inr sm = 0;
  
  
  REP(i,3)
    {
      if( a[i] > mx )
	{
	  mx = a[i];
	  
	}
      sm += a[i];
      
    }

  cout << ( 9 * mx + sm ) << endl;
  

  
  

  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:62:3: error: 'inr' was not declared in this scope; did you mean 'int'?
   62 |   inr sm = 0;
      |   ^~~
      |   int
a.cc:72:7: error: 'sm' was not declared in this scope; did you mean 'tm'?
   72 |       sm += a[i];
      |       ^~
      |       tm
a.cc:76:22: error: 'sm' was not declared in this scope; did you mean 'tm'?
   76 |   cout << ( 9 * mx + sm ) << endl;
      |                      ^~
      |                      tm
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-x+10*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 <bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  cin >> a >> b >> c;
  int x=max(a,max(b,c)));
  cout << x*10+a+b+c-x << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected ',' or ';' before ')' token
    6 |   int x=max(a,max(b,c)));
      |                        ^
Language: C++

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

//temp
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef long long int64;

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define all(x) (x).begin(),(x).end()
#define SORT(x) sort(all(x))
#define GSORT(x) sort(all(x), greater<int>())
#define MIN(x) *min_element(all(x))
#define MAX(x) *max_element(all(x))
#define in(x) cin >> x
#define co(x) cout << x
#define el  cout << endl
#define dump(x)  cout << #x << " = " << (x) << endl

#define pb push_back
#define mp make_pair
#define F first
#define S second

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
//------------------------------------------


int main() {
  int i;
  VI a;
  REP(i, 3) {
    in(num);
    a.pb(num);
  }
  co(a[0]+a[1]+a[2]+MAX(a)*9);

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:8: error: 'num' was not declared in this scope; did you mean 'enum'?
   39 |     in(num);
      |        ^~~
a.cc:20:22: note: in definition of macro 'in'
   20 | #define in(x) cin >> x
      |                      ^
Language: C++

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

//temp
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef long long int64;

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define all(x) (x).begin(),(x).end()
#define SORT(x) sort(all(x))
#define GSORT(x) sort(all(x), greater<int>())
#define MIN(x) *min_element(all(x))
#define MAX(x) *max_element(all(x))
#define in(x) cin >> x
#define co(x) cout << x
#define el  cout << endl
#define dump(x)  cout << #x << " = " << (x) << endl

#define pb push_back
#define mp make_pair
#define F first
#define S second

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
//------------------------------------------


int main() {
  VI a;
  REP(i, 3) {
    in(num);
    a.pb(num);
  }
  co(a[0]+a[1]+a[2]+MAX(a)*9);

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:8: error: 'num' was not declared in this scope; did you mean 'enum'?
   38 |     in(num);
      |        ^~~
a.cc:20:22: note: in definition of macro 'in'
   20 | #define in(x) cin >> x
      |                      ^
Language: C++

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

//temp
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef long long int64;

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define all(x) (x).begin(),(x).end()
#define SORT(x) sort(all(x))
#define GSORT(x) sort(all(x), greater<int>())
#define MIN(x) *min_element(all(x))
#define MAX(x) *max_element(all(x))
#define in(x) cin >> x
#define co(x) cout << x
#define el  cout << endl
#define dump(x)  cout << #x << " = " << (x) << endl

#define pb push_back
#define mp make_pair
#define F first
#define S second

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
//------------------------------------------


int main() {
  VI a;
  REP(i, 3) {
    in(num);
    a.pb(num);
  }
  co(a[0]+a[1]+a[2]+MAX(a)*9)

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:8: error: 'num' was not declared in this scope; did you mean 'enum'?
   38 |     in(num);
      |        ^~~
a.cc:20:22: note: in definition of macro 'in'
   20 | #define in(x) cin >> x
      |                      ^
a.cc:43:3: error: expected ';' before 'return'
   43 |   return 0;
      |   ^~~~~~
Language: C++

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

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

    snum = min(a,min(b,c))

    cout << a + b + c - snum << endl;

}


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

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

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

    snum = min(a,min(b,c))

    cout a + b + c - snum << endl;

}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:28: error: expected ';' before '}' token
    6 |                 cin>>vec[i]
      |                            ^
      |                            ;
    7 |         }
      |         ~
Language: C++

#include<iostream>
#include<algorithm >
using namespace std;
int main(){
int a,b,c;
  cin>>a>>b>>c;
  int n = max({a,b,c});
  cout<<a+b+c+n*9<<endl;
}


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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 's' was not declared in this scope
   10 |   cout << s[2]*10+s[0]+s[1] << endl;
      |           ^
Language: C++

#include<cstdio>
#include<cstdlib>
#include<algorithm>
#include<iostream>
#include<queue>
#include<vector>
#include <bitset>
using namespace std;
#define MAX 300000
typedef long long ll;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'maxa' was not declared in this scope
   15 |   maxa=max(a,b);
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef vector<ll> vi;
#define ALL(a) (a).begin(), (a).end()
signed main(){
  vi a;
  a.resize(3);
  cin >> a[0] >> a[1] >> a[2];
  sort(ALL(a));
  cout << 10*a[2]*a[1]+a[0] << endl;
}

Compiler output:
a.cc:3:16: error: 'll' was not declared in this scope
    3 | typedef vector<ll> vi;
      |                ^~
a.cc:3:18: error: template argument 1 is invalid
    3 | typedef vector<ll> vi;
      |                  ^
a.cc:3:18: error: template argument 2 is invalid
a.cc: In function 'int main()':
a.cc:7:5: error: request for member 'resize' in 'a', which is of non-class type 'vi' {aka 'int'}
    7 |   a.resize(3);
      |     ^~~~~~
a.cc:8:11: error: invalid types 'vi {aka int}[int]' for array subscript
    8 |   cin >> a[0] >> a[1] >> a[2];
      |           ^
a.cc:8:19: error: invalid types 'vi {aka int}[int]' for array subscript
    8 |   cin >> a[0] >> a[1] >> a[2];
      |                   ^
a.cc:8:27: error: invalid types 'vi {aka int}[int]' for array subscript
    8 |   cin >> a[0] >> a[1] >> a[2];
      |                           ^
a.cc:4:20: error: request for member 'begin' in 'a', which is of non-class type 'vi' {aka 'int'}
    4 | #define ALL(a) (a).begin(), (a).end()
      |                    ^~~~~
a.cc:9:8: note: in expansion of macro 'ALL'
    9 |   sort(ALL(a));
      |        ^~~
a.cc:4:33: error: request for member 'end' in 'a', which is of non-class type 'vi' {aka 'int'}
    4 | #define ALL(a) (a).begin(), (a).end()
      |                                 ^~~
a.cc:9:8: note: in expansion of macro 'ALL'
    9 |   sort(ALL(a));
      |        ^~~
a.cc:10:15: error: invalid types 'vi {aka int}[int]' for array subscript
   10 |   cout << 10*a[2]*a[1]+a[0] << endl;
      |               ^
a.cc:10:20: error: invalid types 'vi {aka int}[int]' for array subscript
   10 |   cout << 10*a[2]*a[1]+a[0] << endl;
      |                    ^
a.cc:10:25: error: invalid types 'vi {aka int}[int]' for array subscript
   10 |   cout << 10*a[2]*a[1]+a[0] << endl;
      |                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef vector<ll> vi;
#define ALL(a) (a).begin(), (a).end()
signed main(){
  vi a;
  a.resize(3);
  cin >> a[0] >> a[1] >> a[2];
  sort(ALL(a));
  cout << a[2]*a[1]*a[0] << endl;
}

Compiler output:
a.cc:3:16: error: 'll' was not declared in this scope
    3 | typedef vector<ll> vi;
      |                ^~
a.cc:3:18: error: template argument 1 is invalid
    3 | typedef vector<ll> vi;
      |                  ^
a.cc:3:18: error: template argument 2 is invalid
a.cc: In function 'int main()':
a.cc:7:5: error: request for member 'resize' in 'a', which is of non-class type 'vi' {aka 'int'}
    7 |   a.resize(3);
      |     ^~~~~~
a.cc:8:11: error: invalid types 'vi {aka int}[int]' for array subscript
    8 |   cin >> a[0] >> a[1] >> a[2];
      |           ^
a.cc:8:19: error: invalid types 'vi {aka int}[int]' for array subscript
    8 |   cin >> a[0] >> a[1] >> a[2];
      |                   ^
a.cc:8:27: error: invalid types 'vi {aka int}[int]' for array subscript
    8 |   cin >> a[0] >> a[1] >> a[2];
      |                           ^
a.cc:4:20: error: request for member 'begin' in 'a', which is of non-class type 'vi' {aka 'int'}
    4 | #define ALL(a) (a).begin(), (a).end()
      |                    ^~~~~
a.cc:9:8: note: in expansion of macro 'ALL'
    9 |   sort(ALL(a));
      |        ^~~
a.cc:4:33: error: request for member 'end' in 'a', which is of non-class type 'vi' {aka 'int'}
    4 | #define ALL(a) (a).begin(), (a).end()
      |                                 ^~~
a.cc:9:8: note: in expansion of macro 'ALL'
    9 |   sort(ALL(a));
      |        ^~~
a.cc:10:12: error: invalid types 'vi {aka int}[int]' for array subscript
   10 |   cout << a[2]*a[1]*a[0] << endl;
      |            ^
a.cc:10:17: error: invalid types 'vi {aka int}[int]' for array subscript
   10 |   cout << a[2]*a[1]*a[0] << endl;
      |                 ^
a.cc:10:22: error: invalid types 'vi {aka int}[int]' for array subscript
   10 |   cout << a[2]*a[1]*a[0] << endl;
      |                      ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> v(3);
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int> v(3);
      |          ^~~
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> v[0] >> v[1] >> v[2];
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:10: error: 'v' was not declared in this scope
    7 |   cin >> v[0] >> v[1] >> v[2];
      |          ^
a.cc:8:3: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    8 |   sort(v.begin,v.end());
      |   ^~~~
      |   std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:3:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << v[0]*10 + v[1] + v[2] << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout << v[0]*10 + v[1] + v[2] << endl;
      |                                    ^~~~
      |                                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |   ans = a[0]+a[1]+a[2]*10;
      |   ^~~
      |   abs
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: request for member 'begin' in 'a', which is of non-class type 'int [3]'
   10 |   sort(a.begin(), a.end());
      |          ^~~~~
a.cc:10:21: error: request for member 'end' in 'a', which is of non-class type 'int [3]'
   10 |   sort(a.begin(), a.end());
      |                     ^~~
a.cc:11:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |   ans = a[0]+a[1]+a[2]*10;
      |   ^~~
      |   abs
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: no matching function for call to 'sort(int [3])'
   10 |   sort(a);
      |   ~~~~^~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/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
a.cc:11:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |   ans = a[0]+a[1]+a[2]*10;
      |   ^~~
      |   abs
Language: C++

#include<iostream>
#include<algorithm>
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;
	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:8:13:   required from here
    8 |         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<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected ';' before '}' token
    9 |         return 0;a
      |                   ^
      |                   ;
   10 | }
      | ~
Language: C++

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

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

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | c#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'c' does not name a type
    1 | c#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:5:5: error: 'vector' was not declared in this scope
    5 |     vector<int> n(3);
      |     ^~~~~~
a.cc:5:12: error: expected primary-expression before 'int'
    5 |     vector<int> n(3);
      |            ^~~
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> n[0] >> n[1] >> n[2];
      |     ^~~
a.cc:6:12: error: 'n' was not declared in this scope
    6 |     cin >> n[0] >> n[1] >> n[2];
      |            ^
a.cc:7:5: error: 'sort' was not declared in this scope; did you mean 'short'?
    7 |     sort(n.begin(), n.end());
      |     ^~~~
      |     short
a.cc:8:5: error: 'reverse' was not declared in this scope
    8 |     reverse(n.begin(), n.end());
      |     ^~~~~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << ans << endl;
      |     ^~~~
a.cc:10:20: error: 'endl' was not declared in this scope
   10 |     cout << ans << endl;
      |                    ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin>>a>>b>>c;
      |   ^~~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout<<m<<endl;
      |     ^~~~
a.cc:13:14: error: 'endl' was not declared in this scope
   13 |     cout<<m<<endl;
      |              ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout<<m<<endl;
      |     ^~~~
a.cc:16:14: error: 'endl' was not declared in this scope
   16 |     cout<<m<<endl;
      |              ^~~~
Language: C++

#include "stdc++.h"
//#include <bits/stdc++.h>
using namespace std;
#define RALL(c) rbegin(c),rend(c)
typedef long long llong;
using vi = vector<int>;

int s[3];

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

	sort(RALL(s));

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

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

#include "stdc++.h"
using namespace std;
#define RALL(c) rbegin(c),rend(c)
typedef long long llong;
using vi = vector<int>;


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

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

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

#define ll long long
#define INF 99999999
#define rep(i,n) for(int i=0,temp=(int)(n);i<temp;++i) //vec.size()がnの時等の高速化
#define all(x) (x).begin(),(x).end()
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define vint vector<int>
#define vvint vector<vector<int>>

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
int gcd(int a,int b){return b?gcd(b,a%b):a;}


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

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:3: error: 'itn' was not declared in this scope; did you mean 'int'?
   19 |   itn a,b,c;
      |   ^~~
      |   int
a.cc:20:10: error: 'a' was not declared in this scope
   20 |   cin >> a >> b >> c;
      |          ^
a.cc:20:15: error: 'b' was not declared in this scope
   20 |   cin >> a >> b >> c;
      |               ^
a.cc:20:20: error: 'c' was not declared in this scope
   20 |   cin >> a >> b >> c;
      |                    ^
Language: C++

using namespace std;
#include <iostream>


int main(){

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

    cout << max(a,b,c)*9 + a + b + c << endl;

    return 0;
}


Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc: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:10:16:   required from here
   10 |     cout << max(a,b,c)*9 + 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 <algorithm>

int main(){
    std::vector<int> vec(3);
    std::cin >> vec.at(0) >> vec.at(1) >> vec.at(2);

    std::sort(vec.begin(). vec.end());
    std::cout << vec.at(3) * 10 + vec.at(0) + vec.at(1) << std::endl;

    return 0;
}

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

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

using namespace std;

int main(int argc, char** argv)
{
    int a, b, c; cin >> a >> b >> c;
    vector<int> nums{a, b, c};
    sort(nums.begin(), nums.end(), greater<int>());

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


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:14:14: error: expected '}' at end of input
   14 |     return 0;
      |              ^
a.cc:8:1: note: to match this '{'
    8 | {
      | ^
Language: C

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

int main(){
    int A,B,C;
    scanf("%d %d %d",&,&B,&C);
    int max=0;
    max = max>10*A+B+C? max:10*A+B+C;
    max = max>10*B+C+A? max:10*B+C+A;
    max = max>10*C+A+B? max:10*C+A+B;
    printf("%d",max);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:23: error: expected expression before ',' token
    8 |     scanf("%d %d %d",&,&B,&C);
      |                       ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
    int A,B,C;
    scanf("%d %d %d",&A,&B,&C);
    if((A>=B)&&(A>=C){
        printf("%d",10*A+B+C);

    }else if((B>=A)&&(B>=C){
        printf("%d",10*B+A+C);

    }else if((C>=B)&&(C>=A){
        printf("%d",10*C+A+B);

    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:22: error: expected ')' before '{' token
    6 |     if((A>=B)&&(A>=C){
      |       ~              ^
      |                      )
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
    int A,B,C;
    if((A>=B)&&(A>=C){
        printf("%d",10*A+B+C);

    }else if((B>=A)&&(B>=C){
        printf("%d",10*B+A+C);

    }else if((C>=B)&&(C>=A){
        printf("%d",10*C+A+B);

    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:22: error: expected ')' before '{' token
    5 |     if((A>=B)&&(A>=C){
      |       ~              ^
      |                      )
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(ll i=a;i<b;i++)
int main(){
  int a,m=0,s=0;
  rep(i,0,3){
    cin>>a;
    s+=a;
    if(m<a) m=a;
  }
  cout<<s+9*m;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:24: error: 'll' was not declared in this scope
    3 | #define rep(i,a,b) for(ll i=a;i<b;i++)
      |                        ^~
a.cc:6:3: note: in expansion of macro 'rep'
    6 |   rep(i,0,3){
      |   ^~~
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   rep(i,0,3){
      |       ^
a.cc:3:31: note: in definition of macro 'rep'
    3 | #define rep(i,a,b) for(ll i=a;i<b;i++)
      |                               ^
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, b) + min(b, c) << endl;
}

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    8 |   int res = 9 * max({A,B,C}) + 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 <iostream>
#include <vector>

using namespace std;
int a, b, c;
int main() {
    cin >> a >> b >> c;
    vector<int> vec={a, b, c};
    sort(vec.begin(), vec.end());
    cout << 10*vec[2] + vec[0] + vec[1] << endl;
}


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

#include <stdio.h>
int main(){
int n,m,x,y;
int i=0;
int j=0;
int max=0;
int min=0;
scanf("%d%d%d%d",&n,&m,&x,&y);
for(i=1; i<n; i++){
scanf("%d",&i);
if(max<i) max=i;
}

for(j=1; j<m; j++){
scanf("%d",&j);
if(j<min) min=j;
}

if(i>j) printf("War");
else if(j>=i){
if(j<x)  printf("War");
else(j>x)  printf("No War");
}


return 0;
}


Compiler output:
main.c: In function 'main':
main.c:22:10: error: expected ';' before 'printf'
   22 | else(j>x)  printf("No War");
      |          ^ ~~~~~~
      |          ;
Language: C

#include<stdio.h>
int main(void) {
	int A, B, C;
	scanf("%d%d%d", &A, &B, &C);

	if (A >= B && A >= C) {
		A = A * 10;
	}
	else if (B >= A && B >= C) {
		B = B + 10;
	}
	else(C >= A && C >= B){
		C = C * 10;
	}
	printf("%d", A + B + C);

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:31: error: expected ';' before '{' token
   12 |         else(C >= A && C >= B){
      |                               ^
      |                               ;
Language: C

#include<stdio.h>
int main(void){
  int A,B,C;
  scanf("%d%d%d",&A,&B,&C);
  
  if(A >= B && A >= C){
    A = A * 10;
  }
  else if(B >= A && B >= C){
    B = B + 10;
  }
  else(C >= A && C >= B){
    C = C * 10;
  }
  printf("%d",A + B + C);
  
  return 0;
}

  
    

Compiler output:
main.c: In function 'main':
main.c:12:25: error: expected ';' before '{' token
   12 |   else(C >= A && C >= B){
      |                         ^
      |                         ;
Language: C

#include<stdio.h>
int main(){
  int A,B,C;
  scanf("%d %d %d",&A,&B,&C);
  if(A < B && A < C){
    printf("%d",B + C);
  }elseif(B < A && B < C){
    printf("%d",A + C);
  }elseif(C < A && C < B){
    printf("%d",A + B);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:4: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    7 |   }elseif(B < A && B < C){
      |    ^~~~~~
main.c:7:26: error: expected ';' before '{' token
    7 |   }elseif(B < A && B < C){
      |                          ^
      |                          ;
Language: C++

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

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

                  
                 
                

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expected ';' before 'i'
    6 |   for(int i = 0; i < 3 i++){
      |                       ^~
      |                       ;
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 << a * 10 + b + c;
  } else (b >= a && b >= c) {
    cout << b * 10 + a + c;
  } else (c >= a && c >= b) {
    cout << c * 10 + a + b;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:28: error: expected ';' before '{' token
   10 |   } else (b >= a && b >= c) {
      |                            ^~
      |                            ;
a.cc:12:5: error: 'else' without a previous 'if'
   12 |   } else (c >= a && c >= b) {
      |     ^~~~
a.cc:12:28: error: expected ';' before '{' token
   12 |   } else (c >= a && c >= b) {
      |                            ^~
      |                            ;
Language: Java

import java.util.*;

class Main {
	public static void main(String args[]) {
    	Scanner s = new Scanner(System.in);
      	int a = s.nextInt();
      	int b = s.nextInt();
      	int c = s.nextInt();
      	int big = max(max(a,b),c);
      	int small = min(min(a,b),c);
      	if( a!= small && a!= big) {
        	med = a;
        } else if( b!= small && b!= big) {
        	med = b;
        } else {
        	med = c;
        }
      	System.out.println(big*10+med + small);
    }
  	static int max (int a, int b) {
      return a > b ? a : b;
    }
  	static int min(int a, int b) {
    	return a < b ? a: b;
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
        	med = a;
        	^
  symbol:   variable med
  location: class Main
Main.java:14: error: cannot find symbol
        	med = b;
        	^
  symbol:   variable med
  location: class Main
Main.java:16: error: cannot find symbol
        	med = c;
        	^
  symbol:   variable med
  location: class Main
Main.java:18: error: cannot find symbol
      	System.out.println(big*10+med + small);
      	                          ^
  symbol:   variable med
  location: class Main
4 errors