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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:52: error: expected ';' before 'if'
    8 |         if(sum > max(a, b) * c) sum = max(a, b) * c
      |                                                    ^
      |                                                    ;
    9 |         if(x > y) {
      |         ~~
Language: C++

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

int main() {
    int a, b, c, x, y;
    cin>>a>>b>>c>>x>>y;
    int count=0,kazu=min(x,y);
    count+=(a*kazu+b*kazu)
    count+=(a-kazu)*a;
    count+=(b-kazu)*b;
    cout<<count<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: expected ';' before 'count'
   11 |     count+=(a*kazu+b*kazu)
      |                           ^
      |                           ;
   12 |     count+=(a-kazu)*a;
      |     ~~~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int (i) = 0; (i) < (int)(n); i++) 
#define FOR(i, a, b) for(int (i) = a; (i) < (int)b; i++)
#define RREP(i, n) for(int (i)=((int)(n)-1); (i)>=0; i--)
#define RFOR(i, a, b) for(int (i) =((int)(b)-1); (i)>=(int)a; i--)
#define ALL(v) (v).begin(),(v).end()
#define MOD 1000000007
#define FI first
#define SC second
#define MP make_pair
#define PB push_back
#define SZ(x)  (int)x.size()
#define SP(x)  setprecision((int)x)


using namespace std ;
typedef long long ll;
typedef vector<int> vint;
typedef vector<vint> vvint;
typedef vector<string> vstr;
typedef pair<int, int> pii;
const int INF = 1e9;
const ll LINF = 1e18;
const double EPS = 1e-9;
ll gcd(ll a, ll b) {return b ? gcd(b, a % b) : a;}
ll lcm(ll a, ll b) {return a / gcd(a, b) * b;}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:43:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   43 |   cout << ans <<endl ;
      |           ^~~
      |           abs
Language: C++

#include <bits/stdc++.h>
#include<algorithm>
#include<math.h>
#include<string>
#include<iostream>
#include <vector>
#include <cstdlib>
using namespace std;
 
template <class T> using V = vector<T>;

template<class T> inline bool chmin(T& a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}
template<class T> inline bool chmax(T& a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}

const long long INF = 1LL << 60;
 
using ll = long long;
using db = double;
using st = string;
using ch = char;
using bl = bool;
using vll = V<ll>;
using vpll =V<pair<ll,ll>>;
using vst = V<st>;
using vdb = V<db>;
using vch = V<ch>;
using vbl = V<bl>;
 
 
#define FOR(i,a,b) for(ll i=(a);i<(b);i++)
#define rFOR(i,a,b) for(ll i=(a);i>(b);i--)
#define oFOR(i,a,b) for(ll i=(a);i<(b);i+=2)
#define bgn begin()
#define en end()
#define SORT(a) sort((a).bgn,(a).en)
#define REV(a) reverse((a).bgn,(a).en)
#define M(a,b) max(a,b)
#define rM(a,b) min(a,b)
#define fi first
#define se second
#define sz size()
#define gcd(a,b) __gcd(a,b)
#define co(a) cout<<a<<endl;
#define ci(a) cin>>a;
 
 
ll sum(ll n) {
  ll m=0;
  FOR(i,0,20){
    m+=n%10;
    n/=10;
    if(n==0){
      break;
    }
  }
  return m;
}
 
 
ll combi(ll n,ll m) {
  ll ans=1;
  rFOR(i,n,n-m){
    ans*=i;
  }
  FOR(i,1,m+1){
    ans/=i;
  }
  return ans;
}
 
 
ll lcm(ll a,ll b){
  ll n;
  n=a/gcd(a,b)*b;
  return n;
}
 
 
/****************************************\
| Thank you for viewing my code:)        |
| Written by RedSpica a.k.a. RanseMirage |
| Twitter:@asakaakasaka                  | 
\****************************************/
 
 
signed main() {
  ll a,b,c;
  	ci(a>>b>>c);
  ll x,y;
  	ci(x>>y);
  ll ans=INF;
  ll z=0
  FOR(i,1,100001){
	chmin(ans,i*2*c+a*max(z,x-i)+b*max(z,y-i));
  }
  co(ans)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:20: error: expected ',' or ';' before 'for'
   42 | #define FOR(i,a,b) for(ll i=(a);i<(b);i++)
      |                    ^~~
a.cc:105:3: note: in expansion of macro 'FOR'
  105 |   FOR(i,1,100001){
      |   ^~~
a.cc:105:7: error: 'i' was not declared in this scope
  105 |   FOR(i,1,100001){
      |       ^
a.cc:42:33: note: in definition of macro 'FOR'
   42 | #define FOR(i,a,b) for(ll i=(a);i<(b);i++)
      |                                 ^
Language: C++

#include <iostream>
using namespace std;
int main(){int A,B,C,X,Y,p;cin >> A >> B >> C >> X >> Y;
cout << min(min(A*X+B*Y,2*C*min(X,Y)+ ((X - Y) > 0 ? A * (X - Y) : B * (Y - X)),c = 2 * C * ((X - Y) > 0 ? X : Y));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:81: error: 'c' was not declared in this scope
    4 | cout << min(min(A*X+B*Y,2*C*min(X,Y)+ ((X - Y) > 0 ? A * (X - Y) : B * (Y - X)),c = 2 * C * ((X - Y) > 0 ? X : Y));
      |                                                                                 ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b,c,x,y;cin>>a>>b>>c>>x>>y;
  if(a+b < c*2){
    cout << a*x+b*y << endl;
  }
  int ans = 0;
  ans += min(x,y)*2*c;
  if(x > y){
    ans+= min(a,c*2)*(x-y);
  else if (x < y){
    ans+= min(b,c*2)*(y-x);
  }
  cout << ans << endl;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected '}' before 'else'
   12 |   else if (x < y){
      |   ^~~~
a.cc:10:12: note: to match this '{'
   10 |   if(x > y){
      |            ^
Language: C++

#include <iostream>
#include <cstring>
#include <map>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <set>
#include <vector>
#include <queue>
#include <list>
#include <numeric>
#include <stdio.h>
#include <string>
#include <cstdlib>
#include <math.h>
#include <stack>
#include <climits>
#include <bitset>

using namespace std;
typedef long long ll;

int gcd(int x, int y) {
  if (x < y) swap(x, y);
  while (y > 0) {
    int r = x % y;
    x = y;
    y = r;
  }
  return x;
}

//for(int i = ; i < ; i++){}

int main(){
  int a,b,c,x,y;
  cin>>a>>b>>c>>x>>y;
  int sum = 0;
  if(a+b>2*c){
    if(x>y){
      sum=min(2*c*x,2*c*y+a(x-y));
    }
    else{
      sum=min(2*c*y,2*c*x+b*(y-x));
    }
  }
  else{
    sum=a*x+b*y;
  }
  cout<<sum<<endl;
  return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:41:28: error: 'a' cannot be used as a function
   41 |       sum=min(2*c*x,2*c*y+a(x-y));
      |                           ~^~~~~
Language: C++

#include <iostream>
#include <cstring>
#include <map>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <set>
#include <vector>
#include <queue>
#include <list>
#include <numeric>
#include <stdio.h>
#include <string>
#include <cstdlib>
#include <math.h>
#include <stack>
#include <climits>
#include <bitset>

using namespace std;
typedef long long ll;

int gcd(int x, int y) {
  if (x < y) swap(x, y);
  while (y > 0) {
    int r = x % y;
    x = y;
    y = r;
  }
  return x;
}

//for(int i = ; i < ; i++){}

int main(){
  int a,b,c,x,y;
  cin>>a>>b>>c>>x>>y;
  int sum = 0;
  if(a+b>2*c){
    if(a>2*c&&b>2*c) sum=2*c*max(x,y);
    else if(a>2*c&&b<=2*c) {sum=2*c*x+b*max(0,y-x/2);
      }
    else if(a<=2*c&&b>2*c) sum=a*max(0,(x-y/2))+2*c*y;
  }
    else{
      sum=c*min(x,y)*2+a*(x-min(x,y))+b*(y-min(x,y));
    }
  }
  else{
    sum=a*x+b*y;
  }
  cout<<sum<<endl;
}




Compiler output:
a.cc:49:3: error: expected unqualified-id before 'else'
   49 |   else{
      |   ^~~~
a.cc:52:3: error: 'cout' does not name a type
   52 |   cout<<sum<<endl;
      |   ^~~~
a.cc:53:1: error: expected declaration before '}' token
   53 | }
      | ^
Language: C++

#include <iostream>
#include <cstring>
#include <map>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <set>
#include <vector>
#include <queue>
#include <list>
#include <numeric>
#include <stdio.h>
#include <string>
#include <cstdlib>
#include <math.h>
#include <stack>
#include <climits>
#include <bitset>

using namespace std;
typedef long long ll;

int gcd(int x, int y) {
  if (x < y) swap(x, y);
  while (y > 0) {
    int r = x % y;
    x = y;
    y = r;
  }
  return x;
}

//for(int i = ; i < ; i++){}

int main(){
  int a,b,c,x,y;
  cin>>a>>b>>c>>x>>y;
  int sum = 0;
  if(a+b>2*c){
    if(a>2*c&&b>2*c) sum=2*c*max(x,y);
    else if(a>2*c&&b<=2*c) {sum=2*c*x+b*max(0,y-x/2);
      }
    }
    else if(a<=2*c&&b>2*c) sum=a*max(0,(x-y/2))+2*c*y;
    else{
      sum=c*min(x,y)*2+a*(x-min(x,y))+b*(y-min(x,y));
    }
  }
  else{
    sum=a*x+b*y;
  }
  cout<<sum<<endl;
}




Compiler output:
a.cc:49:3: error: expected unqualified-id before 'else'
   49 |   else{
      |   ^~~~
a.cc:52:3: error: 'cout' does not name a type
   52 |   cout<<sum<<endl;
      |   ^~~~
a.cc:53:1: error: expected declaration before '}' token
   53 | }
      | ^
Language: C++

#include <iostream>
#include <cstring>
#include <map>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <set>
#include <vector>
#include <queue>
#include <list>
#include <numeric>
#include <stdio.h>
#include <string>
#include <cstdlib>
#include <math.h>
#include <stack>
#include <climits>
#include <bitset>

using namespace std;
typedef long long ll;

int gcd(int x, int y) {
  if (x < y) swap(x, y);
  while (y > 0) {
    int r = x % y;
    x = y;
    y = r;
  }
  return x;
}

//for(int i = ; i < ; i++){}

int main(){
  int a,b,c,x,y;
  cin>>a>>b>>c>>x>>y;
  int sum = 0;
  if(a+b>2*c){
    if(a>2*c&&b>2*c) sum=2*c*max(x,y);
    else if(a>2*c&&b<=2*c) {sum=2*c*x+b*max(0,y-x/2)

      }
    }
    else if(a<=2*c&&b>2*c) sum=a*max(0,(x-y/2))+2*c*y;
    else{
      sum=c*min(x,y)*2+a*(x-min(x,y))+b*(y-min(x,y));
    }
  }
  else{
    sum=a*x+b*y;
  }
  cout<<sum<<endl;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:41:53: error: expected ';' before '}' token
   41 |     else if(a>2*c&&b<=2*c) {sum=2*c*x+b*max(0,y-x/2)
      |                                                     ^
      |                                                     ;
   42 | 
   43 |       }
      |       ~                                              
a.cc: At global scope:
a.cc:50:3: error: expected unqualified-id before 'else'
   50 |   else{
      |   ^~~~
a.cc:53:3: error: 'cout' does not name a type
   53 |   cout<<sum<<endl;
      |   ^~~~
a.cc:54:1: error: expected declaration before '}' token
   54 | }
      | ^
Language: Java

import java.util.Scanner;
class Main{
   public static void main(String arg[]){
           Scanner scn=new Scanner(System.in);
           int a = scn.nextInt();
           int b = scn.nextInt();
           int ab = scn.nextInt();  
           int aNum = scn.nextInt();
           int bNum = scn.nextInt();
           int aTotal  = aNum*a;
           int bTotal = bNum*b;
           int abUp = 0;
           int abDown = 0;
           if(aNum>bNum){
                abUp = aNum*ab*2;
                abDown = bNum*ab*2+a*(aNum-bNum);
            }else{
                abUp = bNum*ab*2;
                abDown = aNum*ab*2+b*(bNum-aNum);
            }
　          int min = aTotal+bTotal;
            min = Math.min(min,abUp);
            min = Math.min(min,abDown);
            System.out.println(min);
        }
}

Compiler output:
Main.java:21: error: illegal character: '\u3000'
?          int min = aTotal+bTotal;
^
1 error
Language: C

#include<stdio.h>
2. 
3.int main()
4.{
5.    int a,b,c,x,y,bill1,bill2,bill3;
6. 
7.    scanf("%d %d %d %d %d",&a,&b,&c,&x,&y);
8. 
9.    bill1=x*a+y*b;
10. 
11. 
12.    if(x>y)
13.    {
14.       bill2 =2*y*c+(x-y)*a;
15.    }
16.    else
17.    {
18.       bill2 =2*x*c+(y-x)*b;
19.    }
20. 
21. 
22.    if(x>y)
23.    {
24.       bill3 =2*c*x;
25.    }
26.    else
27.    {
28.       bill3 =2*c*y;
29.    }
30. 
31.    if(bill1<=bill2&&bill1<=bill3)
32.        printf("%d\n",bill1);
33.    else if(bill2<=bill1&&bill2<=bill3)
34.        printf("%d\n",bill2);
35.    else if(bill3<=bill2&&bill3<=bill1)
36.        printf("%d\n",bill3);
37. 
38.    return 0;
39.}


Compiler output:
main.c:2:1: error: expected identifier or '(' before numeric constant
    2 | 2.
      | ^~
main.c:3:1: error: invalid suffix "int" on floating constant
    3 | 3.int main()
      | ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main () {
  int A, B, C, X, Y;
  cin >> A >> B >> C >> X >> Y;
  int af = A * X + B * Y;
  if (X > Y) {
    int bf = C * Y + A * (X - Y);
    int cf = C * X;
  }
  else {
    int bf = C * X + A * (Y - X);
    int cf = C * Y;
  }
  int ans = af;
  if (ans > bf) ans = bf;
  if (ans > cf) ans = cf;
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: 'bf' was not declared in this scope; did you mean 'af'?
   16 |   if (ans > bf) ans = bf;
      |             ^~
      |             af
a.cc:17:13: error: 'cf' was not declared in this scope; did you mean 'af'?
   17 |   if (ans > cf) ans = cf;
      |             ^~
      |             af
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
using namespace std;
const int INF = 1e9;
const long long LINF = 1e18;


int main(){
  int A,B,C,X,Y;
  cin >> A >> B >> C >> X >> Y;
  int ans = 0;
  map<int,int> T;
  T[X] = A;
  T[Y] = B;
  if(A+B <= 2C) ans = A*X + B*Y;
  else{
    ans = min(min(X,Y)*C + (max(X,Y) - min(X,Y))*T[max(X,Y)],max(X,Y)*C);
  }
  cout << ans << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: unable to find numeric literal operator 'operator""C'
   18 |   if(A+B <= 2C) ans = A*X + B*Y;
      |             ^~
Language: C

#include<stdio.h>

int max(int a,int b){
  if(a>b){
    return a;
  }
  else
    return b;
}

int main(){
  int i,j,k;
  int A,B,AB,nA,nB;
  scanf("%d %d %d %d %d",&A,&B,&AB,&nA,&nB);
  long ans=1000000000000000;
  long tmp;
  
  for(i=0;i<=100000;i++){
    tmp= i*2AB + max(nA-i,0)*A + max(nB-i,0)*B;
    if(tmp < ans)
      ans = tmp;
  }
  
  printf("%ld\n",ans);
  return 0;
}
    


Compiler output:
main.c: In function 'main':
main.c:19:12: error: invalid suffix "AB" on integer constant
   19 |     tmp= i*2AB + max(nA-i,0)*A + max(nB-i,0)*B;
      |            ^~~
Language: C

#include<stdio.h>

int max(int a,int b){
  if(a>b){
    return a;
  }
  else
    return b;
}

int main(){
  int i,j,k;
  int A,B,AB,nA,nB;
  scanf("%d %d %d %d %d",&A,&B,&AB,&nA,&nB);
  long ans=1000000000000000;
  long tmp;
  
  for(i=0;i<=100000;i++){
    tmp= i*2C + max(nA-i,0)*A + max(nB-i,0)*B;
    if(tmp < ans)
      ans = tmp;
  }
  
  printf("%ld\n",ans);
  return 0;
}
    

Compiler output:
main.c: In function 'main':
main.c:19:12: error: invalid suffix "C" on integer constant
   19 |     tmp= i*2C + max(nA-i,0)*A + max(nB-i,0)*B;
      |            ^~
Language: Java

import java.util.Scanner;

public class Try {

    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int a, b, c, x, y;
        a = sc.nextInt();
        b = sc.nextInt();
        c = sc.nextInt();
        x = sc.nextInt();
        y = sc.nextInt();
        long common = Math.min(x, y);
        long to = Math.min(a + b, 2 * c);
        long ans = to * common;
        x -= common;
        y -= common;
        ans += Math.min(x * a, x * 2 * c);
        ans += Math.min(y * b, y * 2 * c);
        System.out.print(ans);
    }
}


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

#include<iostream>

typedef long long ll;
using namespace std;

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

 ll min_sum = 1e9;
 for(ll m = 0; m <= min(X,Y); m++)
 { ll sum = (X-m)*A + (Y-m)*B + 2*m*C;
  min_sum = min(min_sum, sum);}
 
 cout << max_sum << endl;
 
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: 'max_sum' was not declared in this scope; did you mean 'min_sum'?
   14 |  cout << max_sum << endl;
      |          ^~~~~~~
      |          min_sum
Language: C++

#include <bits/stdc++.h>
using namespace std;
const ll INF = 1<<60;

typedef long long ll;

ll a, b, c;
int x, y;

int main(){
    cin >> a >> b >> c >> x >> y;

    ll res = INF;

    int n = max(x, y);
    for (int i = 0; i <= n+10; i+=2){
        ll cnt_a = 0; 
        ll cnt_b = 0; 
        ll cnt_c = 0;
        if (x - i >= 0) cnt_a = x-i;
        if (y - i >= 0) cnt_b = y-i;
        cnt_c = i*2;
        res = min(res, a*cnt_a + b*cnt_b + c*cnt_c);
    }
    
    cout << res << endl;
}

Compiler output:
a.cc:3:7: error: 'll' does not name a type
    3 | const ll INF = 1<<60;
      |       ^~
a.cc: In function 'int main()':
a.cc:13:14: error: 'INF' was not declared in this scope
   13 |     ll res = INF;
      |              ^~~
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int x = sc.nextInt();
        int y = sc.nextInt();
        int ans = 0;
        if(a + b <= c*2){
            ans = a*x + b*y;
        }else{
            if(x >= y){
                ans = Math.min(a*(x-y) + a*c*y, 2*c*x);
            }else{
                ans = Math.min(b(y-x) + a*c*x,2*c*y);
            }
        }
        System.out.println(ans);
    }
}


Compiler output:
Main.java:17: error: cannot find symbol
                ans = Math.min(b(y-x) + a*c*x,2*c*y);
                               ^
  symbol:   method b(int)
  location: class Main
1 error
Language: C++

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

int main(){
    int x, y, a, b, c, t;
    cin >> a >> b >> c >> x >> y;
    t = min(min(2*c*x+b*y*max(0,y-x), a*b*max(x-y)+2*c*x), a*x+b*y);
    cout << t;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:46: error: no matching function for call to 'max(int)'
    7 |     t = min(min(2*c*x+b*y*max(0,y-x), a*b*max(x-y)+2*c*x), a*x+b*y);
      |                                           ~~~^~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
a.cc:7:46: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    7 |     t = min(min(2*c*x+b*y*max(0,y-x), a*b*max(x-y)+2*c*x), a*x+b*y);
      |                                           ~~~^~~~~
/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 <vector>
#include <queue>
#include <stack>
#include <string>
#include <sstream>
#include <algorithm>
#include <cmath>

using namespace std;

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



int main(){
  cin.tie(0); ios::sync_with_stdio(false);    // Magic for faster cin

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

  if(2*C>=A+B){
    cout << A*X + B*Y << endl;
    return 0;
  } else {
    int N = (X>Y)?Y:X;
    cout << 2*N*C + (X>Y)?((X-Y)*A):((Y-X)*B) << endl;
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:47: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   27 |     cout << 2*N*C + (X>Y)?((X-Y)*A):((Y-X)*B) << endl;
      |                                     ~~~~~~~~~~^~~~~~~
Language: Java

import java.util.Scanner;
public class At95 {
	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		int a = Integer.parseInt(sc.next()); //Aの値段
		int b = Integer.parseInt(sc.next()); //Bの値段
		int c = Integer.parseInt(sc.next()); //ABの値段
		int d = Integer.parseInt(sc.next()); //Aの枚数
		int e = Integer.parseInt(sc.next()); //Bの枚数
		int ap =0;							//A買う枚数
		int bp =0;							//B買う枚数
		int cp = 0;							//C買う枚数
		if(2*c <= a && 2*c <= b){
			if(d<=e)cp =2*e;
			if(e<d)cp =2*d;
		}else if(2*c <= a){						//A一枚がAB二枚よりも高い場合
			cp =d*2;
			if(d<e)bp =e-d;
		}else if(2*c <= b){					//B一枚がAB二枚よりも高い場合
			cp =e*2;
			if(e<d)ap =d-e;
		}else if(a+b>2*c) {					//A+BがAB二枚よりも高い場合
			if(d>=e) {
				cp=2*e;
				ap=d-e;
			}else if(d<e){
				cp=2*d;
				bp=e-d;
			}
		}else{
			ap=d;
			bp=e;
		}
		System.out.println(ap*a+bp*b+cp*c); 
	}
}


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

import java.util.Scanner;
public class At95 {
	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		int a = Integer.parseInt(sc.next()); //Aの値段
		int b = Integer.parseInt(sc.next()); //Bの値段
		int c = Integer.parseInt(sc.next()); //ABの値段
		int d = Integer.parseInt(sc.next()); //Aの枚数
		int e = Integer.parseInt(sc.next()); //Bの枚数
		int ap =0;							//A買う枚数
		int bp =0;							//B買う枚数
		int cp = 0;							//C買う枚数
		if(2*c <= a && 2*c <= b){
			if(d<=e)cp =2*e;
			if(e<d)cp =2*d;
		}else if(2*c <= a){						//A一枚がAB二枚よりも高い場合
			cp =d*2;
			if(d<e)bp =e-d;
		}else if(2*c <= b){					//B一枚がAB二枚よりも高い場合
			cp =e*2;
			if(e<d)ap =d-e;
		}else if(a+b>2*c) {					//A+BがAB二枚よりも高い場合
			if(d>=e) {
				cp=2*e;
				ap=d-e;
			}else if(d<e){
				cp=2*d;
				bp=e-d;
			}
		}else{
			ap=d;
			bp=e;
		}
		System.out.println(ap*a+bp*b+cp*c); 
	}
}



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

import java.util.Scanner;

public class At95 {
	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		int a = Integer.parseInt(sc.next()); //Aの値段
		int b = Integer.parseInt(sc.next()); //Bの値段
		int c = Integer.parseInt(sc.next()); //ABの値段
		int d = Integer.parseInt(sc.next()); //Aの枚数
		int e = Integer.parseInt(sc.next()); //Bの枚数
		int ap =0;							//A買う枚数
		int bp =0;							//B買う枚数
		int cp = 0;							//C買う枚数
		if(2*c <= a||2*c <= b){
			if(d<=e)cp =2*e;
			if(e<d)cp =2*d;
		}else if(2*c <= a){						//A一枚がAB二枚よりも高い場合
			cp =d*2;
			if(d<e)bp =e-d;
		}else if(2*c <= b){					//B一枚がAB二枚よりも高い場合
			cp =e*2;
			if(e<d)ap =d-e;
		}else if(a+b>2*c) {					//A+BがAB二枚よりも高い場合
			if(d>=e) {
				cp=2*e;
				ap=d-e;
			}else if(d<e){
				cp=2*d;
				bp=e-d;
			}
		}else{
			ap=d;
			bp=e;
		}
		System.out.println(ap*a+bp*b+cp*c); 
	}
}

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

import java.util.Scanner;

public class At95 {
	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		int a = Integer.parseInt(sc.next()); //Aの値段
		int b = Integer.parseInt(sc.next()); //Bの値段
		int c = Integer.parseInt(sc.next()); //ABの値段
		int d = Integer.parseInt(sc.next()); //Aの枚数
		int e = Integer.parseInt(sc.next()); //Bの枚数
		int ap =0;							//A買う枚数
		int bp =0;							//B買う枚数
		int cp = 0;							//C買う枚数
		if(2*c <= a||2*c <= b){
			if(d<=e)cp =2*e;
			if(e<d)cp =2*d;
		}else if(2*c <= a){						//A一枚がAB二枚よりも高い場合
			cp =d*2;
			if(d<e)bp =e-d;
		}else if(2*c <= b){					//B一枚がAB二枚よりも高い場合
			cp =e*2;
			if(e<d)bp =d-e;
		}else if(a+b>2*c) {					//A+BがAB二枚よりも高い場合
			if(d>=e) {
				cp=2*e;
				ap=d-e;
			}else if(d<e){
				cp=2*d;
				bp=e-d;
			}
		}else{
			ap=d;
			bp=e;
		}
		System.out.println(ap*a+bp*b+cp*c); 
	}
}

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

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

#define repd(i,a,b); for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
#define ll long long int
 
 
using namespace std;
int main() {
 int a,b,c,x,y; cin >> a >> b >> c >> x >> y;
  if(a+b <= 2*c){
    cout << a*x+b*y;
  }
  
  if(x>y){
    if(2*c<a){
      cout << 2*c*x;
    } else {
      cout << 2*c*y+(x-y)*a;
    }
  } else {
    if(2*c<b){
      cout << 2*c*y;
    } else {
      cout << 2*c*x+(y-x)*b;
    }
 return 0;
}

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

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

int main(){
   int a,b,c,x,y;
   cin >> a >> b >> c >> x >> y;
   int min = 0;
   if(a+b >= 2*c){
       if(x > y and a < 2*c){
           min += 2*c*y;
           min += (x-y)*a;
       }else if(x > y and a > 2*c){
           min += 2*c*x;
       }else if(x < y and b > 2*c){
           min += 2*c*y;
       }else{
           min += 2*c*x;
           min += (y-x)*b;
       }
   }else{
       min = a*x + b*y;
   }
   cout << min << endl;
    
}

/*　知識まとめ

Compiler output:
a.cc:27:1: error: unterminated comment
   27 | /*　知識まとめ
      | ^
Language: C++

#include<algorithm>
#include<iostream>
#include<functional>
#include<cmath>
#include<iomanip>
using namespace std;
int main(){
  int a,b,c,x,y,,ans=1000000000,e;
  cin>>a>>b>>c>>x>>y;
  for(int i=0;i<=max(x,y);i++){
    e=c*2*i+a*max(0,x-i)+b*max(0,y-i);
    ans=min(ans,e);
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected unqualified-id before ',' token
    8 |   int a,b,c,x,y,,ans=1000000000,e;
      |                 ^
Language: Java

public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int ab = scanner.nextInt();
        int x = scanner.nextInt();
        int y = scanner.nextInt();

        int ans1 = a * x + b * y;
        int ans2 = x < y ? ab * x * 2 + b * (y - x) : ab * y * 2 + a * (x - y);
        int ans3 = ab * Math.max(x, y) * 2;


        Util.println(ans1, ans2, ans3);
        System.out.println(Math.min(Math.min(ans1, ans2), ans3));
    }
}

Compiler output:
Main.java:16: error: cannot find symbol
        Util.println(ans1, ans2, ans3);
        ^
  symbol:   variable Util
  location: class Main
1 error
Language: C++

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

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

    int ret=5000*100000;
    for(int i=0;i<=max(X,Y);i++){
        ret=min(ret,C*2*i+A*(max(X-i,0))+B*(max(0,Y-i)));
    }
    cout<<ret<<endl;
    }
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:37: error: expected '}' at end of input
   12 |       cout << Y*2*C+(X-Y)*A << endl;
      |                                     ^
a.cc:11:13: note: to match this '{'
   11 |     if(X>=Y){
      |             ^
a.cc:12:37: error: expected '}' at end of input
   12 |       cout << Y*2*C+(X-Y)*A << endl;
      |                                     ^
a.cc:10:7: note: to match this '{'
   10 |   else{
      |       ^
a.cc:12:37: error: expected '}' at end of input
   12 |       cout << Y*2*C+(X-Y)*A << endl;
      |                                     ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

//inlclude前用define 
#define _USE_MATH_DEFINES

//include
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
#include<cstdio>
#include<type_traits>
#include<numeric>
#include<limits>
#include<iomanip>
#include<set>

using namespace std;

//typedef
typedef vector<int> VI;
typedef vector<string> VS;
typedef vector<char> VC;

//define
#define INF 100000000
#define NUM 1000000007

int main() {
	long long int a, b, c, x, y;
	cin >> a >> b >> c >> x >> y;
	long long int ans;

	if (a+b<2*c) {
		ans = a * x + b * y;
	}else if (max(x, y) == x) {
		ans = min(c * 2 * y + a * (x - y), c * 2 * max(x, y););
	}else {
		ans = min(c * 2 * x + b * (y - x), c * 2 * max(x, y););
	}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:36:69: error: expected ')' before ';' token
   36 |                 ans = min(c * 2 * y + a * (x - y), c * 2 * max(x, y););
      |                          ~                                          ^
      |                                                                     )
a.cc:36:70: error: expected primary-expression before ')' token
   36 |                 ans = min(c * 2 * y + a * (x - y), c * 2 * max(x, y););
      |                                                                      ^
a.cc:38:69: error: expected ')' before ';' token
   38 |                 ans = min(c * 2 * x + b * (y - x), c * 2 * max(x, y););
      |                          ~                                          ^
      |                                                                     )
a.cc:38:70: error: expected primary-expression before ')' token
   38 |                 ans = min(c * 2 * x + b * (y - x), c * 2 * max(x, y););
      |                                                                      ^
Language: C++

import java.util.*;

public class Main {
  public static void main(String args[]) {
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      int x = sc.nextInt();
      int y = sc.nextInt();
      int sum = 0;
      
      if (a + b < c * 2) {
        sum = a * x + b * y;
      } else { 
        int set = 0;
        int xzan = 0;
        int yzan = 0;
        
        if(x > y) {
           if(c * 2 < a) {
            set = x;
           }
           else {
            set = y;
            xzan = x - y;   
           } 
        } else {
            if(c * 2 < b) {
                set = y;
            } else {
                set = x;
                yzan = y - x;   
            }
        }
        sum = (set * c * 2) + (xzan * a) + (yzan * b);
      }
      
      System.out.println(sum);
      
  }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <cmath>
#include <iostream>
#include <string>
#include <vector> 
#include <algorithm>
#include <numeric>

#define FOR(i,a,b) for(i=(a);i<(b);++i) 
#define REP(i,n) for(i=0;i<(n);++i)
#define ll long long

using namespace std;

long long GCD(long long a, long long b) {
	if (a < b)
		swap(a, b);
	if (b == 0) return a;
	else return GCD(b, a % b);
}

int main() {
	int A,B,C,X,Y,i,sum,ans=INT_MAX;
	cin >> A >> B >> C >> X >> Y;
	REP(i, min(X, Y)+1) {
		sum = C * 2 * i + A * max(0,(X - i)) + B * max(0,(Y - i));
		ans = min(sum, ans);
	}
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:33: error: 'INT_MAX' was not declared in this scope
   22 |         int A,B,C,X,Y,i,sum,ans=INT_MAX;
      |                                 ^~~~~~~
a.cc:7:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    6 | #include <numeric>
  +++ |+#include <climits>
    7 |
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#include <limits>

using namespace std;

int main()
{
	int A, B, C;
	int X, Y;

	cin >> A >> B >> C >> X >> Y;

	long long ans = LLONG_MAX;

	for (int i = 0; i < X + Y; i++) {
		long long sum = i * 2 * C;
		
		if (X - i > 0)
		{
			sum += A * (X - i);
		}

		if (Y - i > 0)
		{
			sum += B * (Y - i);
		}

		if (ans > sum)
		{
			ans = sum;
		}
	}

	cout << ans << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: 'LLONG_MAX' was not declared in this scope
   17 |         long long ans = LLONG_MAX;
      |                         ^~~~~~~~~
a.cc:6:1: note: 'LLONG_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    5 | #include <cmath>
  +++ |+#include <climits>
    6 | #include <limits>
Language: C++

#include "bits/stdc++.h" // 1
using namespace std; // 2
#define INF 0x3f3f3f3f    //3
#undef INF // 4
long long A, B, C, X, Y; // 5
　long long solve(){   //6
    return -1;} // 7
long long a, b, c, x, y; // 1
void solve2(){ // 2
    long long num=0;    //3
    long min_ = std::min(x, y); // 4
    c = min(2 * c, a + b); // 5
    } //6
int main() { // 7
    cin>>a>>b>>C>>X>>y; // 1
    #define INF 1000000007 // 2
    long long sum=0LL;    //3
    A = a; B = b; c = C; x = X; Y = y; // 4
    long ans = min({A * X + B * Y, max(X, Y) * 2 * C, min(X, Y) * 2 * C + abs(X - Y) * (X > Y ? A : B)}); // 5
    long long q = solve();solve2();   //6 
    #undef INF   // 7
    cout<<ans*q*solve(); // 1
    cout << endl; // 2
    int dx[8]={0,0,-1,1,1,1,-1,-1};    //3
    return 0;}
    

Compiler output:
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　long long solve(){   //6
      | ^
a.cc:6:1: error: '\U00003000long' does not name a type; did you mean 'ulong'?
    6 | 　long long solve(){   //6
      | ^~~~~~
      | ulong
a.cc: In function 'int main()':
a.cc:20:19: error: 'solve' was not declared in this scope; did you mean 'solve2'?
   20 |     long long q = solve();solve2();   //6
      |                   ^~~~~
      |                   solve2
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: unable to find numeric literal operator 'operator""c'
   11 |     if(a + b <= 2c){
      |                 ^~
Language: C++

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

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

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:7:12:   required from here
    7 |   cout<<min(a*x+b*y,(x-min(x,y))*a+(y-min(x,y))*b+2*c*min(x,y),max(x,y)*2*c)<<endl;
      |         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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

	if(a+b<c*2){
		while(x*y){
			x--,y--;
			val+=a+b;
		}
		if(x+y==0){;}
		else if((a*x+b*y)<(c*2)*(x>y?x:y)){
			val+=a*x+b*y;
		}
		else{
			val+=(c*2)*(x>y?x:y);
		}
	}
	else{
		while(x*y){
			x--,y--;
			val+=c*2;
		}
		if(x+y==0){;}
		else if((a*x+b*y)<(c*2)*(x>y?x:y)){
			val+=a*x+b*y;
		}
		else{
			val+=(c*2)*(x>y?x:y);
		}
	}

Compiler output:
main.c:1:9: error: expected identifier or '(' before 'if'
    1 |         if(a+b<c*2){
      |         ^~
main.c:14:9: error: expected identifier or '(' before 'else'
   14 |         else{
      |         ^~~~
Language: C

#include <stdio.h>

int main(void) {
	int a,b,c,x,y;
	long int val=0;
	scanf("%d%d%d%d%d",&a,&b,&c,&x,&y);
	if(a+b<c*2){
		while(x*y){
			x--,y--;
			val+=a+b;
		}
		if(x+y==0);
		else if((a*x+b*y)<(c*2)*(x>y?x:y)){
			val+=a*x+b*y;
		}
		else{
			val+=(c*2)*(x>y?x:y);
		}
	}
	else{
		while(x*y){
			x--,y--;
			val+=c*2;
		}
		if(x+y==0);
		else if((a*x+b*y)<(c*2)*(x>y?x:y)){
			val+=a*x+b*y;
		}
		else{
			val+=(c*2)*(x>y?x:y);
		}
	printf("%ld",val);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:34:1: error: expected declaration or statement at end of input
   34 | }
      | ^
Language: C++

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


int main(){
  int a,b,c,x,y,i,m,ans=0,ans_max=0,res,res_pay;

  std::cin >> a>>b>>c>>x>>y;

  int x_0=x;
  int y_0=y;

  if(2*c<=a+b){
    m=max(x,y)
    for(i=0;i<m;i++){
      ans_max=ans_max+(c*2);
    }
    m=min(x,y);
    for(i=0;i<m;i++){
      ans=ans+(c*2);
      x=x-1;
      y=y-1;
    }
    if(x>y){
       res=x;
       std::cout << res << '\n';
       res_pay=a;
     }

    else if(x<y) {
      res=y;
      res_pay=b;
    }

    for(i=0;i<res;i++){
      ans=ans+res_pay;
    }

    if(ans_max<ans){
      ans=ans_max;
    }
  }

  else{
    for(i=0;i<x_0;i++){
      ans=ans+a;
    }
    for(i=0;i<y_0;i++){
      ans=ans+b;
    }
  }

  std::cout << ans << '\n';


return 0;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: expected ';' before 'for'
   17 |     m=max(x,y)
      |               ^
      |               ;
   18 |     for(i=0;i<m;i++){
      |     ~~~        
a.cc:18:20: error: expected ';' before ')' token
   18 |     for(i=0;i<m;i++){
      |                    ^
      |                    ;
Language: C++

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

int max(int a, int b)
{
    if (a >= b){
        return a;
    }
    else {
        return b;
    }
}

int min(int a, int b, int c) 
{
    if (a <= b) {
        if (a <= c){
            return a;
        }
        else {
            return c;
        }
    }
    else {
        if (b <= c) {
            return b;
        }
        else {
            return c;
        }
    }
}

int main()
{
    int a, b, c, x, y;
    cin >> a >> b >> c >> x >> y;
    long long ans_1, ans_2, ans_3, ans;
    int z;

    ans_1 = a*x+b*y;
    ans_2 = 2*c*max(x,y);

    if (min(x,y,100000) == x) {
        z = b;
    }
    else {
        z = a;
    }
    ans_3 = 2*c*min(x,y,100000) + z*(max(x,y)-min(x,y,100000));

    ans = min(ans_1,ans_2,ans_3);

    cout << ans << endl;

    return 0;
}

Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = long long int; _Compare = long long int]':
a.cc:56:14:   required from here
   56 |     ans = min(ans_1,ans_2,ans_3);
      |           ~~~^~~~~~~~~~~~~~~~~~~
/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<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
	int a,b,c,x,y;
	cin>>a>>b>>c>>x>>y;
	int u=max(x,y);
	long int ans=1145141919810364;
	for(int i=0;i<=u;i++){
		ans=min(ans,(2*c*i+a*max(x-i,0)+b*max(y-i,0)));
	}
	cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: no matching function for call to 'min(long int&, int)'
   12 |                 ans=min(ans,(2*c*i+a*max(x-i,0)+b*max(y-i,0)));
      |                     ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:12:24: note:   deduced conflicting types for parameter 'const _Tp' ('long int' and 'int')
   12 |                 ans=min(ans,(2*c*i+a*max(x-i,0)+b*max(y-i,0)));
      |                     ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:4:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:12:24: note:   mismatched types 'std::initializer_list<_Tp>' and 'long int'
   12 |                 ans=min(ans,(2*c*i+a*max(x-i,0)+b*max(y-i,0)));
      |                     ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
	int a,b,c,x,y;
	cin>>a>>b>>c>>x>>y;
	int u=max(x,y);
	int ans=100000000
	for(int i=0;i<=u;i++){
		ans=min(ans,(2*c*i+a*max(x-i,0)+b*max(y-i,0)));
	}
	cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ',' or ';' before 'for'
   11 |         for(int i=0;i<=u;i++){
      |         ^~~
a.cc:11:21: error: 'i' was not declared in this scope
   11 |         for(int i=0;i<=u;i++){
      |                     ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	long long a, b, c, x, y, ans = 0;
	cin >> a >> b >> c >> x >> y;
	if(a + b > c * 2 && a < 2*c && b < 2*c)){
		if(x > y){
			ans = y * c * 2 + (x - y) * a;
		}else if(x < y){
			ans = x * c * 2 + (y - x) * b;
		}else{
			ans = y * c * 2;
		}
	}else if(a > 2*c && b > 2*c){
		ans = max(x, y) * 2 * c;
	}else{
		ans = x * a + y * b;
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:48: error: expected primary-expression before ')' token
    7 |         if(a + b > c * 2 && a < 2*c && b < 2*c)){
      |                                                ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	long long a, b, c, x, y, ans = 0;
	cin >> a >> b >> c >> x >> y;
	if(a + b > c * 2){
		if(x > y){
			ans = y * c * 2 + (x - y) * a;
		}else if(x < y){
			ans = x * c * 2 + (y - x) * b;
		}else{
			ans = x * c * 2;
		}
	}else if(a > 2*c && b > 2*c){
		ans = (x + y) * 2 * c
	}else{
		ans = x * a + y * b;
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:38: error: expected ';' before '}' token
   16 |                 ans = (x + y) * 2 * c
      |                                      ^
      |                                      ;
   17 |         }else{
      |         ~
Language: C++

#include <iostream>
using namespace std;

int main() {
	long long a, b, c, x, y, ans = 0;
	cin >> a >> b >> c >> x >> y;
	if(a + b > c * 2){
		if(x > y){
			ans = y * c * 2 + (x - y) * a;
		}else if(x < y){
			ans = x * c * 2 + (y - x) * b;
		}else{
			ans = x * c * 2;
		}
	}else{
		ans = x * a + y * b
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:36: error: expected ';' before '}' token
   16 |                 ans = x * a + y * b
      |                                    ^
      |                                    ;
   17 |         }
      |         ~
Language: C++

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

	int a,b,c,x,y,min;

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

	if (a + b >= c * 2) {
		if (x <= y) {
			if (b <= c * 2) {
				min = c * x * 2 + (y - x)*b;
			}
			else {
				min = c * x * 2 + (y - x)*c * 2;
			}
		}
		else if {
			if (a <= c * 2) {
				min = c * y * 2 + (x - y)*a;
			}
			else {
				min = c * y * 2 + (x - y)*c * 2;
			}
		}
	}

	if (a + b < c * 2) {
		min = a * x + b * y;
	}

	printf("%d\n", min);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: expected '(' before '{' token
   17 |                 else if {
      |                         ^
      |                         (
Language: C++

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

	int a,b,c,x,y,min;

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

	if (a + b >= c * 2) {
		if (x <= y) {
			if (b <= c * 2) {
				min = c * x * 2 + (y - x)*b;
			}
			else {
				min = c * x * 2 + (y - x)*c * 2;
			}
		}
		else {
			if (a <= c * 2) {
				min = c * y * 2 + (x - y)*a;
			}
			else {
				min = c * y * 2 + (x - y)*c * 2;
			}
		}
	}

	if (a + b < c * 2) {
		min = a * x + b * y;
	}

	printf("%d\n", min);

	return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:33:18: error: expected '}' at end of input
   33 |         return 0;
      |                  ^
a.cc:2:16: note: to match this '{'
    2 | int main(void) {
      |                ^