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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:32:4: error: 'else' without a previous 'if'
   32 |   }else{
      |    ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long                                    // long long省略
#define pb push_back                                    // push_back省略
#define mp make_pair                                    // make_pair省略
#define fi first                                        // first省略
#define se second                                       // second省略
#define itn int                                         // int誤字保険
#define count cout                                      // cout誤字保険
#define vecotr vector                                   // vector誤字保険
#define ednl endl                                       // endl誤字保険
#define opt() cin.tie(0); ios::sync_with_stdio(false)   // 入出力速度改善

#define rep(i,l,r) for(ll i=(l);i<(r);i++)               // 範囲[l, r)で刻み1のfor文(順方向)
#define repp(i,l,r,k) for(ll i=(l);i<(r);i+=(k))         // 範囲[l, r)で刻みkのfor文(順方向)
#define rrep(i,l,r) for(ll i=(r-1);i>=(l);i--)           // 範囲[l, r)で刻み1のfor文(逆方向)
#define rrepp(i,l,r,k) for(ll i=(r-1);i>=(l);i-=(k))     // 範囲[l, r)で刻みkのfor文(逆方向)
#define all(x) (x).begin(), (x).end()                   // vectorのポインタ位置指定用
#define max(p,q)((p)>(q)?(p):(q))                       // max拡張
#define min(p,q)((p)<(q)?(p):(q))                       // min拡張
#define bit(n,m)(((n)>>(m))&1)                          // 変数nのm番目のbitを取り出す

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 dy[]={0, 1, 0, -1};                                 // 4方向近傍
int dx[]={1, 0, -1, 0};                                 // 4方向近傍

int main(){
    ll a,b,c; cin>>a>>b>>c;
    vector<ll> v={a,b,c};
    sort(all(v)));
    cout << v[2]*10+v[1]+v[0]<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:17: error: expected ';' before ')' token
   32 |     sort(all(v)));
      |                 ^
      |                 ;
Language: C++

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

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

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 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:14:13:   required from here
   14 |   maxnum=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 argc,char* argv[]){
  int A,B,C,max;
  cin >> A >> B >> C;
  max = 10*A+B+C;
  if(max < A+10*B+C) max = A+10*B+C;
  if(max < A+B+10*C) max = A+B+10*C;
  cout << max << endl;
  return 0;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: no matching function for call to 'end()'
    8 |   sort(a.begin(),a,end());
      |                    ~~~^~
In file included from /usr/include/c++/14/bits/algorithmfwd.h:39,
                 from /usr/include/c++/14/bits/stl_algo.h:59,
                 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/initializer_list:99:5: note: candidate: 'template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)'
   99 |     end(initializer_list<_Tp> __ils) noexcept
      |     ^~~
/usr/include/c++/14/initializer_list:99:5: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/range_access.h:74:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&)'
   74 |     end(_Container& __cont) -> decltype(__cont.end())
      |     ^~~
/usr/include/c++/14/bits/range_access.h:74:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:85:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&)'
   85 |     end(const _Container& __cont) -> decltype(__cont.end())
      |     ^~~
/usr/include/c++/14/bits/range_access.h:85:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:106:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm])'
  106 |     end(_Tp (&__arr)[_Nm]) noexcept
      |     ^~~
/usr/include/c++/14/bits/range_access.h:106:5: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166:
/usr/include/c++/14/valarray:1249:5: note: candidate: 'template<class _Tp> _Tp* std::end(valarray<_Tp>&)'
 1249 |     end(valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/valarray:1249:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/valarray:1265:5: note: candidate: 'template<class _Tp> const _Tp* std::end(const valarray<_Tp>&)'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/valarray:1265:5: note:   candidate expects 1 argument, 0 provided
Language: C

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

Compiler output:
main.c:1:19: error: missing terminating > character
    1 | #include <stdio.h<
      |                   ^
main.c:1:10: fatal error: stdio.h<: No such file or directory
    1 | #include <stdio.h<
      |          ^
compilation terminated.
Language: C

int main()
{
  int a,b,c,d;
  scanf_s("%d",&a);
  scanf_s("%d",&b);
  scanf_s("%d",&c);
  
  if(a>b)
  {
    if(a>c)
    {
      d=a*10+b+c;
    }
    else
    {
      d=c*10+a+b;
    }
  }
  else
  {
    if(b>c)
    {
      d=b*10+1+c;
    }
    else
    {
      d=c*10+a+b;
    }
  }
  prntf("%d",d);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
    4 |   scanf_s("%d",&a);
      |   ^~~~~~~
main.c:30:3: error: implicit declaration of function 'prntf' [-Wimplicit-function-declaration]
   30 |   prntf("%d",d);
      |   ^~~~~
Language: C

int main()
{
  int a,b,c,d;
  scanf_s("%d",&a);
  scanf_s("%d",&b);
  scanf_s("%d",&c);
  
  if(a>b)
  {
    if(a>c)
    {
      d=a*10+b+c;
    }
    else
    {
      d=c*10+a+b;
    }
  }
  else
  {
    if(b>c)
    {
      d=b*10+1+c;
    }
    else
    {
      d=c*10+a+b;
    }
  }
  prntf("%d",d);
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
    4 |   scanf_s("%d",&a);
      |   ^~~~~~~
main.c:30:3: error: implicit declaration of function 'prntf' [-Wimplicit-function-declaration]
   30 |   prntf("%d",d);
      |   ^~~~~
Language: C


#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main (void){
	int a[3];
	for(int i=0;i<3;i++)
	scanf(" %d ", &a[i]);
	int max = 0;
	for (int i = 0;i < 3;i++)
		if (max < a[i]) max = a[i];
			int ans = max * 9 + a + b + c;
}

Compiler output:
main.c: In function 'main':
main.c:12:49: error: 'b' undeclared (first use in this function)
   12 |                         int ans = max * 9 + a + b + c;
      |                                                 ^
main.c:12:49: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:53: error: 'c' undeclared (first use in this function)
   12 |                         int ans = max * 9 + a + b + c;
      |                                                     ^
Language: C++


#include<stdio.h>

int main() {
	int num[3];
	for (int x = 0; x < 3; x++) {
		scanf_s("%d", &num[x]);
	}
	int Max = 0;

	for (int y = 0; y < 3; y++) {
		if (num[(y + 2) % 3] + 10 * num[y] + num[(y + 1) % 3] >= Max) {
			Max = num[(y + 2) % 3] + 10 * num[y] + num[(1 + y) % 3];

		}


	}
	printf("%d", Max);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |                 scanf_s("%d", &num[x]);
      |                 ^~~~~~~
      |                 scanf
Language: C

int main()
{
  int a,b,c,d;
  scanf_s("%d",&a);
  scanf_s("%d",&b);
  scanf_s("%d",&c);
  
  if(a>b)
  {
    if(a>c)
    {
      d=a*10+b+c;
    }
    else
    {
      d=c*10+a+b;
    }
  }
  else
  {
    if(b>c)
    {
      d=b*10+1+c;
    }
    else
    {
      d=c*10+a+b;
    }
  }
  prntf("%d",d);
  return 0;
}
  
  

Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
    4 |   scanf_s("%d",&a);
      |   ^~~~~~~
main.c:30:3: error: implicit declaration of function 'prntf' [-Wimplicit-function-declaration]
   30 |   prntf("%d",d);
      |   ^~~~~
Language: C

int main() {
	int num[3];
	for (int x = 0; x < 3; x++) {
		scanf_s("%d", &num[x]);
	}
	int Max = 0;

	for (int y = 0; y < 3; y++) {
		if (num[(y + 2) % 3] + 10 * num[y] + num[(y + 1) % 3] >= Max) {
			Max = num[(y + 2) % 3] + 10 * num[y] + num[(1 + y) % 3];

		}


	}
	printf("%d", Max);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:17: error: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
    4 |                 scanf_s("%d", &num[x]);
      |                 ^~~~~~~
main.c:16:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   16 |         printf("%d", Max);
      |         ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main() {
main.c:16:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   16 |         printf("%d", Max);
      |         ^~~~~~
main.c:16:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

int main(void)
{
	int A, B, C;
	scanf_s("%d %d %d", &A, &B, &C);
	int max; // 3つの中で一番大きい値  
	max = A;
	int box1, box2;
	box1 = B;
	box2 = C;
	if (A > B && A > C)
	{
		max = A;
		box1 = B;
		box2 = C;
	}
	if (B > A && B > C)
	{
		max = B;
		box1 = A;
		box2 = C;
	}
	if (C > A && C > B)
	{
		max = C;
		box1 = A;
		box2 = B;
	}

	int total = 10 * max + box1 + box2;
	printf("%d", total);
}

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

#include<stdio.h>

int main()
{
	int a, b, c, d;
	scanf_s("%d", &a);
	scanf_s("%d", &b);
	scanf_s("%d", &c);

	if (a >= b)
	{
		if (a >= c)
		{
			d = a * 10 + b + c;
		}
		else
		{
			d = c * 10 + b + c;
		}
	}
	else
	{
		if (b >= c)
		{
			d = b * 10 + a + c;
		}
		else
		{
			d = c * 10 + b + a;
		}
	}

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

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

#include<stdio.h>

int main() {
	int num[2];
	for (int x=0; x < 3; x++) {
		scanf_s("%d", &num[x]);
		}
	int Max=0;

		for (int y=0; y < 3; y++) {
			if (num[ (y+2)%3 ] + 10 * num[y] + num[(y+1)% 3]>=Max) {
				Max = num[(y+2)%3] + 10 * num[y] + num[(1 + y) % 3];

			}
		

	}
		printf("%d", Max);
  return 0;
}

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

#include<stdio.h>

int main()
{
	int a, b, c, d;
	scanf_s("%d", &a);
	scanf_s("%d", &b);
	scanf_s("%d", &c);

	if (a >= b)
	{
		if (a >= c)
		{
			d = a * 10 + b + c;
		}
		else
		{
			d = c * 10 + b + c;
		}
	}
	else
	{
		if (b >= c)
		{
			d = b * 10 + a + c;
		}
		else
		{
			d = c * 10 + b + a;
		}
	}

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

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

#include<stdio.h>

int main()
{
	int a, b, c, d;
	scanf_s("%d", &a);
	scanf_s("%d", &b);
	scanf_s("%d", &c);

	if (a >= b)
	{
		if (a >= c)
		{
			d = a * 10 + b + c;
		}
		else
		{
			d = c * 10 + b + c;
		}
	}
	else
	{
		if (b >= c)
		{
			d = b * 10 + a + c;
		}
		else
		{
			d = c * 10 + b + a;
		}
	}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%d", &a);
      |         ^~~~~~~
      |         scanf
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:49: error: expected '}' at end of input
    9 |         cout << o[0] + o[1] + 10 * o[2] << endl;
      |                                                 ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:9:24: error: 'b' undeclared (first use in this function)
    9 |   scanf("%d %d %d",&A,&b,&C);
      |                        ^
main.c:9:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:18:33: error: expected statement before ']' token
   18 |     printf("%d",C * 10 + A + B);]
      |                                 ^
Language: C

#include <stdio.h>

int main(void){
  
  int A;
  int B;
  int C;
  
  scanf("%d %d %d",&A,&b,&C);
  
  if(A >= B && A >= C){
    printf("%d",A * 10 + B + C);
  }
  else if(B >= A && B >= C){
    printf("%d",B * 10 + A + C);
  }
  else{
    printf("%d",C * 10 + A + B);]
  }
  
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:9:24: error: 'b' undeclared (first use in this function)
    9 |   scanf("%d %d %d",&A,&b,&C);
      |                        ^
main.c:9:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:33: error: expected statement before ']' token
   18 |     printf("%d",C * 10 + A + B);]
      |                                 ^
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: request for member 'max' in 'a', which is of non-class type 'int'
    8 |   int max = max(a. max(b. c));
      |                    ^~~
a.cc:8:27: error: request for member 'c' in 'b', which is of non-class type 'int'
    8 |   int max = max(a. max(b. c));
      |                           ^
a.cc:8:29: error: 'max' cannot be used as a function
    8 |   int max = max(a. max(b. c));
      |                             ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: 'b' was not declared in this scope
    8 |         cin >> a[0] >> b[1] >> c[2];
      |                        ^
a.cc:8:32: error: 'c' was not declared in this scope
    8 |         cin >> a[0] >> b[1] >> c[2];
      |                                ^
Language: C++

#include <iostream>
#include <algorithm>

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

    int m = std::max(a, b, c);

    std::cout << (m * 10 + (a+b+c-m)) << std::endl;

    return 0;
}

Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:9:21:   required from here
    9 |     int m = std::max(a, b, c);
      |             ~~~~~~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

int main() {
    int n[3];
    cin >> n[0] >> n[1] >> n[2];
    int ans = max<int>({
      10*A+B+C,
      A+10*B+C,
      A+B+10*C,
    });
  
  cout << ans <<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'A' was not declared in this scope
    9 |       10*A+B+C,
      |          ^
a.cc:9:12: error: 'B' was not declared in this scope
    9 |       10*A+B+C,
      |            ^
a.cc:9:14: error: 'C' was not declared in this scope
    9 |       10*A+B+C,
      |              ^
a.cc:8:23: error: no matching function for call to 'max<int>(<brace-enclosed initializer list>)'
    8 |     int ans = max<int>({
      |               ~~~~~~~~^~
    9 |       10*A+B+C,
      |       ~~~~~~~~~        
   10 |       A+10*B+C,
      |       ~~~~~~~~~        
   11 |       A+B+10*C,
      |       ~~~~~~~~~        
   12 |     });
      |     ~~                 
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
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/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 <iostream>
# include < algorithm >
using namespace std;

int main() {
    int n[3];
    cin >> n[0] >> n[1] >> n[2];
    int ans = max<int>({
      10*A+B+C,
      A+10*B+C,
      A+B+10*C,
    });
  
  cout << ans <<endl;
  
}


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

#include <iostream>
using namespace std;

int main() {
    int n[3];
    cin >> n[0] >> n[1] >> n[2];
    int ans = max<int>({
      10*A+B+C,
      A+10*B+C,
      A+B+10*C,
    });
  
  cout << ans <<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'A' was not declared in this scope
    8 |       10*A+B+C,
      |          ^
a.cc:8:12: error: 'B' was not declared in this scope
    8 |       10*A+B+C,
      |            ^
a.cc:8:14: error: 'C' was not declared in this scope
    8 |       10*A+B+C,
      |              ^
a.cc:7:23: error: no matching function for call to 'max<int>(<brace-enclosed initializer list>)'
    7 |     int ans = max<int>({
      |               ~~~~~~~~^~
    8 |       10*A+B+C,
      |       ~~~~~~~~~        
    9 |       A+10*B+C,
      |       ~~~~~~~~~        
   10 |       A+B+10*C,
      |       ~~~~~~~~~        
   11 |     });
      |     ~~                 
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>
using namespace std;

int main() {
    int n[3];
    cin >> n[0] >> n[1] >> n[2];
    int ans = max<int>({
      10*A+B+C,
      A+10*B+C,
      A+B+10*C,
    });
  
  cout << ans <<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'A' was not declared in this scope
    8 |       10*A+B+C,
      |          ^
a.cc:8:12: error: 'B' was not declared in this scope
    8 |       10*A+B+C,
      |            ^
a.cc:8:14: error: 'C' was not declared in this scope
    8 |       10*A+B+C,
      |              ^
a.cc:7:23: error: no matching function for call to 'max<int>(<brace-enclosed initializer list>)'
    7 |     int ans = max<int>({
      |               ~~~~~~~~^~
    8 |       10*A+B+C,
      |       ~~~~~~~~~        
    9 |       A+10*B+C,
      |       ~~~~~~~~~        
   10 |       A+B+10*C,
      |       ~~~~~~~~~        
   11 |     });
      |     ~~                 
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++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<bool> vb;
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define in insert
#define FOR(i,a,b) for (int i = a; i < b; i++)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define speed ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
const int INF = 1e9 + 5;
int main(){
    int a[3];
    for(int i = 0; i < 3; i++) cin >> a[i];
    sort(a, a+n);
    cout << a[2]*10 + a[1] + a[0];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: 'n' was not declared in this scope
   21 |     sort(a, a+n);
      |               ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:32: error: expected ';' before '{' token
   13 |   else (max(A, max(B, C)) == C) {
      |                                ^~
      |                                ;
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:32: error: expected ';' before 'cout'
   11 |   else (max(A, max(B, C)) == C)
      |                                ^
      |                                ;
   12 |     cout << C * 10 + B + A << endl;
      |     ~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: assignment of read-only location 'std::max<int>(A, (* & std::max<int>(B, C)))'
    7 |   max(A, max(B, C)) *= 10;
      |   ~~~~~~~~~~~~~~~~~~^~~~~
Language: C++

#include <iostream>
#include <algorithm>
using namesoace std;
int main(){
  int a, b, c, ans;
  ans=max({a*10+b+c, b*10+a+c, c*10+a+b);
           cout << ans <<endl;
           return 0;
          }

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namesoace'
    3 | using namesoace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:40: error: expected '}' before ')' token
    6 |   ans=max({a*10+b+c, b*10+a+c, c*10+a+b);
      |           ~                            ^
a.cc:6:7: error: 'max' was not declared in this scope; did you mean 'std::max'?
    6 |   ans=max({a*10+b+c, b*10+a+c, c*10+a+b);
      |       ^~~
      |       std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:7:12: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |            cout << ans <<endl;
      |            ^~~~
      |            std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |            cout << ans <<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 <bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  int m==max({a,b,c});
  cout<<a+b+c+9*m<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected initializer before '==' token
    6 |   int m==max({a,b,c});
      |        ^~
a.cc:6:21: error: expected primary-expression before ')' token
    6 |   int m==max({a,b,c});
      |                     ^
a.cc:7:17: error: 'm' was not declared in this scope
    7 |   cout<<a+b+c+9*m<<endl;
      |                 ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'n' was not declared in this scope
    7 |   repeat(i,n) cin >>ABC[i];
      |            ^
a.cc:2:35: note: in definition of macro 'repeat'
    2 | #define repeat(i,n) for(int i=0;i<n;i++)
      |                                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
//#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())
 int wari(int a,int b) {
   if(a%b==0)
     return a/b;
   else
     return a/b+1;
 }
 int keta(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
 }
 int souwa(int a){
  return a*(a+1)/2;
 }
 int lcm(int a,int b){
  int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return d*e/f;
    }
  int gcm(int a,int b){
      int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return f;
  }
 bool prime(int a){
   if(a<2)
     return false;
   else if(a==2)
     return true;
   else if(a%2==0)
     return false;
   double b=sqrt(a);
    for(int i=3;i<=b;i+=2){
      if(a%i==0){
        return false;
      }
    }
   return true;
 }
signed main(){
  int a,b,x;
  cin>>a>>b>>c;
  int d=max(a,max(b,c));
  cout<<a+b+c-d*10*d;
}

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

#include<bits/stdc++.h>
using namespace std;
//#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())
 int wari(int a,int b) {
   if(a%b==0)
     return a/b;
   else
     return a/b+1;
 }
 int keta(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
 }
 int souwa(int a){
  return a*(a+1)/2;
 }
 int lcm(int a,int b){
  int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return d*e/f;
    }
  int gcm(int a,int b){
      int d=a,e=b,f;
  if(a<b)
    swap(a,b);
  int c,m=1;
  while(m){
    c=a%b;
    if(c==0){
       f=b;
      m--;
    }
    else{
      a=b;
      b=c;
 }
  }
  return f;
  }
 bool prime(int a){
   if(a<2)
     return false;
   else if(a==2)
     return true;
   else if(a%2==0)
     return false;
   double b=sqrt(a);
    for(int i=3;i<=b;i+=2){
      if(a%i==0){
        return false;
      }
    }
   return true;
 }
signed main(){
  int a,b,x;
  cin>>a>>b>>c;
  int d=max(a,max(b,c));
  cout<<a+b+c-d*10*d

Compiler output:
a.cc: In function 'int main()':
a.cc:75:14: error: 'c' was not declared in this scope
   75 |   cin>>a>>b>>c;
      |              ^
a.cc:77:21: error: expected '}' at end of input
   77 |   cout<<a+b+c-d*10*d
      |                     ^
a.cc:73:14: note: to match this '{'
   73 | signed main(){
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
int a,b,c,d,e,f;
  cin>>a>>b>>c;
  d=max(a,b,c);
  e=min(a,b,c);
  f=a+b+c-d-e;
  cout<<d*10+e+f<<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:8:   required from here
    7 |   d=max(a,b,c);
      |     ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:8:8:   required from here
    8 |   e=min(a,b,c);
      |     ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:61: error: expected ';' before '}' token
    9 |     cout << max({10*A + B + C, 10*B + A + C, 10* C + A + B})
      |                                                             ^
      |                                                             ;
   10 | }
      | ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: request for member 'begin' in 'n', which is of non-class type 'int [3]'
    8 |   sort(n.begin(), n.end());
      |          ^~~~~
a.cc:8:21: error: request for member 'end' in 'n', which is of non-class type 'int [3]'
    8 |   sort(n.begin(), n.end());
      |                     ^~~
Language: C++

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: expected unqualified-id before '(' token
   11 |   D = vec.at(2)*10+vec.(1)+vec.(0);
      |                        ^
a.cc:11:32: error: expected unqualified-id before '(' token
   11 |   D = vec.at(2)*10+vec.(1)+vec.(0);
      |                                ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <typeinfo>

using namespace std;

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

    vector<int> v;
    v.push_back(a);
    v.push_back(b);
    v.push_back(c);
    sort(v.begin(), v.end(), greater<int>());
    int ret = stoi(to_string(v[0]) + to_string(v[1])) + v[2];
    cout << ret << endl;
}


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

#include<stdio.h>
 int main(void)
{
 int a,b,c,x,y,u,z;

  scanf("%d%d%d",&a,&b,&c);
  if(a<=c && b<=c)
       x=c,u=b,z=a;
  else if (a<=b && c<=b)
        x=b,u=c,z=a;
  else if (b<=a && c<=a)
        x=a,u=c,z=b;
  y=(x*10)+u+z;
  printf("%d\n",y);
  return 0;
}
~                               

Compiler output:
main.c:17:1: error: expected identifier or '(' before '~' token
   17 | ~
      | ^
Language: C++

#include<iostream>

main(){
  int arr[3];
  std::cin>>arr[0]>>arr[1]>>arr[2];
  std::sort(arr,arr+3);
  std::cout<<arr[0]*10+arr[1]+arr[2];
}


Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
    6 |   std::sort(arr,arr+3);
      |        ^~~~
      |        qsort
Language: C++

#include<iostream>

main(){
  int arr[3];
  std::cin>>arr[0]>>arr[1]>>arr[2];
  sort(arr,arr+3);
  std::cout<<arr[0]*10+arr[1]+arr[2];
}


Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    6 |   sort(arr,arr+3);
      |   ^~~~
      |   short
Language: C++

#include<iostream>

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

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>arr[0]>>arr[1]>>arr[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:6:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    6 |   sort(arr,arr+3);
      |   ^~~~
      |   short
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<<arr[0]*10+arr[1]+arr[2];
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

include<stdio.h>
 int main(void)
{
 int a,b,c,x,y,u,z;

  scanf("%d%d%d",&a,&b,&c);
  if(a<=c && b<=c)
       x=c,u=b,z=a;
  else if (a<=b && c<=b)
        x=b,u=c,z=a;
  else if (b<=a && c<=a)
        x=a,u=a,z=b;
  y=(x*10)+u+z;
  printf("%d\n",y);
  return 0;
}


Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b,c; cin>>a>>b>>c;
  m=max(a,max(b,c));
  cout << m*10 + a+b+c-m<<cout;
  return 0;
}

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

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:14: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   int a,b,c; 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:3: error: 'm' was not declared in this scope
    5 |   m=max(a,max(b,c));
      |   ^
a.cc:5:11: error: 'max' was not declared in this scope; did you mean 'std::max'?
    5 |   m=max(a,max(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:5:5: error: 'max' was not declared in this scope; did you mean 'std::max'?
    5 |   m=max(a,max(b,c));
      |     ^~~
      |     std::max
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: 'std::max' declared here
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << m*10 + a+b+c-m<<cout;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected ';' before 'cout'
   13 |   ans += a[0]
      |              ^
      |              ;
   14 | 
   15 |   cout<<ans<<endl;
      |   ~~~~
Language: C++

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

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

# util functions

# debug
$debugFlag = ( ARGV[0] != nil )
p "==== DEBUG MODE ====" if $debugFlag

def pd(str)
  p str if $debugFlag
end

def printd(str)
  print str if $debugFlag
end

# input
inputs = []
lc = 0
while l = $stdin.gets do
  if false
    inputs << l.chomp.split(" ").map(&:to_s)
  else
    inputs << l.chomp.split(" ").map(&:to_i)
  end
  lc += 1
end

arr = inputs[0].sort.reverse

# input check
if $debugFlag
  p "--- INPUT (begin) ---"
  inputs.each do |l_i|
    p l_i
  end
  p "--- INPUT (end) ---"
  print "\n"
end

# body
if $debugFlag
end

puts arr[0]*10 + arr[1] + arr[2]


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #util
    1 | # util functions
      |   ^~~~
a.cc:3:3: error: invalid preprocessing directive #debug
    3 | # debug
      |   ^~~~~
a.cc:15:3: error: invalid preprocessing directive #input
   15 | # input
      |   ^~~~~
a.cc:29:3: error: invalid preprocessing directive #input
   29 | # input check
      |   ^~~~~
a.cc:39:3: error: invalid preprocessing directive #body
   39 | # body
      |   ^~~~
a.cc:4:1: error: '$debugFlag' does not name a type
    4 | $debugFlag = ( ARGV[0] != nil )
      | ^~~~~~~~~~
Language: C++

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

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

#pragma GCC optimize "-O3"
#pragma GCC target ("avx")
#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;++i)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define inf (1ll<<60)
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())
#define SPEED ios::sync_with_stdio(false);cin.tie(0);cout<<fixed<<setprecision(12);
signed gcd(int a, int b){return b?gcd(b,a%b):a;}
signed lcm(int a,int b){return a*b/gcd(a,b);}
//priority_queue<int, vector<int>, greater<int> > que; //昇順

using namespace std;

const int mod=1e9+7;

signed main(){
    SPEED
    vi abc(3);
    rep(i,3)cin >> abc[i];
    SORT(abc);
    cout << a[2]*10+a[1]+a[0] << endl;
}


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