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

package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	scanner.Split(bufio.ScanWords)
	
	A := ScanInt(scanner)
	B := ScanInt(scanner)
	C := ScanInt(scanner)
	X := ScanInt(scanner)
	Y := ScanInt(scanner)
	
	if (A + B < 2 * C) {
	    fmt.Println(A * X + B * Y)
	} else {
	    max := Max(X, Y)
	    min := Min(X, Y)
	    
	    ans := 2 * C * min
	    
	    max -= min
	    if max > 0 {
	        if min == A {
	            if B < 2 * C {
	                ans += B * max
	            } else {
	                ans += 2 * C * max
	            }
	        } else {
	            if A < 2 * C {
	                ans += A * max
	            } else {
	                ans += 2 * C * max
	            }
	        }
	    }
	    fmt.Println(ans)
	}
}

func ScanInt(scanner *bufio.Scanner) int {
	scanner.Scan()
	i, e := strconv.Atoi(scanner.Text())
	if e != nil {
		panic(e)
	}
	return i
}

func ScanFloat64(scanner *bufio.Scanner) float64 {
	scanner.Scan()
	f, e := strconv.ParseFloat(scanner.Text(), 64)
	if e != nil {
		panic(e)
	}
	return f
}

func ScanText(scanner *bufio.Scanner) string {
	scanner.Scan()
	return scanner.Text()
}

func Max(a, b int) int {
	if a < b {
		return b
	}
	return a
}

func Min(a, b int) int {
	if a > b {
		return b
	}
	return a
}

func Abs(a int) int {
	if a < 0 {
		a *= -1
	}
	return a
}

Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
a.cc:48:1: error: 'func' does not name a type
   48 | func ScanInt(scanner *bufio.Scanner) int {
      | ^~~~
a.cc:57:1: error: 'func' does not name a type
   57 | func ScanFloat64(scanner *bufio.Scanner) float64 {
      | ^~~~
a.cc:66:1: error: 'func' does not name a type
   66 | func ScanText(scanner *bufio.Scanner) string {
      | ^~~~
a.cc:71:1: error: 'func' does not name a type
   71 | func Max(a, b int) int {
      | ^~~~
a.cc:78:1: error: 'func' does not name a type
   78 | func Min(a, b int) int {
      | ^~~~
a.cc:85:1: error: 'func' does not name a type
   85 | func Abs(a int) int {
      | ^~~~
Language: C

#include<stdio.h>
int main()
{
	int A, B, C, X, Y,sum;
	
scanf("%d%d%d%d%d", &A, &B, &C, &X, &Y);
		if (A >= 1 && B >= 1 && C >= 1 && A <= 5000 && B <= 5000 && C <= 5000 && X >= 1 && Y >= 1 && X <= 10 ^ 5 && Y < 10 ^ 5)
			break;
	}

	if (X >= Y)
	{
		if ((A*X + B*Y) >= (2 * Y*C + (X - Y)*A))
			sum = (2 * Y*C + (X - Y)*A);
		else
			sum = A*X + B*Y;
	}
	else
	{
		if ((A*X + B*Y) >= (2 * Y*C + B*(Y - X)))
			sum = (2 * Y*C + B*(Y - X));
		else
			sum = A*X + B*Y;
	
	printf("%d\n", sum);
	
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:25: error: break statement not within loop or switch
    8 |                         break;
      |                         ^~~~~
main.c: At top level:
main.c:11:9: error: expected identifier or '(' before 'if'
   11 |         if (X >= Y)
      |         ^~
main.c:18:9: error: expected identifier or '(' before 'else'
   18 |         else
      |         ^~~~
Language: C

#include<stdio.h>
void main()
{
	int A, B, C, X, Y,sum;
	
	while (1)
	{scanf_s("%d%d%d%d%d", &A, &B, &C, &X, &Y);
		if (A >= 1 && B >= 1 && C >= 1 && A <= 5000 && B <= 5000 && C <= 5000 && X >= 1 && Y >= 1 && X <= 10 ^ 5 && Y < 10 ^ 5)
			break;
	}

	if (X >= Y)
	{
		if ((A*X + B*Y) >= (2 * Y*C + (X - Y)*A))
			sum = (2 * Y*C + (X - Y)*A);
		else
			sum = A*X + B*Y;
	}
	else
	{
		if ((A*X + B*Y) >= (2 * Y*C + B*(Y - X)))
			sum = (2 * Y*C + B*(Y - X));
		else
			sum = A*X + B*Y;
	}
	printf("%d\n", sum);
	system("pause");

}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{long long  a,b,c,x,y,ans;
    scanf("%d %d %d %d %d",&a,&b,&c,&x,&y);
    ans=max(x,y)*2*c;
    ans=min(ans,min(x,y)*2*c+(y>x?(y-x)*b:(x-y)*a));
    ans=min(ans,a*x+b*y);
    cout<<ans;
    return 0;
}

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

#include<stdio.h>
int main()
{
int A,B,C,X,Y,z=0,p=0;
while(1)
{
scanf_s("%d %d %d %d %d",&A,&B,&C,&X,&Y);
if(A>=1&&B>=1&&C>=1&&A<=5000&&B<=5000&&C<=5000&&X>=1&&Y>=1&&X<=10^5&&Y<=10^5)
break;
}
if(2*C>(X+Y))
{
z=X*A+Y*B;
printf("%d",z);
}

else if((X+Y)>2*C)
{
if(X>Y)
{
z=(X-Y)*A;
p=2*C*Y;
printf("%d",z+p);
}

if(Y>X)
{
z=(Y-X)*B;
p=2*C*X;
printf("%d",z+p);
}

if(X==Y)
{
p=2*C*X;
printf("%d",z+p);
}
}

else if(2*C==(X+Y))
{
z=(X+Y)*C;
printf("%d",z+p);
}

return 0;
}




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

#include<stdio.h>
int main()
{
int A,B,C,X,Y,z=0,p=0;
while(1)
{
scanf("%d %d %d %d %d",&A,&B,&C,&X,&Y);
if(A>=1&&B>=1&&C>=1&&A<=5000&&B<=5000&&C<=5000&&X>=1&&Y>=1&&X<=100000&&Y<=100000)
break;
}
if(2*C>(X+Y))
{
z=X*A+Y*B;
printf("%d",z);
}

if((X+Y)>2*C)
{
if(X>Y)
{
z=(X-Y)*A;
p=2*C*Y;
}

if(Y>X)
{
z=(Y-X)*B;
p=2*C*X;
}

if(X==Y)
{
p=2*C*X;
}

printf("%d",a);
}

if(2*C==(X+Y))
{
a=(X+Y)*C;
printf("%d",a);
}

return 0;
}



Compiler output:
main.c: In function 'main':
main.c:36:13: error: 'a' undeclared (first use in this function)
   36 | printf("%d",a);
      |             ^
main.c:36:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main()
{
int A,B,C,X,Y,z=0,p=0;
while(1)
{
scanf("%d %d %d %d %d",&A,&B,&C,&X,&Y);
if(A>=1&&B>=1&&C>=1&&A<=5000&&B<=5000&&C<=5000&&X>=1&&Y>=1&&X<=100000&&Y<=100000)
break;
}
if(2*C>(X+Y)
{
z=X*A+Y*B;
printf("%d",z);
}
if(X+Y>2*C)
{
if(X>Y)
{
z=(X-Y)*A;
p=2*C*Y;
}
if(Y>X)
{
z=(Y-X)*B;
p=2*C*X;
}
if(X==Y)
{
p=C*(X+Y);
}
int a=z+p;
printf("%d",a);
}
return 0;
}



Compiler output:
main.c: In function 'main':
main.c:11:13: error: expected ')' before '{' token
   11 | if(2*C>(X+Y)
      |   ~         ^
      |             )
   12 | {
      | ~            
main.c:36:1: error: expected expression before '}' token
   36 | }
      | ^
Language: C

#include<stdio.h>
int main()
{
int A,B,C,X,Y;//X代表A需要的个数 Y为B的个数
scanf("%d %d %d %d %d",&A,&B,&C,&X,&Y);//输入A
inr zz;
int z=0;//多出的
if(X>Y)
{
z=(X-Y)*A;
zz=2*C*Y;
}
else if(Y>X)
{
z=(Y-X)*B;
zz=2*C*X;
}
else
zz=2*C*X;
printf("%d",z+zz);
return 0;
}




Compiler output:
main.c: In function 'main':
main.c:6:1: error: unknown type name 'inr'; did you mean 'int'?
    6 | inr zz;
      | ^~~
      | int
Language: C

#include<stdio.h>
int main()
{
int A,B,C,X,Y;//X代表A需要的个数 Y为B的个数
scanf("%d %d %d %d",&A,&B,&C,&X,&Y);//输入A
inr zz;
int z=0;//多出的
if(X>Y)
{
z=(X-Y)*A;
zz=2*C*Y;
}
else if(Y>X)
{
z=(Y-X)*B;
zz=2*C*X;
}
else
zz=2*C*X;
printf("%d",z+zz);
return 0;
}




Compiler output:
main.c: In function 'main':
main.c:6:1: error: unknown type name 'inr'; did you mean 'int'?
    6 | inr zz;
      | ^~~
      | int
Language: C

#include<stdio.h>
int main()
{
int A,B,C,X,Y;//X代表A需要的个数 Y为B的个数
scanf("%d %d %d %d",&A,&B,&C,&X,&Y);//输入A
inr zz;
int z=0;//多出的
if(X>Y)
{
z=(X-Y)*A;
zz=2*AB*C;
}
else if(Y>X)
{
z=(Y-X)*B;
zz=2*AB*C;
}
else
zz=2*AB*C;
printf("%d",z+zz);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:1: error: unknown type name 'inr'; did you mean 'int'?
    6 | inr zz;
      | ^~~
      | int
main.c:11:6: error: 'AB' undeclared (first use in this function); did you mean 'B'?
   11 | zz=2*AB*C;
      |      ^~
      |      B
main.c:11:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>

using namespace stdl;

int main()
{
	int a,b,c,x,y;

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

	int i,min;
	if(a+b > c*2) min=c*2;
	else min=a+b;


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

	cout << ad << endl;

	return 0;
}

Compiler output:
a.cc:3:17: error: 'stdl' is not a namespace-name
    3 | using namespace stdl;
      |                 ^~~~
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 >> b >> c >> x >> y;
      |         ^~~
      |         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:42:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   42 |                 cout << min*x << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:42:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   42 |                 cout << min*x << endl;
      |                                  ^~~~
      |                                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:46:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   46 |         cout << ad << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:46:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   46 |         cout << ad << endl;
      |                       ^~~~
      |                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include<algorithm>
#include<math.h>
#include<set>
#include<vector>
using namespace std;
int main(){
int A,B,C,X,Y;
cin>>A>>B>>C>>X>>Y;
int s,t,u;
s = A*X+B*Y;
t = C*max(X,Y)*2;
if(X>=Y)u= C*Y*2+a*(X-Y);
else u= C*X*2+b*(Y-X);
cout<<min(min(s,t),u)<<endl;
}






Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: 'a' was not declared in this scope
   13 | if(X>=Y)u= C*Y*2+a*(X-Y);
      |                  ^
a.cc:14:15: error: 'b' was not declared in this scope
   14 | else u= C*X*2+b*(Y-X);
      |               ^
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
using namespace std;
 
int main(){
    cin.tie(0);
	ios::sync_with_stdio(false);

    int a,b,ab,x,y,flag = 0,ans = 0;
	cin >> a >> b >> ab >> x >> y;
 
	if((a + b) >= c*2) flag = 1;
	
	int tmp;
 
	if(flag == 1){
		if(x < y && ab > b){
			tmp = y - x;
			ans = ab * x * 2;
			ans += b * tmp;
		}
		if(x > y && ab > a){
			tmp = x - y;
			ans = ab * y * 2;
			ans += a * tmp;
		}
		if(x < y && ab <= b){
			ans = ab * y * 2;
		}
		if(x > y && ab <= a){
			ans = ab * x * 2;
		}
		if(x == y){
			ans = ab * x * 2;
		}
	}
 
	if(flag == 0){
		ans = a * x + b * y;
	}
 
	cout << ans << endl;
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: 'c' was not declared in this scope
   12 |         if((a + b) >= c*2) flag = 1;
      |                       ^
Language: C

#include<stdio.h>

int main()
{
    int a,b,c,x,y,sum;
    scanf("%d%d%d%d%d",&a,&b,&c,&x,&y);
    if((a>=1 && a<=5000) && (b>=1 && b<=5000) && (c>=1 && c<=5000) && (x>=1 && x<=100000) && (y>=1 && y<=100000)){
        if((c>a && c<b) && (a+b)/2>c){
            if(x>=y){
                sum=(2*y*c)+(x-y)*a;
            }
            else{
                sum=(2*x*c)+(y-x)*b;
            }
        }
        else if((c>a && c<b) && (a+b)/2<c){
            sum=(a*x)+(b*y);

        }
        else if(c<a && c<b){
            if(x<=y){
                sum=(2*y)*c;
            }
            else{
                sum=(2*x)*c;
            }
        }
        else if((c>a && c>b) && (2c>a+b)){
            sum=(a*x)+(b*y);
        }
        else if((c>a && c>b) && (2c<a+b)){
            if(x>=y){
                sum=(2*y*c)+(x-y)*a;
            }
            else{
                sum=(2*x*c)+(y-x)*b;
            }
        }
        printf("%d\n",sum);
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:28:34: error: invalid suffix "c" on integer constant
   28 |         else if((c>a && c>b) && (2c>a+b)){
      |                                  ^~
main.c:31:34: error: invalid suffix "c" on integer constant
   31 |         else if((c>a && c>b) && (2c<a+b)){
      |                                  ^~
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int A = scanner.nextInt();
    int B = scanner.nextInt();
    int C = scanner.nextInt();
    int X = scanner.nextInt();
    int Y = scanner.nextInt();
    int ans = 1000000;

    for (int i = 0; i <= Math.max(X, Y); i++){
      cost = i * 2 * C + A * Math.max(0, X - i) + B * Math.max(0, Y - i);
      ans = Math.min(ans, cost);
    }
    System.out.println(ans);
  }
}

Compiler output:
Main.java:14: error: cannot find symbol
      cost = i * 2 * C + A * Math.max(0, X - i) + B * Math.max(0, Y - i);
      ^
  symbol:   variable cost
  location: class Main
Main.java:15: error: cannot find symbol
      ans = Math.min(ans, cost);
                          ^
  symbol:   variable cost
  location: class Main
2 errors
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 price1 = 0;
		int price2 = 0;
		int price3 = 0;
		int price = 0;
		
		if(X > Y){
			price1 += C * Y * 2;
			X -= Y;
			price1 += X * A;
			price3 = C * X;
		}else{
			price1 += C * X * 2;
			Y -= Y;
			price1 += Y * B;
			price3 = C * Y;
		}
		price2 = X * A + Y * B;
		
		price = min(price1, price2);
		price = min(price, price3);
		
		System.out.println(price);
	}
}


Compiler output:
Main.java:29: error: cannot find symbol
		price = min(price1, price2);
		        ^
  symbol:   method min(int,int)
  location: class Main
Main.java:30: error: cannot find symbol
		price = min(price, price3);
		        ^
  symbol:   method min(int,int)
  location: class Main
2 errors
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 price1 = 0;
		int price2 = 0;
		int price3 = 0;
		int price = 0;
		
		if(X > Y){
			price1 += C * Y * 2;
			X -= Y;
			price1 += X * A;
			price3 = C * X;
		}else{
			price1 += C * X * 2;
			Y -= Y;
			price1 += Y * B;
			price3 = C * Y;
		}
		price2 = X * A + Y * B;
		
		price = min(price1, price2);
		price = min(price, price3)
		
		System.out.println(price);
	}
}


Compiler output:
Main.java:30: error: ';' expected
		price = min(price, price3)
		                          ^
1 error
Language: C++

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

int main(){
  int A,B,C,X,Y,val=0;
  cin>>A>>B>>C>>X>>Y;
  val = min(A+B,2*C) * min(X,Y);
  if(X>Y){
    val += ((X-Y) * min(A,2*C));
  }else{
    val += ()(Y-X) * min(B,2*C));
  }
  cout<<val;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: expected primary-expression before ')' token
   13 |     val += ()(Y-X) * min(B,2*C));
      |             ^
Language: C

#include<stdio.h>
int main(){
 int a,b,c,needa,needb,money=0,minneed;
 scanf("%d %d %d %d %d",&a,&b,&c,&needa,&needb);
 if(2*c<(a+b)){
       minneed=(needa>needb)?(needb:needa);
       needa-=minneed;
      needb-=minneed;
      money+=minneed*c
        
  }
if(needa>0){
           if(2*c<a){
                  money+=2*c*needa;
              }
            else{
               money+=a*needa;
             }
needa=0;
  }
if(needb>0){
           if(2*c<b){
                  money+=2*c*needb;
              }
            else{
               money+=b*needb;
             }
  }
printf("%d",money);
 return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:36: error: expected ')' before ':' token
    6 |        minneed=(needa>needb)?(needb:needa);
      |                              ~     ^
      |                                    )
main.c:6:43: error: expected ':' before ';' token
    6 |        minneed=(needa>needb)?(needb:needa);
      |                                           ^
      |                                           :
main.c:9:23: error: expected ';' before '}' token
    9 |       money+=minneed*c
      |                       ^
      |                       ;
   10 | 
   11 |   }
      |   ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> a >> b >> c >> x >> y;
      |   ^~~
a.cc:4:34: error: 'max' was not declared in this scope
    4 |   int ans = min(a*x+b*y, min(2*c*max(x, y), 2*c*min(x,y) + (x>y?(x-y)*a:(y-x)*b)));
      |                                  ^~~
a.cc:4:49: error: 'min' was not declared in this scope; did you mean 'main'?
    4 |   int ans = min(a*x+b*y, min(2*c*max(x, y), 2*c*min(x,y) + (x>y?(x-y)*a:(y-x)*b)));
      |                                                 ^~~
      |                                                 main
a.cc:4:26: error: 'min' was not declared in this scope; did you mean 'main'?
    4 |   int ans = min(a*x+b*y, min(2*c*max(x, y), 2*c*min(x,y) + (x>y?(x-y)*a:(y-x)*b)));
      |                          ^~~
      |                          main
a.cc:4:13: error: 'min' was not declared in this scope; did you mean 'main'?
    4 |   int ans = min(a*x+b*y, min(2*c*max(x, y), 2*c*min(x,y) + (x>y?(x-y)*a:(y-x)*b)));
      |             ^~~
      |             main
a.cc:5:3: error: 'cout' was not declared in this scope
    5 |   cout <<  ans << endl;
      |   ^~~~
a.cc:5:19: error: 'endl' was not declared in this scope
    5 |   cout <<  ans << endl;
      |                   ^~~~
Language: C

#include <stdio.h>
#define MIN(x,y) x<y?x:y

int main(){
	long int A,B,C,X,Y;
	scanf("%ld %ld %ld %ld %ld",&A,&B,&C,&X,&Y);
	long int ans=MIN(X, Y)*MIN(2*C, A+B)+A*(X-MIN(X,Y))+B*(Y-MIN(X,Y)));
	printf("%ld",ans);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:75: error: expected ',' or ';' before ')' token
    7 |         long int ans=MIN(X, Y)*MIN(2*C, A+B)+A*(X-MIN(X,Y))+B*(Y-MIN(X,Y)));
      |                                                                           ^
Language: C

#include <stdio.h>
#define MIN(x,y) x<y?x:y

int main(){
	long int A,B,C,X,Y;
	scanf("%ld %ld %ld %ld %ld",&A,&B,&C,&X,&Y);
	long int ans=MIN(X, Y)*MIN(2C, A+B)+A*(X-MIN(X,Y))+B*(Y-MIN(X,Y)));
	printf("%ld",ans);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:36: error: invalid suffix "C" on integer constant
    7 |         long int ans=MIN(X, Y)*MIN(2C, A+B)+A*(X-MIN(X,Y))+B*(Y-MIN(X,Y)));
      |                                    ^~
main.c:2:18: note: in definition of macro 'MIN'
    2 | #define MIN(x,y) x<y?x:y
      |                  ^
main.c:7:36: error: invalid suffix "C" on integer constant
    7 |         long int ans=MIN(X, Y)*MIN(2C, A+B)+A*(X-MIN(X,Y))+B*(Y-MIN(X,Y)));
      |                                    ^~
main.c:2:22: note: in definition of macro 'MIN'
    2 | #define MIN(x,y) x<y?x:y
      |                      ^
main.c:7:74: error: expected ',' or ';' before ')' token
    7 |         long int ans=MIN(X, Y)*MIN(2C, A+B)+A*(X-MIN(X,Y))+B*(Y-MIN(X,Y)));
      |                                                                          ^
Language: C++

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

int a,b,c,x,y;
int main(){
  cin >> a >> b >> c >> x >> y;
  int mini = INT_MAX;
  for(int i=0;i<=100000;i++){
    mini = min(mini, 2 * t * c + max(0, x-t) * a + max(0, y-t) * b);
  }
  cout << mini << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: 't' was not declared in this scope
    9 |     mini = min(mini, 2 * t * c + max(0, x-t) * a + max(0, y-t) * b);
      |                          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
long long ans[5];
int main(){ 
long long a,b,c,x,y,min_xy,max_xy;
cin>>a>>b>>c>>x>>y;
min_xy=min(x,y);
max_xy=max(x,y);
ans[0]=a*x+b*y;
if(x>y) ans[1]=2*x*c+(x-y)*a;
else if(x<y)ans[1]=2*x*c+(y-x)*b;
else a[1]=1000000000009;
ans[2]=2*max_xy*c;
sort(ans,ans+3);
cout<<ans[0]<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: invalid types 'long long int[int]' for array subscript
   12 | else a[1]=1000000000009;
      |       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int ans[5];
int main(){ 
int a,b,c,x,y,min_xy,max_xy;
cin>>a>>b>>c>>x>>y;
min_xy=min(x,y);
max_xy=max(x,y);
ans[0]=a*x+b*y;
if(x>y) ans[1]=2*x*c+(x-y)*a;
else if(x<y)ans[1]=2*x*c+(y-x)*b;
else a[1]=1000000009;
ans[2]=2*max_xy*c;
sort(ans,ans+3);
cout<<ans[0]<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: invalid types 'int[int]' for array subscript
   12 | else a[1]=1000000009;
      |       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a[5];
int main(){ 
int a,b,c,x,y,min_xy,max_xy;
cin>>a>>b>>c>>x>>y;
min_xy=min(x,y);
max_xy=max(x,y);
a[0]=ax+by;
a[1]=2*min_xy*c+abs(x-y)*a;
a[2]=2*max_xy*c;
sort(a,a+n);
cout<<a[0]<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:2: error: invalid types 'int[int]' for array subscript
    9 | a[0]=ax+by;
      |  ^
a.cc:9:6: error: 'ax' was not declared in this scope; did you mean 'x'?
    9 | a[0]=ax+by;
      |      ^~
      |      x
a.cc:9:9: error: 'by' was not declared in this scope; did you mean 'y'?
    9 | a[0]=ax+by;
      |         ^~
      |         y
a.cc:10:2: error: invalid types 'int[int]' for array subscript
   10 | a[1]=2*min_xy*c+abs(x-y)*a;
      |  ^
a.cc:11:2: error: invalid types 'int[int]' for array subscript
   11 | a[2]=2*max_xy*c;
      |  ^
a.cc:12:10: error: 'n' was not declared in this scope
   12 | sort(a,a+n);
      |          ^
a.cc:13:8: error: invalid types 'int[int]' for array subscript
   13 | cout<<a[0]<<endl;
      |        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a[5]
int main(){ 
int a,b,c,x,y,min_xy,max_xy;
cin>>a>>b>>c>>x>>y;
min_xy=min(x,y);
max_xy=max(x,y);
a[0]=ax+by;
a[1]=2*min_xy*c+abs(x,y)*a;
a[2]=2*max_xy*c;
sort(a,a+n);
cout<<a[0]<<endl;
	return 0;
}

Compiler output:
a.cc:4:1: error: expected initializer before 'int'
    4 | int main(){
      | ^~~
Language: C++

#include<iostream>
using namespace std;



int main (){
	int a,b,c,x,y;
	int ans=0;


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

	ans = min (c*y*2 + min(2*c,a)*(x-y),min(c*2*x + min(2 * c,b) * (y-x)),a*x+b*y);



	cout << ans << endl;


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:48: error: no matching function for call to 'min(int)'
   24 |         ans = min (c*y*2 + min(2*c,a)*(x-y),min(c*2*x + min(2 * c,b) * (y-x)),a*x+b*y);
      |                                             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:   candidate expects 2 arguments, 1 provided
/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, 1 provided
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int aPrice = sc.nextInt();
		int bPrice = sc.nextInt();
		int abPrice = sc.nextInt();
		int aPizzaCnt = sc.nextInt();
		int bPizzaCnt = sc.nextInt();
		sc.close();
		int abPizzaCnt = (aPizzaCnt > bPizzaCnt)? aPizzaCnt*2:bPizzaCnt*2;
		int defaultPrice = (aPrice*aPizzaCnt) + (bPrice*bPizzaCnt);
		int gattaiPrice = abPizzaCnt * abPrice;
		int sabunPrice = (((aPizzaCnt > bPizzaCnt)? bPizzaCnt*2:aPizzaCnt*2) * abPrice)
				+ ((aPizzaCnt > bPizzaCnt)? (aPizzaCnt-bPizzaCnt)*aPrice:
					(bPizzaCnt-aPizzaCnt)*bPrice);
		if(gattaiPrice > sabunPrice) gattaiPrice = sabunPrice;
		System.out.println((defaultPrice > gattaiPrice)?gattaiPrice:defaultPrice);
	}

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

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main()
{
    int A, B, C, X, Y, money;
    scanf("%d %d %d %d %d", &A, &B, &C, &X, &Y);

    if((A+B)<=2*AB){
        money=A*X+B*Y;
    }
    if((A+B)>2*AB){
        if(X>Y){
            money=AB*Y*2+(X-Y);
        }
        else{
            money=AB*X*2+(Y-X);
        }
    }
    printf("%d", money);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: 'AB' undeclared (first use in this function); did you mean 'B'?
    9 |     if((A+B)<=2*AB){
      |                 ^~
      |                 B
main.c:9:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>

using namespace std;
int main(){
    int a, b, c, x, y;
    cin >> a >> b >> c >> x >> y;
    int cost = 0;
    while(x = 0 || y = 0){
        if(a + b <= 2 * c){
            cost += (a + b);
        } else if(2 * c < a + b) {
            cost += 2 * c;
        }
        x = x - 1;
        y = y - 1;
    }
    if(y > 0) {
        cost += b * y;
    }
    if(x > 0){
        cost += a * x;
    }
    cout << cost << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: lvalue required as left operand of assignment
    8 |     while(x = 0 || y = 0){
      |               ~~^~~~
Language: C++

#include <iostream>

using namespace std;
int main(){
    int a, b, c, x, y;
    cin >> a >> b >> c >> x >> y;
    int cost = 0;
    while(x = 0 || y = 0){
        cost += min(a + b, 2 * c);
        x = x - 1;
        y = y - 1;
    }
    if(y > 0) {
        cost += b * y;
    }
    if(x > 0){
        cost += a * x;
    }
    cout << cost << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: lvalue required as left operand of assignment
    8 |     while(x = 0 || y = 0){
      |               ~~^~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>
#define PI 3.14159265358979323846264338327950288419716939937510
#define INF 1000000000
#define lint long long int 

int a,b,c,x,y;
lint price, min=INF;

int main(void){
	scanf("%d %d %d %d %d", &a,&b,&c,&x,&y );

	for(int i=0;i<=x;i++){
		if( x - i < y){
			price = i * a + (x - i) * 2 * c + (b - x + i) * b;
			if(price < min)	min = price;
		}else{
			price = i * a + (x - i) * 2 * c;
			if(price < min)	min = price;
		}
	}
	
	printf("%lld", min)			
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:25:32: error: expected ';' before 'return'
   25 |         printf("%lld", min)
      |                            ^    
      |                                ;
   26 |         return 0;
      |         ~~~~~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <numeric>
#include <functional>
#include <vector>

using namespace std;

int X;
int Y;
int a[] = {0,0,0};

int get_max(int *X,int *Y) {
	int max;
	if (*X > *Y) {
		max = *X;
	}
	else {
		max = *Y;
	}
	return max;
}

int costf(int *X, int *Y ,int *p,int *q,int *r,int a[]) {
	int cost = 9999999;
	
	if (*p + *r * 0.5 >= *X) {
		if (*q + *r * 0.5 >= *Y) {
			cost = *p * a[0] + *q * a[1] + *r * a[2];
		}
	}
	
	if (cost > 0) {
		return cost;
	}
	else {
		return 9999999;
	}
	
}

int ajst(int *s,int *t) {
	int tmp = *s - *t;
	if (*s - *t >= 0) {
		return tmp;
	}
	else {
		return 1;
	}
}

int main()
{
	for (int i=0; i < 3; ++i) {
		int tmp;
		cin >> tmp;
		a[i] = tmp; //価格の配列
	}
	cin >> X;
	cin >> Y;

	int p = 0; //Aの枚数
	int q = 0; //B
	int r = 0; //AB

	int max;
	int cost;
	int ans = 9999999;
	max = get_max(&X, &Y) * 2;

	for (int i = 0; i < max; ++i) {
		p = i;
		int tmp1 = ajst(&max,&p);
		for (int j = 0; j < tmp1; ++j) {
			q = j;
			int tmp2 = p + q;
			int tmp3 = ajst(&max, &tmp2);
			for (int k = 0; k < tmp3; ++k) {
				r = k;
				cost = costf(&X, &Y, &p, &q, &r, a);
				if (cost < ans) {
					ans = cost;
				}
			}
		}
	}

	printf("%d",ans);

	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:91:18: error: expected '}' at end of input
   91 |         return 0;
      |                  ^
a.cc:54:1: note: to match this '{'
   54 | {
      | ^
Language: C++

#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <numeric>
#include <functional>
#include <vector>

using namespace std;

int X;
int Y;
int a[] = {0,0,0};

int get_max(int *X,int *Y) {
	int max;
	if (*X > *Y) {
		max = *X;
	}
	else {
		max = *Y;
	}
	return max;
}

int costf(int *X, int *Y ,int *p,int *q,int *r,int a[]) {
	int cost = 9999999999;
	
	if (*p + *r * 0.5 >= *X) {
		if (*q + *r * 0.5 >= *Y) {
			cost = *p * a[0] + *q * a[1] + *r * a[2];
		}
	}
	
	if (cost > 0) {
		return cost;
	}
	else {
		return 9999999999;
	}
	
}

int ajst(int *s,int *t) {
	int tmp = *s - *t;
	if (*s - *t >= 0) {
		return tmp;
	}
	else {
		return 1;
	}
}

int main()
{
	for (int i=0; i < 3; ++i) {
		int tmp;
		cin >> tmp;
		a[i] = tmp; //価格の配列
	}
	cin >> X;
	cin >> Y;

	int p = 0; //Aの枚数
	int q = 0; //B
	int r = 0; //AB

	int max;
	int cost;
	int ans = 9999999999;
	max = get_max(&X, &Y) * 2;

	for (int i = 0; i < max; ++i) {
		p = i;
		int tmp1 = ajst(&max,&p);
		for (int j = 0; j < tmp1; ++j) {
			q = j;
			int tmp2 = p + q;
			int tmp3 = ajst(&max, &tmp2);
			for (int k = 0; k < tmp3; ++k) {
				r = k;
				cost = costf(&X, &Y, &p, &q, &r, a);
				if (cost < ans) {
					ans = cost;
				}
			}
		}
	}

	printf("%d",ans);

	return 0;

Compiler output:
a.cc: In function 'int costf(int*, int*, int*, int*, int*, int*)':
a.cc:26:20: warning: overflow in conversion from 'long int' to 'int' changes value from '9999999999' to '1410065407' [-Woverflow]
   26 |         int cost = 9999999999;
      |                    ^~~~~~~~~~
a.cc:38:24: warning: overflow in conversion from 'long int' to 'int' changes value from '9999999999' to '1410065407' [-Woverflow]
   38 |                 return 9999999999;
      |                        ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:69:19: warning: overflow in conversion from 'long int' to 'int' changes value from '9999999999' to '1410065407' [-Woverflow]
   69 |         int ans = 9999999999;
      |                   ^~~~~~~~~~
a.cc:91:18: error: expected '}' at end of input
   91 |         return 0;
      |                  ^
a.cc:54:1: note: to match this '{'
   54 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define REP(i,x,n) for(int i = x; i < n; i++)
#define MAX 1000000001


int a,b,c,x,y;
// int dp[100001][100001];

int main(void){
    cin >> a >> b >> c >> x >> y;
    long long ans = MAX;
    REP(i,0,(x+y+1)) {
        ans = min(i * 2*c + max(0,x-i)*a + max(0,y-i)*b,ans);
    }
    
    cout << ans << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: no matching function for call to 'min(int, long long int&)'
   14 |         ans = min(i * 2*c + max(0,x-i)*a + max(0,y-i)*b,ans);
      |               ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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: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:14:18: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   14 |         ans = min(i * 2*c + max(0,x-i)*a + max(0,y-i)*b,ans);
      |               ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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:
/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:14:18: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   14 |         ans = min(i * 2*c + max(0,x-i)*a + max(0,y-i)*b,ans);
      |               ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
int a, b, c, x, y, r1, r2, r3, big;
int main() {
  cin >> a >> b >> c >> x >> y;
  r1 = a*x+b*y;
  r2 = c*2*max(x,y);
  if (x>y) {
    big = a;
  }else{
    big = b;
  }
  r3 = min(x,y)*2*c+abs(x-y)*big;
  cout << min(r1,r2,r3);
  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 = int; _Compare = int]':
a.cc:14:14:   required from here
   14 |   cout << min(r1,r2,r3);
      |           ~~~^~~~~~~~~~
/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>
using namespace std;
int a, b, c, x, y, r1, r2, r3, big;
int main() {
  cin >> a >> b >> c >> x >> y;
  r1 = a*x+b*y;
  r2 = c*2*max(x,y);
  big = (x>y) ? a : b;
  r3 = min(x,y)*2*c+abs(x-y)*big;
  cout << min(r1,r2,r3);
  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 = int; _Compare = int]':
a.cc:10:14:   required from here
   10 |   cout << min(r1,r2,r3);
      |           ~~~^~~~~~~~~~
/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>
using namespace std;
int a, b, c, x, y, r1, r2, r3, big;
int main() {
  cin >> a >> b >> c >> x >> y;
  r1 = a*x+b*y;
  r2 = c*2*max(x,y);
  big = x>y?a:b;
  r3 = min(x,y)*2*c+abs(x-y)*big;
  cout << min(r1,r2,r3);
  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 = int; _Compare = int]':
a.cc:10:14:   required from here
   10 |   cout << min(r1,r2,r3);
      |           ~~~^~~~~~~~~~
/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>
using namespace std;
int a, b, c, x, y, r1, r2, r3;
int main() {
  cin >> a >> b >> c >> x >> y;
  r1 = a*x+b*y;
  r2 = c*2*max(x,y);
  r3 = min(x,y)*2*c+abs(x-y)*(x>y ? a:b);
  cout << min(r1,r2,r3);
  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 = int; _Compare = int]':
a.cc:9:14:   required from here
    9 |   cout << min(r1,r2,r3);
      |           ~~~^~~~~~~~~~
/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>

using namespace std;

int main() {
    int A,B,C,X,Y,answer;
    cin >> A >> B >> C >> X >> Y;
   int tmp=INT_MAX;
    for (int i = 0; i < max(X,Y); ++i) {
        tmp=min(i*2*C+max(0,(X-i))*A+max(0,(Y-i))*B,tmp);
    }



    cout << tmp << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'INT_MAX' was not declared in this scope
    8 |    int tmp=INT_MAX;
      |            ^~~~~~~
a.cc:2:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    1 | #include <iostream>
  +++ |+#include <climits>
    2 |
Language: C++

#include <string>
#include <queue>
#include <stack>
#include <vector>
#include <sstream>
#include <algorithm>
#include <deque>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <list>
#include <cstdio>
#include <iostream>
#include <cmath>
#include <climits>
#include <bitset>
#include <functional>
#include <numeric>
#include <ctime>
#include <cassert>
#include <cstring>
#include <fstream>
 
using namespace std;
int main(){
int A,B,C;
cin>>A>>B>>C;
int X,Y;
cin>>X>>Y;
for (int i=0;i<N;i++){
int k;
cin>>k;


}
cout<<2Ck+max{X-k,0}*A+max{Y-k,0}*B<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:16: error: 'N' was not declared in this scope
   31 | for (int i=0;i<N;i++){
      |                ^
a.cc:37:7: error: unable to find numeric literal operator 'operator""Ck'
   37 | cout<<2Ck+max{X-k,0}*A+max{Y-k,0}*B<<endl;
      |       ^~~
a.cc:37:21: error: invalid type argument of unary '*' (have 'int')
   37 | cout<<2Ck+max{X-k,0}*A+max{Y-k,0}*B<<endl;
      |                     ^~
a.cc:37:34: error: invalid type argument of unary '*' (have 'int')
   37 | cout<<2Ck+max{X-k,0}*A+max{Y-k,0}*B<<endl;
      |                                  ^~
Language: C++

#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <sstream>
#include <set>
#include <map>
#include <vector>
#include <list>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <string>
#include <queue>
#include <bitset>     //UWAGA - w czasie kompilacji musi byc znany rozmiar wektora - nie mozna go zmienic
#include <cassert>
#include <iomanip>        //do setprecision
#include <ctime>
#include <complex>
using namespace std;

#define FOR(i,b,e) for(int i=(b);i<(e);++i)
#define FORQ(i,b,e) for(int i=(b);i<=(e);++i)
#define FORD(i,b,e) for(int i=(b)-1;i>=(e);--i)
#define REP(x, n) for(int x = 0; x < (n); ++x)

#define ST first
#define ND second
#define PB push_back
#define MP make_pair
#define LL long long
#define ULL unsigned LL
#define LD long double

const double pi = 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342;
const int mod=1000000007;

int main(){
    LL int a,b,c,x,y;
    LL int n,ans = inf;
    LL int i,zero = 0;

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

    /*if (a > c && b > c)cout << c*2*max(x,y);
    else if((a+b)/2 > c && x > y)cout << y*2*c + (x-y)*a;
    else if((a+b)/2 > c && x < y)cout << x*2*c + (y-x)*b;
    else if((a+b)/2 > c && x == y)cout << c*2*x;
    else cout << a*x + b*y;*/

    for(i = 0; i <= 10000; i++){
        n = 2*i*c + max(x-i,zero)*a + max(y-i,zero)*b;
        if(n < ans)ans = n;
    }

    cout << ans;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:40:20: error: 'inf' was not declared in this scope; did you mean 'ynf'?
   40 |     LL int n,ans = inf;
      |                    ^~~
      |                    ynf
Language: C++

#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <sstream>
#include <set>
#include <map>
#include <vector>
#include <list>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <string>
#include <queue>
#include <bitset>     //UWAGA - w czasie kompilacji musi byc znany rozmiar wektora - nie mozna go zmienic
#include <cassert>
#include <iomanip>        //do setprecision
#include <ctime>
#include <complex>
using namespace std;

#define FOR(i,b,e) for(int i=(b);i<(e);++i)
#define FORQ(i,b,e) for(int i=(b);i<=(e);++i)
#define FORD(i,b,e) for(int i=(b)-1;i>=(e);--i)
#define REP(x, n) for(int x = 0; x < (n); ++x)

#define ST first
#define ND second
#define PB push_back
#define MP make_pair
#define LL long long
#define ULL unsigned LL
#define LD long double

const double pi = 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342;
const int mod=1000000007;

int main(){
    LL int a,b,c,x,y;
    LL int n,ans = mod;
    LL int i;

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

    /*if (a > c && b > c)cout << c*2*max(x,y);
    else if((a+b)/2 > c && x > y)cout << y*2*c + (x-y)*a;
    else if((a+b)/2 > c && x < y)cout << x*2*c + (y-x)*b;
    else if((a+b)/2 > c && x == y)cout << c*2*x;
    else cout << a*x + b*y;*/

    for(i = 0; i <= 10000; i++){
        n = 2*i*c + max(x-i,zero)*a + max(y-i,zero)*b;
        if(n < ans)ans = n;
    }

    cout << ans;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:52:29: error: 'zero' was not declared in this scope; did you mean 'bzero'?
   52 |         n = 2*i*c + max(x-i,zero)*a + max(y-i,zero)*b;
      |                             ^~~~
      |                             bzero
Language: C++

#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <sstream>
#include <set>
#include <map>
#include <vector>
#include <list>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <string>
#include <queue>
#include <bitset>     //UWAGA - w czasie kompilacji musi byc znany rozmiar wektora - nie mozna go zmienic
#include <cassert>
#include <iomanip>        //do setprecision
#include <ctime>
#include <complex>
using namespace std;

#define FOR(i,b,e) for(int i=(b);i<(e);++i)
#define FORQ(i,b,e) for(int i=(b);i<=(e);++i)
#define FORD(i,b,e) for(int i=(b)-1;i>=(e);--i)
#define REP(x, n) for(int x = 0; x < (n); ++x)

#define ST first
#define ND second
#define PB push_back
#define MP make_pair
#define LL long long
#define ULL unsigned LL
#define LD long double

const double pi = 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342;
const int mod=1000000007;

int main(){
    LL int a,b,c,x,y;
    LL int n,ans = mod;
    LL int i;

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

    /*if (a > c && b > c)cout << c*2*max(x,y);
    else if((a+b)/2 > c && x > y)cout << y*2*c + (x-y)*a;
    else if((a+b)/2 > c && x < y)cout << x*2*c + (y-x)*b;
    else if((a+b)/2 > c && x == y)cout << c*2*x;
    else cout << a*x + b*y;*/

    for(i = 0, i <= 10000, i++){
        n = 2*i*c + max(x-i,zero)*a + max(y-i,zero)*b;
        if(n < ans)ans = n;
    }

    cout << ans;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:51:31: error: expected ';' before ')' token
   51 |     for(i = 0, i <= 10000, i++){
      |                               ^
      |                               ;
a.cc:58:5: error: expected primary-expression before 'return'
   58 |     return 0;
      |     ^~~~~~
a.cc:56:17: error: expected ')' before 'return'
   56 |     cout << ans;
      |                 ^
      |                 )
   57 | 
   58 |     return 0;
      |     ~~~~~~       
a.cc:51:8: note: to match this '('
   51 |     for(i = 0, i <= 10000, i++){
      |        ^
Language: Java

import java.util.*;

public class Anumbr {

    /**
     * @param args the command line arguments
     */
    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 price1 ;
		int price2 ;
		if (X > Y) {
			price1 = (C * 2 * Y) + (A * (X - Y));
			price2 = C * 2 * X;
		} else {
			price1 = (C * 2 * X) + (B * (Y - X));
			price2 = C * 2 * Y;
		}
		int price3 = A * X + B * Y;
		int ans = Math.min(price1, price2);
		ans = Math.min(ans, price3);
		System.out.println(ans);
	}
    
}

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

import java.util.Scanner;

public class Anumbr {

    /**
     * @param args the command line arguments
     */
    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 price1 ;
		int price2 ;
		if (X > Y) {
			price1 = (C * 2 * Y) + (A * (X - Y));
			price2 = C * 2 * X;
		} else {
			price1 = (C * 2 * X) + (B * (Y - X));
			price2 = C * 2 * Y;
		}
		int price3 = A * X + B * Y;
		int ans = Math.min(price1, price2);
		ans = Math.min(ans, price3);
		System.out.println(ans);
	}
    
}

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