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

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

Compiler output:
main.c: In function 'main':
main.c:12:19: error: expected ';' before '}' token
   12 | printf("%d\n",e+a)
      |                   ^
      |                   ;
   13 | }
      | ~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:12:19: error: expected ';' before '}' token
   12 | printf("%d\n",e+a)
      |                   ^
      |                   ;
   13 | }
      | ~
Language: C++

#include <iostream>
using namespace std;
int main() {
	int a, b, c;
    cin >> a >> b >> c;
	int ans, u,v,w,x,y,z,;
	u = a * 10 + b;
	v = b * 10 + a;
	w = b * 10 + c;
	x = c * 10 + b;
	y = a * 10 + c;
	z = c * 10 + a;

	ans = max(u, v);
	ans = max(ans, w); 
	ans = max(ans, x);
	ans = max(ans, y);
	ans = max(ans, z);

	cout << ans << endl;

	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:30: error: expected unqualified-id before ';' token
    6 |         int ans, u,v,w,x,y,z,;
      |                              ^
Language: C++

'use strict';

var lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
reader.on('line', function(line){
  lines.push(line);
})
reader.on('close', function(){
  const input = lines[0].split(" ");
  const result = maximizingFormula(input);
  console.log(result);
})

// 1から9の整数3つからなる配列[a,b,c]与えたとき、その整数と1つの"+"を用いて最大の数を求める関数
// 例)(1,4,5) => 55(51 + 4)
function maximizingFormula(input){
  let maxnum = 0;
  let maxIndex = 0;
  input.map((num, index) => {
    if (num > maxnum) {
      maxnum = num;
      maxIndex = index;
    }
  })
  
  return Number(maxnum.toString() + input[(maxIndex + 1) % 3].toString()) + Number(input[(maxIndex + 2) % 3]);
}


Compiler output:
a.cc:1:1: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    1 | 'use strict';
      | ^~~~~~~~~~~~
a.cc:4:22: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    4 | var reader = require('readline').createInterface({
      |                      ^~~~~~~~~~
a.cc:8:11: warning: multi-character character constant [-Wmultichar]
    8 | reader.on('line', function(line){
      |           ^~~~~~
a.cc:11:11: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   11 | reader.on('close', function(){
      |           ^~~~~~~
a.cc:1:1: error: expected unqualified-id before '\x72696374'
    1 | 'use strict';
      | ^~~~~~~~~~~~
a.cc:3:1: error: 'var' does not name a type
    3 | var lines = [];
      | ^~~
a.cc:4:1: error: 'var' does not name a type
    4 | var reader = require('readline').createInterface({
      | ^~~
a.cc:7:2: error: expected unqualified-id before ')' token
    7 | });
      |  ^
a.cc:8:1: error: 'reader' does not name a type
    8 | reader.on('line', function(line){
      | ^~~~~~
a.cc:10:2: error: expected unqualified-id before ')' token
   10 | })
      |  ^
a.cc:15:2: error: expected unqualified-id before ')' token
   15 | })
      |  ^
Language: C++

int main()
{
	int A, B, C;
	//パネルの数字を設定
	cin >> A >> B >> C;
	int MaxNum;
	MaxNum = max({ A, B, C });
	int ans;
	ans = A + B + C + 9* MaxNum;
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> A >> B >> C;
      |         ^~~
a.cc:7:18: error: 'max' was not declared in this scope
    7 |         MaxNum = max({ A, B, C });
      |                  ^~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << ans << endl;
      |         ^~~~
a.cc:10:24: error: 'endl' was not declared in this scope
   10 |         cout << ans << endl;
      |                        ^~~~
Language: C++

#!/usr/bin/python3
x = list(map(int,input().split()))
Max = max(x)
x.remove(Max)
Sum = sum(x)
Sum = Sum + (Max * 10)
print(Sum)

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/python3
      |  ^
a.cc:2:1: error: 'x' does not name a type
    2 | x = list(map(int,input().split()))
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: expected ';' before 'return'
    8 |     cout<<a[2]*10+a[1]+a[0]
      |                            ^
      |                            ;
    9 |     return 0;
      |     ~~~~~~
Language: C++

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

using namespace std;

int a;
vector<int> vec;
int main(){
	for(int i=0;i<3;i++){
    	cin >> a;
      	vec.push_back(a);
    }
  	vec.sort(vec.begin(),vec.end());
  	cout << vec[1]+vec[2] << '\n';
  	return 0;
}


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

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

int a;
vector<int> vec;
int main(){
	for(int i=0;i<3;i++){
    	cin >> a;
      	vec.push_back(a);
    }
  	vec.sort(vec.begin(),vec.end());
  	cout << vec[1]+vec[2] << '\n';
  	return 0;
}


Compiler output:
a.cc:6:1: error: 'vector' does not name a type
    6 | vector<int> vec;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |         cin >> a;
      |         ^~~
      |         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:10:9: error: 'vec' was not declared in this scope
   10 |         vec.push_back(a);
      |         ^~~
a.cc:12:9: error: 'vec' was not declared in this scope
   12 |         vec.sort(vec.begin(),vec.end());
      |         ^~~
a.cc:13:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |         cout << vec[1]+vec[2] << '\n';
      |         ^~~~
      |         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<iostream>
using namespace std;
int main(){
	int a,b,c;
	cin >> a >> b >> c;
	int d=max{a,b,c};
	cout << d*10+a+b << endl;
}


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

#include<iostream>
using namespace std;

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



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

#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <queue>
#include <string>
#include <set>
#include <map>
#define REP(i,n) for(ll i = 0; i < (ll)n; i++)
#define INF 1000000000000000
using namespace std;
typedef long long ll;
typedef double db;
typedef string str;

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


Compiler output:
In file included from /usr/include/c++/14/bits/specfun.h:43,
                 from /usr/include/c++/14/cmath:3906,
                 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:20:16:   required from here
   20 |   int ans = max(a*10+b+c,a+b*10+c,a+b+c*10);
      |             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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;
  cout << max({A, B, C}) * 9 + A + B + C << endl;
  return 0;
}

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

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

int main() {
	int temp;
	vector<int> num={0,0,0};

	cin >> a >> b>>c;

	for(int i= 0;i<3 ;i++){
		num.push_back(a);
	}

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

	cout << num[2]*10+num[0]+num[1];


}


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

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

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

#include <stdio.h>
#include<string.h>
int main(void) {
	// your code goes here
int a=0,b=0,c=0,sum;


scanf("%d%d%d",&a,&b,&c);

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

printf("%d",sum);

return 0;
}



Compiler output:
main.c: In function 'main':
main.c:17:17: error: expected ';' before ')' token
   17 | sum=((c*10)+a)+b);}}
      |                 ^
      |                 ;
main.c:17:17: error: expected statement before ')' token
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C

#include <stdio.h>
#include<string.h>
int main(void) {
	// your code goes here
int a=0,b=0,c=0,sum;


scanf("%d%d%d",&a,&b,&c);

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

printf("%d",sum);

return 0;
}



Compiler output:
main.c: In function 'main':
main.c:17:17: error: expected ';' before ')' token
   17 | sum=((c*10)+a)+b);}}
      |                 ^
      |                 ;
main.c:17:17: error: expected statement before ')' token
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C

#include <stdio.h>
#include<string.h>
int main(void) {
	// your code goes here
int a=0,b=0,c=0,sum;


scanf("%d%d%d",&a,&b,&c);

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

printf("%d",sum);

return 0;
}



Compiler output:
main.c: In function 'main':
main.c:17:17: error: expected ';' before ':' token
   17 | sum=((c*10)+a)+b:);}}
      |                 ^
      |                 ;
main.c:17:18: error: expected statement before ')' token
   17 | sum=((c*10)+a)+b:);}}
      |                  ^
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C

#include <stdio.h>
#include<string.h>
int main(void) {
	// your code goes here
long int a,b,c,sum;


scanf("%ld%ld%ld",&a,&b,&c);

printf("%d",(a>b)?(a>c)?((a*10)+b)+c:(b>c)?(((b*10)+c)+a):((c*10)+a)+b);



return 0;
}



Compiler output:
main.c: In function 'main':
main.c:10:71: error: expected ':' before ')' token
   10 | printf("%d",(a>b)?(a>c)?((a*10)+b)+c:(b>c)?(((b*10)+c)+a):((c*10)+a)+b);
      |                                                                       ^
      |                                                                       :
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    7 |   int m = 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

main(a,b,c){scanf("%d%d%d",&a,&b,&c)<printf("%d",a+b+c+9*max(a,b<c?c:b));}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c)<printf("%d",a+b+c+9*max(a,b<c?c:b));}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:13: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c)<printf("%d",a+b+c+9*max(a,b<c?c:b));}
      |             ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c)<printf("%d",a+b+c+9*max(a,b<c?c:b));}
main.c:1:13: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c)<printf("%d",a+b+c+9*max(a,b<c?c:b));}
      |             ^~~~~
main.c:1:13: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:38: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c)<printf("%d",a+b+c+9*max(a,b<c?c:b));}
      |                                      ^~~~~~
main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:38: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:58: error: implicit declaration of function 'max' [-Wimplicit-function-declaration]
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c)<printf("%d",a+b+c+9*max(a,b<c?c:b));}
      |                                                          ^~~
Language: C++

#include <bits/stdc++.h>

using namespace sdt;

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

 return 0; 
}

Compiler output:
a.cc:3:17: error: 'sdt' is not a namespace-name
    3 | using namespace sdt;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | cin >> a >>b >> c;
      | ^~~
      | std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:8:9: error: 'max' was not declared in this scope; did you mean 'std::max'?
    8 | d = max(max(a,b),c);
      |         ^~~
      |         std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:8:5: error: 'max' was not declared in this scope; did you mean 'std::max'?
    8 | d = max(max(a,b),c);
      |     ^~~
      |     std::max
/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:10:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |  cout << (d*10) + b + c;
      |  ^~~~
      |  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |  cout << (d*10) + a + c;
      |  ^~~~
      |  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |  cout << (d*10) + b + a;
      |  ^~~~
      |  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>
 
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define Rep(i,n0,n) for(int i=n0;i<n;i++)
#define Com(i,j,n) for(int i=0;i<n-1;i++)for(int j=i+1;j<n;j++)
const int INF =100100100;
const int MOD = (int)1e9+7;
const double EPS = 1e-9;
typedef long long ll;
typedef long li;
#define pb push_back 
#define mp make_pair

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: expected initializer before 'cin'
   17 |         cin >> a[0] >> a[1] >> a[2];
      |         ^~~
a.cc:18:14: error: 'a' was not declared in this scope
   18 |         sort(a.begin(),a.end());
      |              ^
Language: C++

#include<cstdio.h>

int main(){
  int N,M,X,Y,temp,i;
  scanf("%d%d%d%d",&N,&M,&X,&Y);
  for(i=0;i<N;i++){
    scanf("%d",&temp);
    if(temp>X)X = temp;
  }
  for(i=0;i<M;i++){
    scanf("%d",&temp);
    if(temp<Y)Y = temp;
  }
  puts(Y>X?"No War":"War");
  return 0;
}

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

#include <stdio.h>

int main() {
	int n[3];
	int i, max, imax
	int ans;
	
	scanf("%d %d %d", &n[0], &n[1], &n[2]);
	
	max = n[0];
	imax = 0;
	for (i = 1; i < 3; i++) {
		if (n[i] > max) {
			max = n[i];
			imax = i;
		}
	}
	
	ans = max * 10;
	for (i = 0; i < 3; i++) {
		if (i != imax)
			ans += n[i];
	}
	
	printf("%d", ans);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'int'
    6 |         int ans;
      |         ^~~
a.cc:11:9: error: 'imax' was not declared in this scope; did you mean 'max'?
   11 |         imax = 0;
      |         ^~~~
      |         max
a.cc:19:9: error: 'ans' was not declared in this scope
   19 |         ans = max * 10;
      |         ^~~
Language: C++

#include <cstdio>
#include<queue>
using namespace std;

int A, B, C, m[3];
int i = 0;
int main() {
	scanf("%d %d %d", &A, &B, &C);

	int priority_queue<int> pque;

	pque.push(A);
	pque.push(B);
	pque.push(C);

		
		while (!pque.empty()) {
			m[i] = pque.top;
			pque.pop();
			i++;
			
		}

		printf("%d", m[0] * m[1] + m[2]);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:33: error: invalid declarator before 'pque'
   10 |         int priority_queue<int> pque;
      |                                 ^~~~
a.cc:12:9: error: 'pque' was not declared in this scope
   12 |         pque.push(A);
      |         ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:17:3: error: expected '}' before 'else'
   17 |   else{
      |   ^~~~
Language: C++

#include<iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'x' was not declared in this scope
    9 |  int Z=x+1;
      |        ^
Language: C++

#include <cstdio.h>
#include <cstring.h>

int main(void)
{
    char s[200050], t[200050];
    
    int i, j;
    
    int len;
    
    scanf("%s\n%s", s, t);
    
    len = strlen(s);
    
    for(i = 0; i < len - 1; i++) {
        for(j = i + 1; j < len; j++) {
            if(s[i] == s[j]) {
                if (t[i] != t[j]) {
                    printf("No\n");
                    return 0;
                }
            }
        }
    }
    
    for(i = 0; i < len - 1; i++) {
        for(j = i + 1; j < len; j++) {
            if(t[i] == t[j]) {
                if (s[i] != s[j]) {
                    printf("No\n");
                    return 0;
                }
            }
        }
    }
    
    printf("Yes\n");
    
    return 0;
}


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

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

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

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


Compiler output:
main.c: In function 'main':
main.c:10:12: error: expected expression before '>' token
   10 |     if (A => B && A => C) {
      |            ^
main.c:13:17: error: expected expression before '>' token
   13 |     else if (B => A && B => C) {
      |                 ^
Language: C

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


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

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


Compiler output:
main.c: In function 'main':
main.c:17:7: error: implicit declaration of function 'printd'; did you mean 'printf'? [-Wimplicit-function-declaration]
   17 |       printd("%d\n", 10*C + A + B);
      |       ^~~~~~
      |       printf
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:17:7: error: implicit declaration of function 'printd'; did you mean 'printf'? [-Wimplicit-function-declaration]
   17 |       printd("%d\n", 10*C + A + B);
      |       ^~~~~~
      |       printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:17:7: error: implicit declaration of function 'printd'; did you mean 'printf'? [-Wimplicit-function-declaration]
   17 |       printd("%d\n", 10*C + A + B);
      |       ^~~~~~
      |       printf
main.c:20:9: error: expected ';' before '}' token
   20 | return 0
      |         ^
      |         ;
   21 | }
      | ~
Language: C++

#!/usr/bin/env python

A, B, C = map(int, input().split()) 
res = 10 * A + B + C
if A + 10 * B + C > res:
    res = A + 10 * B + C
    if A + B + 10 * C > res:
        res = A + B + 10 * C

print(res)

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python
      |  ^
a.cc:3:1: error: 'A' does not name a type
    3 | A, B, C = map(int, input().split())
      | ^
Language: Java

public class MaxFormula {

	public static final int NUM_INPUT = 3;

	public static void main(String[] args) {

		String str1 = args[0];
		String str2 = args[1];
		String str3 = args[2];

		int max = 0;
		for (int i = 0; i < NUM_INPUT; i++) {
			for (int j = 0; j < NUM_INPUT; j++) {
				if (i == j) {
					continue;
				}
				int index = 0;
				for (int k = 0; k < NUM_INPUT; k++) {
					if (i == k || j == k) {
						continue;
					}
					index = k;
				}
				int num = Integer.parseInt(args[i] + args[j]) + Integer.parseInt(args[index]);
				if (num > max) {
					max = num;
				}
			}
		}

		System.out.println(max);

    }
}

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

#include<stdio.h>
int cmp(const void *a,const void *b)
{
    return *(int*)a - *(int*)b;
}
int main(void)
{
    int a[3],i;
    for(i=0;i<3;i++){
        scanf(''%d'',&a[i]);
    }
    qsort(a,3,sizeof(int),cmp);
    printf(''%d'',a[2]*10+a[1]+a[0]);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:15: error: empty character constant
   10 |         scanf(''%d'',&a[i]);
      |               ^~
main.c:10:19: error: empty character constant
   10 |         scanf(''%d'',&a[i]);
      |                   ^~
main.c:10:18: error: 'd' undeclared (first use in this function)
   10 |         scanf(''%d'',&a[i]);
      |                  ^
main.c:10:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:19: error: expected ')' before '\x0'
   10 |         scanf(''%d'',&a[i]);
      |              ~    ^~
      |                   )
main.c:12:5: error: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
   12 |     qsort(a,3,sizeof(int),cmp);
      |     ^~~~~
main.c:13:12: error: empty character constant
   13 |     printf(''%d'',a[2]*10+a[1]+a[0]);
      |            ^~
main.c:13:16: error: empty character constant
   13 |     printf(''%d'',a[2]*10+a[1]+a[0]);
      |                ^~
main.c:13:16: error: expected ')' before '\x0'
   13 |     printf(''%d'',a[2]*10+a[1]+a[0]);
      |           ~    ^~
      |                )
Language: C

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

int main(void)
{
	int A,B,C;
	scanf("%d %d %d",&A,&B,&C);
	
	char a[100],b[100],c[100];
	
	itoa(A,a,10);
	itoa(B,b,10);
	itoa(C,c,10);
	
	char max[500]={'\0'};
	
	if(A<B){
		if(B<C){
			//A<B<C;
			strcat(max,c);
			strcat(max,b);
			printf("%d\n",atoi(max)+A);
		}else{
			//A<C<B;
			strcat(max,b);
			strcat(max,c);
			printf("%d\n",atoi(max)+A);
		}
	}else{
		if(A<C){
			//B<A<C;
			strcat(max,c);
			strcat(max,a);
			printf("%d\n",atoi(max)+B);
		}else{
			//B<C<A;
			strcat(max,a);
			strcat(max,c);
			printf("%d\n",atoi(max)+B);
		}
	}
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:9: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
   12 |         itoa(A,a,10);
      |         ^~~~
Language: Java

import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		List<Integer> list1 = new ArrayList<>();
		for(int i = 0; i<3; i++){
		    int a = sc.nextInt();
			list1.add(a);
		}
		Collections.list1;
		System.out.println(list1.get(2)*10+list1.get(0)+list1.get(1));s
	}
}

Compiler output:
Main.java:13: error: not a statement
		Collections.list1;
		           ^
Main.java:14: error: not a statement
		System.out.println(list1.get(2)*10+list1.get(0)+list1.get(1));s
		                                                              ^
Main.java:14: error: ';' expected
		System.out.println(list1.get(2)*10+list1.get(0)+list1.get(1));s
		                                                               ^
3 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:3: error: expected declaration or statement at end of input
   14 |   return 0;
      |   ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:17:3: error: expected declaration or statement at end of input
   17 |   return 0;
      |   ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:10: error: expected expression before '>' token
    8 |   if(max=>b)
      |          ^
main.c:10:10: error: expected expression before '>' token
   10 |   if(max=>c)
      |          ^
main.c:14:3: error: expected declaration or statement at end of input
   14 |   return 0;
      |   ^~~~~~
Language: C++

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

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

  if (A <= C && B<=C) {
    cout << C *10 +B+A  << endl;
  }
  
 else if (A<=B&&C<=B){
     cout << B*10 +A+C << endl;}
else{
   cout << A*10+B+C << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:3: error: expected declaration or statement at end of input
   14 |   return 0;
      |   ^~~~~~
Language: C++

#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef pair<string, string> P;
const ll MOD = 1000000007LL;

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

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:10:13:   required from here
   10 |         cout << max(A * 10 + B + C, B * 10 + A + C, C * 10 + A + B) << endl;
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

# include <iostream>
# include <cstdio>
# include <vector>
# include <slgorithm>

using namespace std;

int main()
{
	vector<int> nums(3);
	scanf("%d %d %d", &nums[0], &nums[1], &nums[2]);
	sort(nums.begin(), nums.end());
	
	int ans = 10 * nums[2] + nums[1] + nums[0];
	cout << ans << endl;
	
	return 0;
}

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

#[allow(unused_macros)]
macro_rules! input {
    (source = $s:expr, $($r:tt)*) => {
        let mut iter = $s.split_whitespace();
        let mut next = || { iter.next().unwrap() };
        input_inner!{next, $($r)*}
    };
    ($($r:tt)*) => {
        let stdin = std::io::stdin();
        let mut bytes = std::io::Read::bytes(std::io::BufReader::new(stdin.lock()));
        let mut next = move || -> String{
            bytes
                .by_ref()
                .map(|r|r.unwrap() as char)
                .skip_while(|c|c.is_whitespace())
                .take_while(|c|!c.is_whitespace())
                .collect()
        };
        input_inner!{next, $($r)*}
    };
}

#[allow(unused_macros)]
macro_rules! input_inner {
    ($next:expr) => {};
    ($next:expr, ) => {};

    ($next:expr, $var:ident : $t:tt $($r:tt)*) => {
        let $var = read_value!($next, $t);
        input_inner!{$next $($r)*}
    };
}

#[allow(unused_macros)]
macro_rules! read_value {
    ($next:expr, ( $($t:tt),* )) => {
        ( $(read_value!($next, $t)),* )
    };

    ($next:expr, [ $t:tt ; $len:expr ]) => {
        (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()
    };

    ($next:expr, chars) => {
        read_value!($next, String).chars().collect::<Vec<char>>()
    };

    ($next:expr, bytes) => {
        read_value!($next, String).into_bytes()
    };

    ($next:expr, usize1) => {
        read_value!($next, usize) - 1
    };

    ($next:expr, $t:ty) => {
        $next().parse::<$t>().expect("Parse error")
    };
}

fn main() {
    input!{
        a: i32,
        b: i32,
        c: i32,
    }

    let ans: i32 = *[a * 10 + b + c, a + b * 10 + c, a + b + c * 10]
        .iter()
        .max()
        .unwrap();

    println!("{}", ans);
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #[
    1 | #[allow(unused_macros)]
      |  ^
a.cc:23:2: error: invalid preprocessing directive #[
   23 | #[allow(unused_macros)]
      |  ^
a.cc:34:2: error: invalid preprocessing directive #[
   34 | #[allow(unused_macros)]
      |  ^
a.cc:41:10: error: too many decimal points in number
   41 |         (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()
      |          ^~~~~~~
a.cc:2:1: error: 'macro_rules' does not name a type
    2 | macro_rules! input {
      | ^~~~~~~~~~~
a.cc:24:1: error: 'macro_rules' does not name a type
   24 | macro_rules! input_inner {
      | ^~~~~~~~~~~
a.cc:35:1: error: 'macro_rules' does not name a type
   35 | macro_rules! read_value {
      | ^~~~~~~~~~~
a.cc:61:1: error: 'fn' does not name a type
   61 | fn main() {
      | ^~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
 
int Pow(int n, int m);
int Max(int N[], int n);
int Min(int N[], int n);
int Sum(int N[], int n);
 
 
 
 
int main()
{
	int A = 0, B = 0, C = 0;
 
	scanf("%d", &A);
	scanf("%d", &B);
	scanf("%d", &C);
 
	int X[3] = { A,B,C };
 
	int ans = 9 * Max(X, 3) + Sum(X, 3);
 
  	printf("%d" ans);
  
	return 0;
}
 
int Pow(int n, int m) {
	int ret = 1;
 
	for (int i = 0; i < m; i++) {
		ret *= n;
	}
 
	return ret;
}
 
int Max(int N[], int n) {
	int max = N[0];
 
	for (int i = 0; i < n; i++) {
		max = max < N[i] ? N[i]: max;
	}
 
	return max;
}
 
int Min(int N[], int n) {
	int min = N[0];
 
	for (int i = 0; i < n; i++) {
		min = min > N[i] ? N[i] : min;
	}
 
	return min;
}
 
int Sum(int N[], int n) {
	int sum = 0;
 
	for (int i = 0; i < n; i++) {
		sum += N[i];
	}
 
	return sum;
}

Compiler output:
main.c: In function 'main':
main.c:27:20: error: expected ')' before 'ans'
   27 |         printf("%d" ans);
      |               ~    ^~~~
      |                    )
Language: C

#include<stdio.h>
#define MM 3
int main(void){

int sum,t,d[MM],i,j;

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

for(i=0;i<MM-1;i++){
for(j=i+1;j<MM;j++){
if(d[i]<d[j]){
t=d[j];
d[j]=d[i];
d[i]=t;
}}}

d[0] = d[0] * 10;
sum = d[0]+d[1]+d[2]
printf("%d\n",sum);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:21: error: expected ';' before 'printf'
   20 | sum = d[0]+d[1]+d[2]
      |                     ^
      |                     ;
   21 | printf("%d\n",sum);
      | ~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
int main(){
  int N,M,X,Y;
  cin>>N>>M>>X>>Y;
  vector<int> x(N);
  vector<int> y(M);
  for(int i=0; i<N;i++){
  	cin>>x[i];
  }
  for(int i=0; i<M;i++){
  	cin>>y[i];
  }
  sort(x.begin(), x.end());
  sort(y.begin(), y.end());
  if(X<Y){
    if(x.back()<y.front()&&X<y.front()){
      cout<<"No War"<<endl;
      return 0;
    }
  }else{
    if(y.back()<x.front()&&Y<x.front){
      cout<<"No War"<<endl;
      return 0;
    }
  }
  cout<<"War"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:29: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<'
   24 |     if(y.back()<x.front()&&Y<x.front){
      |                            ~^~~~~~~~
      |                            |   |
      |                            int <unresolved overloaded function type>
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(void){
 int a,b,c,d[6];
 cin>>a>>b>>c;
 d[1-1] = (10*a+b)+c;
 d[2-1] = (10*a+c)+b;
 d[3-1] = (10*b+a)+c;
 d[4-1] = (10*b+c)+a;
 d[5-1] = (10*c+a)+b;
 d[6-1] = (10*c+b)+a;
 int result = max({d[0],d[1],d[2],d[3],d[4],d[5]});
 cout<<>result;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: expected primary-expression before '>' token
   15 |  cout<<>result;
      |        ^
Language: C++

#include<iostream>
using namespace std; 
 
 
int main(){
  int a, b ,c;
  cin >> a >> b >> c;
  
  if(a >= b && b >= c && a >= c){
    cont << (a*10 + b) + c << endl;
  } else if (a >= b && c >= b && a >= c){
    cont << (a*10 + c) + b << endl;
  } else if (b >= a && b >= c && a >= c){
    cont << (b*10 + a) + c << endl;
  } else if (b >= a && b >= c && c >= a){
    cont << (b*10 + c) + a << endl;
  } else if (c >= a && c >= b && b >= a){
    cont << (c*10 + b) + a << endl;
  } else {
    cont << (c*10 + a) + b << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'cont' was not declared in this scope; did you mean 'const'?
   10 |     cont << (a*10 + b) + c << endl;
      |     ^~~~
      |     const
a.cc:12:5: error: 'cont' was not declared in this scope; did you mean 'const'?
   12 |     cont << (a*10 + c) + b << endl;
      |     ^~~~
      |     const
a.cc:14:5: error: 'cont' was not declared in this scope; did you mean 'const'?
   14 |     cont << (b*10 + a) + c << endl;
      |     ^~~~
      |     const
a.cc:16:5: error: 'cont' was not declared in this scope; did you mean 'const'?
   16 |     cont << (b*10 + c) + a << endl;
      |     ^~~~
      |     const
a.cc:18:5: error: 'cont' was not declared in this scope; did you mean 'const'?
   18 |     cont << (c*10 + b) + a << endl;
      |     ^~~~
      |     const
a.cc:20:5: error: 'cont' was not declared in this scope; did you mean 'const'?
   20 |     cont << (c*10 + a) + b << endl;
      |     ^~~~
      |     const
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(void){
 int a,b,c,d[6];
 cin>>a>>b>>c;
 d[1-1] = (10*a+b)+c;
 d[2-1] = (10*a+c)+b;
 d[3-1] = (10*b+a)+c;
 d[4-1] = (10*b+c)+a;
 d[5-1] = (10*c+a)+b;
 d[6-1] = (10*c+b)+a;
 int result = max({d[0],d[1],d[2],d[3],d[4],d[5]});
 cout<<>result;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
   13 |  int result = max({d[0],d[1],d[2],d[3],d[4],d[5]});
      |               ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
a.cc:14:8: error: expected primary-expression before '>' token
   14 |  cout<<>result;
      |        ^
Language: C++

#include<iostream>
using namespace std; 

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

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




Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> a >> b >> c;
      | ^~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cont' was not declared in this scope; did you mean 'const'?
    9 |     cont << (a*10 + b) + c << endl;
      |     ^~~~
      |     const
a.cc:11:5: error: 'cont' was not declared in this scope; did you mean 'const'?
   11 |     cont << (a*10 + c) + b << endl;
      |     ^~~~
      |     const
a.cc:13:5: error: 'cont' was not declared in this scope; did you mean 'const'?
   13 |     cont << (b*10 + a) + c << endl;
      |     ^~~~
      |     const
a.cc:15:5: error: 'cont' was not declared in this scope; did you mean 'const'?
   15 |     cont << (b*10 + c) + a << endl;
      |     ^~~~
      |     const
a.cc:17:5: error: 'cont' was not declared in this scope; did you mean 'const'?
   17 |     cont << (c*10 + b) + a << endl;
      |     ^~~~
      |     const
a.cc:19:5: error: 'cont' was not declared in this scope; did you mean 'const'?
   19 |     cont << (c*10 + a) + b << endl;
      |     ^~~~
      |     const
Language: C++

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

int main(){

    int A;
    int B;
    int C;
    int ans;
    int V1,V2,V3;

    cin >> A;
    cin >> B;
    cin >> C;

    V1 = A;
    if ( V1 < B){
        V2 = V1;
        V1 = B;
    }
    else V2 = B ;

    if (V1 < C ){
        V3 = V2;
        V2 = V1;
        V1 = C;
    }else if ( V2 < C ){
        V3 = V2;
        V2 = C;
    }else{
        V3 = C;
    }

    ans = V1 *a 10 + V2 + V3;
    cout << ans;



    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:15: error: 'a' was not declared in this scope
   35 |     ans = V1 *a 10 + V2 + V3;
      |               ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>a[0]>>a[1]>>a[2];
      |   ^~~
a.cc:6:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    6 |   sort(a,a+3);
      |   ^~~~
      |   short
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<a[2]*10+a[0]+a[1]<<endl;
      |   ^~~~
a.cc:7:28: error: 'endl' was not declared in this scope
    7 |   cout<<a[2]*10+a[0]+a[1]<<endl;
      |                            ^~~~