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

#include <iostream>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <set>
#include <vector>
#include <map>
#include <queue>
#include <list>
#include <random>

using namespace std;


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

    int total = A * X + B * Y;
    int price = 0;

    if(X > Y){
        price = C*2*Y + A*(X-Y);
        if(total > price)
            total = price;
        price = C*2*X;
        if(total > price)
            total = price;
    }else{
        price = C*2*X + B*(Y-X);
        if(total > price)
            total = price;
        price = C*2*Y;
        if(total > price)
            total = price;
    }


    cout << total << endl;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:2: error: illegal character: '#'
#include <algorithm>
^
Main.java:3: error: illegal character: '#'
#include <cmath>
^
Main.java:4: error: illegal character: '#'
#include <cstdio>
^
Main.java:5: error: illegal character: '#'
#include <set>
^
Main.java:6: error: illegal character: '#'
#include <vector>
^
Main.java:7: error: illegal character: '#'
#include <map>
^
Main.java:8: error: illegal character: '#'
#include <queue>
^
Main.java:9: error: illegal character: '#'
#include <list>
^
Main.java:10: error: illegal character: '#'
#include <random>
^
Main.java:17: error: not a statement
    cin >> A >> B >> C >> X >> Y;
                            ^
Main.java:39: error: not a statement
    cout << total << endl;
                  ^
Main.java:15: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
13 errors
Language: C++

#include<bits/stdc++.h>                          
using namespace std;
int a,b,c,x,y;
long long ans;
int main(){
	cin>>a>>b>>c>>x>>y;
	if(c*2<a+b)
	{
		ans+=min(x,y)*c*2;
		if(x>y) ans+=(x-y)*a;
		else ans+=(y-x)*b;
	}
	else ans=x*a+y*pb;
	if(c*2*max(x,y)<ans) ans=c*2*max(x,y);
	cout<<ans;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: 'pb' was not declared in this scope; did you mean 'b'?
   13 |         else ans=x*a+y*pb;
      |                        ^~
      |                        b
Language: C++

#include<bits/stdc++.h>
#include <iostream>
#include <vector>
#include <queue>
using namespace std;
#define int long long
#define double long double
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())
#define fi first
#define se second
#define sz size()
#define bgn begin()
#define en end()
#define pb push_back
#define pp() pop_back()
#define V vector
#define P pair
#define yuko(a) setprecision(a)
#define uni(a) a.erase(unique(a.begin(),a.end()),a.end())
#define Q queue
#define pri priority_queue
#define Pri priority_queue<int,vector<int>,greater<int>>
#define PriP priority_queue<P<int,int>,vector<P<int,int>>,greater<P<int,int>>>
#define all(a)  (a).begin(),(a).end()

int keta(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
}
signed main(){
  int a,b,c,x,y;
  cin>>a>>b>>c>>x>>y;
  int ans=10000000000;
  for(int i=0; i<200010; i+=2){
    int nec=0;
    nec+=i*c;
    nec+=max<int>(x-i/2,0);
    nec+=max<int>(y-i/2,0);
    ans=man(nes,ans);

  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:13: error: 'nes' was not declared in this scope; did you mean 'nec'?
   43 |     ans=man(nes,ans);
      |             ^~~
      |             nec
a.cc:43:9: error: 'man' was not declared in this scope; did you mean 'tan'?
   43 |     ans=man(nes,ans);
      |         ^~~
      |         tan
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define lli long long int
#define REP(i,s,n) for(int i=s;i<n;i++)
#define MOD 1000000007
#define NUM 2520
#define INF (1LL<<50)
#define DEBUG 
#define mp(a,b) make_pair(a,b)
#define SORT(V) sort(V.begin(),V.end())
#define PI (3.141592653589794)

#define P pair<lli,lli>

signed main(){

	lli a,b,c,x,y;

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

	lli ans = INF;

	for(lli ab=0;ab<=2*max(x,y);ab++){
		lli abCost = c*ab;
		lli leftA = x-ab/2;
		lli leftB = y-ab/2;

		lli aCost = max(leftA*a,0LL);
		lli bCost = max(leftB*b,0LL);
		if(DEBUG)cout<<"ab="<<ab<<"A="<<leftA<<"B="<<leftB<<"aCost="<<aCost<<" bCost="<<bCost<<endl;

		ans = min(abCost+aCost+bCost,ans);
	}
	cout<<ans<<endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:25: error: expected primary-expression before ')' token
   32 |                 if(DEBUG)cout<<"ab="<<ab<<"A="<<leftA<<"B="<<leftB<<"aCost="<<aCost<<" bCost="<<bCost<<endl;
      |                         ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:35: error: unable to find numeric literal operator 'operator""c'
   19 |       if (x<y) ans+=(y-x) * min(b,2c);
      |                                   ^~
a.cc:20:36: error: unable to find numeric literal operator 'operator""c'
   20 |       else     ans+=(x-y) + min(a, 2c);
      |                                    ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long; // ll は long long　と同じとする。
int main () {
    ll A , B , C , X , Y;
    cin >> A >> B >> C >> X >> Y;
    ll ans = 1;
    for(int i = 0; i <= max(X , Y); i++){
        ans = min(ans , 2 * i * c + max(0 , x - i) * a + max(0 , y - i) * b);
    }
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: 'c' was not declared in this scope
    9 |         ans = min(ans , 2 * i * c + max(0 , x - i) * a + max(0 , y - i) * b);
      |                                 ^
a.cc:9:45: error: 'x' was not declared in this scope
    9 |         ans = min(ans , 2 * i * c + max(0 , x - i) * a + max(0 , y - i) * b);
      |                                             ^
a.cc:9:54: error: 'a' was not declared in this scope
    9 |         ans = min(ans , 2 * i * c + max(0 , x - i) * a + max(0 , y - i) * b);
      |                                                      ^
a.cc:9:66: error: 'y' was not declared in this scope
    9 |         ans = min(ans , 2 * i * c + max(0 , x - i) * a + max(0 , y - i) * b);
      |                                                                  ^
a.cc:9:75: error: 'b' was not declared in this scope
    9 |         ans = min(ans , 2 * i * c + max(0 , x - i) * a + max(0 , y - i) * b);
      |                                                                           ^
Language: C++

/*
Problem

Category
全探索・全列挙

URL:
https://atcoder.jp/contests/abc095/tasks/arc096_a


考察:

Date: 2020/03/31
*/

#include <bits/stdc++.h>
#include "../utils.cpp"
using namespace std;
// #define int long long

/* ==== declarations ====== */
// functions
void solve();
void getInput();

// global variables
int a, b, c, x, y;

/* ======================== */

int main(){
    getInput();
    solve();
    return 0;
}

void getInput() {
    cin>>a>>b>>c>>x>>y;
}

void solve() {
    c *=2;
    int nc = 0;
    // cout<<"a, b, c: "<<a<<", "<<b<<", "<<c<<endl;
    // cout<<"x, y: "<<x<<", "<<y<<endl;
    if (c < a) {
        nc += x;
        x = 0;
        y -= nc;
        if (y <= 0) {
            cout<<nc*c<<endl;
            return;
        }
    }
    if (c < b) {
        nc += y;
        x -= nc;
        y = 0;
        if (x <= 0) {
            cout<<nc*c<<endl;
            return;
        }
    }

    while(x > 0 and y > 0) {
        if (a + b < c) break;
        
        nc++;
        x--;
        y--;
    }
    cout<<x*a+y*b+nc*c<<endl;
    // cout<<"x, y, nc: "<<x<<", "<<y<<", "<<nc<<endl;
    


    // cout<<c<<endl;
}

Compiler output:
a.cc:17:10: fatal error: ../utils.cpp: No such file or directory
   17 | #include "../utils.cpp"
      |          ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("Ofast")
#define rep(i,n) for(int i=0;i<n;i++)
const long long MOD = 1000000007;
typedef pair<int,int> P;
typedef long long ll;

int main(void){
  ll a,b,c,x,y;
  cin >> a >> b >> c >> x >> y;
  ll tmp = 0;
  if(x > y) tmp = a;
  else tmp = b;
  vector<ll> ans = {};
  ans.push_back(a*x+b*y);
  ans.push_back(2*c*(2*(max(x,y)/2)+max(x,y)%2));
  ans.push_back(2*c*(2*(min(x,y)/2)+a*(x-2*(min(x,y)/2))+b*(y-2*(min(x,y)/2)));
  sort(ans.begin(),ans.end());
  cout << ans[0] << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:79: error: expected ')' before ';' token
   18 |   ans.push_back(2*c*(2*(min(x,y)/2)+a*(x-2*(min(x,y)/2))+b*(y-2*(min(x,y)/2)));
      |                ~                                                              ^
      |                                                                               )
Language: C++

#include<iostream>
using namespace std;
int a,b,c,xx,yy,rs;
int main()
{
	cin>>a>>b>>c>>xx>>yy;
	if(a+b<2*c)
	{
		rs=xx*a+yy*b;
	}
	else
	{
		if(xx>yy)
		{
			rs=2*c*yy;
			if(2*c<a)
				rs+=(xx-yy)*c;
			else rs+=(xx-yy)*a;
		}
		else 
		{
			rs=2*c*xx;
			if(2*c<b)
				rs+=(-xx+yy)*c;
			else rs+=(-xx+yy)*b;
	}
	cout<<rs<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: Java

import java.util.*;
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 = Integer.MAX_VALUE;
    for(int i=0; i<=100000; i++){
      int temp = 2*C*i + A*Math.max(0,X-i) + B*Math.max(0, Y-i);
      int ans = Math.min(ans, temp);
    }
    out.println(ans);
  }
}


Compiler output:
Main.java:13: error: variable ans is already defined in method main(String[])
      int ans = Math.min(ans, temp);
          ^
Main.java:15: error: cannot find symbol
    out.println(ans);
    ^
  symbol:   variable out
  location: class Main
2 errors
Language: Java

import java.util.*;
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 = Integer.MAX_VALUE;
    for(int i=0; i<=100000; i++){
      int temp = 2C*i + A*Math.max(0,X-i) + B*Math.max(0, Y-i);
      int ans = Math.min(ans, temp);
    }
    out.println(ans);
  }
}

Compiler output:
Main.java:12: error: ';' expected
      int temp = 2C*i + A*Math.max(0,X-i) + B*Math.max(0, Y-i);
                  ^
Main.java:12: error: not a statement
      int temp = 2C*i + A*Math.max(0,X-i) + B*Math.max(0, Y-i);
                                          ^
2 errors
Language: C++

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

int main(){
        int A,B,C,X,Y;
        cin >> A>>B>>C>>X>>Y;
        int ans;
        if((A+B) < (C*2))
        {
                ans = A*X + B*Y;
        }
        else if((A+B) > (C*2))
        {
                int p,q;
                int cbuy1 = min(x, y);
                p = C*2*Y;
                p+=A * (X - cbuy1) + b * (y - cbuy1);

                int cbuy2 = max(x, y);
                q= C*2*Y;
                q += c * cbuy2 * 2;
                ans = min(p,q);
        }

        cout << ans << endl;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:15:33: error: 'x' was not declared in this scope
   15 |                 int cbuy1 = min(x, y);
      |                                 ^
a.cc:15:36: error: 'y' was not declared in this scope
   15 |                 int cbuy1 = min(x, y);
      |                                    ^
a.cc:17:38: error: 'b' was not declared in this scope
   17 |                 p+=A * (X - cbuy1) + b * (y - cbuy1);
      |                                      ^
a.cc:21:22: error: 'c' was not declared in this scope
   21 |                 q += c * cbuy2 * 2;
      |                      ^
Language: C++

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

int main(){
        int A,B,C,X,Y;
        cin >> A>>B>>C>>X>>Y;
        int ans;
        if((A+B) < (C*2))
        {
                ans = A*X + B*Y;
        }
        else if((A+B) > (C*2))
        {
                int p,q;
                cbuy1 = min(x, y);
                p = C*2*Y;
                p+=A * (X - cbuy1) + b * (y - cbuy1);

                cbuy2 = max(x, y);
                q= C*2*Y;
                q += c * cbuy2 * 2;
                ans = min(p,q);
        }

        cout << ans << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'cbuy1' was not declared in this scope
   15 |                 cbuy1 = min(x, y);
      |                 ^~~~~
a.cc:15:29: error: 'x' was not declared in this scope
   15 |                 cbuy1 = min(x, y);
      |                             ^
a.cc:15:32: error: 'y' was not declared in this scope
   15 |                 cbuy1 = min(x, y);
      |                                ^
a.cc:17:38: error: 'b' was not declared in this scope
   17 |                 p+=A * (X - cbuy1) + b * (y - cbuy1);
      |                                      ^
a.cc:19:17: error: 'cbuy2' was not declared in this scope
   19 |                 cbuy2 = max(x, y);
      |                 ^~~~~
a.cc:21:22: error: 'c' was not declared in this scope
   21 |                 q += c * cbuy2 * 2;
      |                      ^
Language: Java

import java.util.Scanner;
import java.util.stream.Stream;
import java.util.Arrays;
import java.util.StringJoiner;
import java.math.BigInteger;

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();

    // A * X -> AX yen;
    // B * Y -> BY yen;
    // C * Math.max(X, Y) * 2 -> 2 * C * Math.max(X, Y) yen

    // O(n) -> 5000 * 5000 * 5000 -> 125 * 10^9 (NG)
    // O(n) -> 5000 * 5000 -> 25 * 10^6 (OK)

    int minValue = Integer.MAX_VALUE;
    for(int i = 0; i <= 5000; i++){
      for (int j = 0; j <= 5000; j++) {
        long aPizza = A * i;
        long bPizza = B * j;
        long cPizza = C * Math.max(0, Math.abs(Math.max(X - i, 0) - Math.max(Y - j, 0))) * 2;
        // int remainX = Math.max(X - i, 0);
        // int remainY = Math.max(Y - j, 0);
        
        minValue = Math.min(minValue, aPizza + bPizza + cPizza);
      }
    }

    System.out.println(minValue);
 }
}


Compiler output:
Main.java:33: error: incompatible types: possible lossy conversion from long to int
        minValue = Math.min(minValue, aPizza + bPizza + cPizza);
                           ^
1 error
Language: C++

//#define _GLIBCXX_DEBUG

#include<bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const int INF= 1e9+5;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vector<int> >vvi;
const ll MOD=1000000007LL;
int main(){
  int a,b,c,x,y;
  cin>>a>>b>>c>>x>>y;
  if(a+b>=2c){
    if(x>y){
      cout<<y*c+(x-y)*a<<endl;
    }
    else{
      swap(x,y);
      swap(a,b);
      cout<<y*c+(x-y)*a<<endl;
    }
    return 0;
  }
  else cout<<x*a+b*y<<endl;
}

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

#include<iostream>
#include <bits/stdc++.h>
#include <string>
#include <algorithm>

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 << endl;
  }else{
    if(x<y){
      int ans1 = 2*c*y ;
      int ans2 = 2*c*x + (y-x)*b ;
      if(ans1<ans2)
        cout << ans1 << endl;
      else
        cout << ans2 << endl;        
    }
  }else{
      int ans3 = 2*c*x ;
      int ans4 = 2*c*y + (x-y)*a ;
      if(ans3<ans4)
        cout << ans3 << endl;
      else
        cout << ans4 << endl;        
    }
    return 0;
}


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

#include<iostream>
#include <bits/stdc++.h>
#include <string>
#include <algorithm>

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 << endl;
  }else{
    if(x<y){
      int ans1 = 2*c*y ;
      int ans2 = 2*c*x + (y-x)*b ;
      if(ans1<ans2)
        cout << ans1 << endl;
      else
        cout << ans2 << endl;        
    }
  }else{
      int ans3 = 2*c*x ;
      int ans4 = 2*c*y + (x-y)*a ;
      if(ans3<ans4)
        cout << ans3 << endl;
      else
        cout << ans4 << endl;        
    }
  }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:4: error: 'else' without a previous 'if'
   23 |   }else{
      |    ^~~~
a.cc: At global scope:
a.cc:32:5: error: expected unqualified-id before 'return'
   32 |     return 0;
      |     ^~~~~~
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
int main(void){
    int priceA,priceB,priceAB;
    int numA,numB;
    int sum_price[4]={0};
    int min=100000000;

    scanf("%d %d %d %d %d",&priceA,&priceB,&priceAB,&numA,&numB);

    int i;
    sum_price[0]=(priceA*numA)+(priceB*numB);
    if(numA<numB){
        sum_price[1]=(priceAB*2*numA)+(priceB*(numB-numA));
        sum_price[2]=(priceAB*2*numB);
        sum_price[3]=(priceA*numA)+(priceAB*2*(numB);
    }
    else if(numA>=numB){
        sum_price[1]=(priceAB*2*numB)+(priceA*(numA-numB));
        sum_price[2]=(priceAB*2*numA);
        sum_price[3]=(priceB*numB)+(priceAB*2*numA);
    }

    for(i=0;i<4;i++){
        if(min>sum_price[i]){
            min=sum_price[i];
        }
    }

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


Compiler output:
main.c: In function 'main':
main.c:18:53: error: expected ')' before ';' token
   18 |         sum_price[3]=(priceA*numA)+(priceAB*2*(numB);
      |                                    ~                ^
      |                                                     )
main.c:18:54: error: expected ';' before '}' token
   18 |         sum_price[3]=(priceA*numA)+(priceAB*2*(numB);
      |                                                      ^
      |                                                      ;
   19 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll LLINF = (1LL<<60);
const int INF = (1LL<<30);
const int MOD = 1000000007;

int main(){
    ll a,b,c,x,y;
    cin >> a >> b >> c >> x >> y;
    ll ans = LLINF;
    for (ll i = 0; i < max(x,y)+1; i++)
    {
        
        ll temp = i*c*2;
        if(x > i) temp += (x-i)*a;
        if(y > i) temp += (y-i)*b;

        ans = min(ans,tmp);
    }

    cout << ans << endl;

    return 0;
     
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:23: error: 'tmp' was not declared in this scope; did you mean 'temp'?
   19 |         ans = min(ans,tmp);
      |                       ^~~
      |                       temp
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll LLINF = (1LL<<60);
const int INF = (1LL<<30);
const int MOD = 1000000007;

int main(){
    ll a,b,c,x,y;
    cin >> a >> b >> c >> x >> y;
    ll ans = LLINF;
    for (ll i = 0; i < max(x,y)+1; i++)
    {
        
        ll temp = i*c*2;
        if(x > i) tmp += (x-i)*a;
        if(y > i) tmp += (y-i)*b;

        ans = min(ans,tmp);
    }

    cout << ans << endl;

    return 0;
     
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: 'tmp' was not declared in this scope; did you mean 'temp'?
   16 |         if(x > i) tmp += (x-i)*a;
      |                   ^~~
      |                   temp
a.cc:17:19: error: 'tmp' was not declared in this scope; did you mean 'temp'?
   17 |         if(y > i) tmp += (y-i)*b;
      |                   ^~~
      |                   temp
a.cc:19:23: error: 'tmp' was not declared in this scope; did you mean 'temp'?
   19 |         ans = min(ans,tmp);
      |                       ^~~
      |                       temp
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define com(x,y,c,s) s+=c*x;y-=x;x=0; 
#define abc(a,c,x) (a>c?c:a)*x)
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
int main()
{
  int a,b,c,x,y,sum=0;
c*=2;
if(a+b>=c){
   if(x<y){
      com(x,y,c,sum)
   } else{
   com(y,x,c,sum)
   }
}
sum+=abc(a,c,x);
   sum+=abc(b,c,y);
   cout<<sum;
   }

Compiler output:
a.cc: In function 'int main()':
a.cc:4:31: error: expected ';' before ')' token
    4 | #define abc(a,c,x) (a>c?c:a)*x)
      |                               ^
a.cc:17:6: note: in expansion of macro 'abc'
   17 | sum+=abc(a,c,x);
      |      ^~~
a.cc:4:31: error: expected ';' before ')' token
    4 | #define abc(a,c,x) (a>c?c:a)*x)
      |                               ^
a.cc:18:9: note: in expansion of macro 'abc'
   18 |    sum+=abc(b,c,y);
      |         ^~~
Language: Java

Maikage abc095;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int a = stdIn.nextInt(); //aピザの値段
		int b = stdIn.nextInt(); //bピザの値段
		int ab = stdIn.nextInt(); //abピザの値段
		int x = stdIn.nextInt();
		int y = stdIn.nextInt();
		
		int a_b = (ab*2); //aピザ1枚bピザ1枚 
		
		long sum = 0;
		
		//int min = Math.min(a_b, a+b); //abを買うかa,bそれぞれで買うか
		
		int t = 0;
		if(a_b > a+b) {
			t = 1;
		}else {
			t = 2;
		}
		
		
		if(t==2) {
				sum += Math.min(x, y)*a_b;
				if(x > y) {
					sum += (x-y)*a;
				}else {
					sum += (y-x)*b;
				}
			sum = Math.min(sum, a_b*(Math.max(x, y)));
	
		}else {
			sum += (x*a)+(y*b);
		}
		
		System.out.println(sum);
		
		
		
	}

}


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Maikage abc095;
^
  (use --enable-preview to enable unnamed classes)
Main.java:2: error: class, interface, enum, or record expected
import java.util.Scanner;
^
2 errors
Language: C++

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: 'INT_MAX' was not declared in this scope
   15 |     int result = INT_MAX;
      |                  ^~~~~~~
a.cc:7:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    6 | #include <vector>
  +++ |+#include <climits>
    7 | using namespace std;
Language: C++

#include <bits/stdc++.h>
#include <cmath>
using namespace std;
int main(){
  long int A,B,C,X,Y,s;cin>>A>>B>>C>>X>>Y;s=A*X+B*Y;
  for(long int i=0;i<=2*max(X,Y);i++){
    s=min(s,max(X-(k-1)/2,0)*A+max(Y-(k-1)/2,0));
  }
  cout<<s<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'k' was not declared in this scope
    7 |     s=min(s,max(X-(k-1)/2,0)*A+max(Y-(k-1)/2,0));
      |                    ^
Language: C

#include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string>
#include<algorithm>
#include<map>
#include<vector>
#include<queue>
#include<sstream>
#include<set>
#include<cctype>
#include<iomanip>
using namespace std;

struct p{
int h;
int w;
int n;
bool flag=false;
};
int main(){
ios::sync_with_stdio(false);
#ifdef ONLINE_JUDGE
#else
    freopen("1.txt", "r", stdin);
#endif
int a,b,c,x,y;
cin>>a>>b>>c>>x>>y;
int commont_part=(x<y?x:y);
int sum=0;
if(a+b>2*c) sum+=2*c*commont_part;
else        sum+=commont_part*(a+b);
if((x-commont_part)*a+(y-commont_part)*b<2*c*(x-commont_part+y-commont_part))
{
    sum+=(x-commont_part)*a+(y-commont_part)*b;

}
else{
    sum+=2*c*(x-commont_part+y-commont_part);
}
cout<<sum;


 return 0;
}


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

#include <cstring>
#include <cstdlib>
#include <ctime>

#include <iostream>
#include <vector>
#include <set>
#include <string>
#include <map>
#include <queue>
#include <stack>
#include <algorithm>
const int INF=0x3fffffff;
using namespace std;

void main()
{
	int A, B, C, x, y;
	cin >> A >> B >> C >> x >> y;

	if (C * 2 >= A + B)
	{
		printf("%d", x * A + y * B);
		return;
	}

	int cCount, aCount;
	aCount = cCount = 0;
	if (x < y)	//保持x需求大
	{
		swap(x, y);
		swap(A, B);
	}
	
	cCount = y*2;
	x -= y;
	if (C * 2 > A) {
		aCount = x;
		printf("%d\n", cCount * C + aCount * A);
	}
	else
	{
		cCount += 2 * x;
		printf("%d\n", cCount * C);
	}
}

Compiler output:
a.cc:16:1: error: '::main' must return 'int'
   16 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:24:17: error: return-statement with no value, in function returning 'int' [-fpermissive]
   24 |                 return;
      |                 ^~~~~~
Language: Java

import java.util.Scanner;

public class test12 {

    public static void main(String[] args) {
        int[] a = { 0, 0, 0, 0, 0 };
        Scanner scan = new Scanner(System.in);
        if (scan.hasNextInt()) {
            for (int i = 0; i < a.length; i++) {
                a[i] = scan.nextInt();
            }
        }
        int sum = 0;

        if (a[0] + a[1] <= a[2] * 2) {
            sum = a[0] * a[3] + a[1] * a[4];
        } else {
            if (a[3] >= a[4]) {
                sum = a[4] * 2 * a[2];
                sum = sum + (a[3] - a[4]) * a[0];
            } else {
                sum = a[3] * 2 * a[2];
                sum = sum + (a[4] - a[3]) * a[1];
            }

        }
        int sum1 = 0;
        if (a[3] >= a[4]) {
            sum1 = a[3] * a[2] * 2;
        }
        if (a[3] < a[4]) {
            sum1 = a[4] * a[2] * 2;
        }
        if (sum > sum1) {
            sum = sum1;
        }
        System.out.println(sum);
        scan.close();
    }
}

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

import java.util.Scanner;

public class test {

    public static void main(String[] args) {
        int[] a = { 0, 0, 0, 0, 0 };
        Scanner scan = new Scanner(System.in);
        if (scan.hasNextInt()) {
            for (int i = 0; i < a.length; i++) {
                a[i] = scan.nextInt();
            }
        }
        int sum = 0;

        if (a[0] + a[1] <= a[2] * 2) {
            sum = a[0] * a[3] + a[1] * a[4];
        } else {
            if (a[3] >= a[4]) {
                sum = a[4] * 2 * a[2];
                sum = sum + (a[3] - a[4]) * a[0];
            } else {
                sum = a[3] * 2 * a[2];
                sum = sum + (a[4] - a[3]) * a[1];
            }

        }
        int sum1 = 0;
        if (a[3] >= a[4]) {
            sum1 = a[3] * a[2] * 2;
        }
        if (a[3] < a[4]) {
            sum1 = a[4] * a[2] * 2;
        }
        if (sum > sum1) {
            sum = sum1;
        }
        System.out.println(sum);
        scan.close();
    }
}

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

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

int max(int x, int y) {
	return x >= y ? x : y;
}

int min(int x, int y) {
	return x <= y ? x : y;
}

int main() {
	int a, b, c, x, y, ans, anst;
	scanf_s("%d%d%d%d%d", &a, &b, &c, &x, &y);
	int ma = max(x, y), temp1 = ma * 2 * c, xy = abs(x - y), fees = a * x + b * y;
	ans = min(fees, temp1);
	if (x > y) anst = y * 2 * c + xy * a;
	else anst = x * 2 * c + xy * b;
	ans = min(ans, anst);
	return 0 * printf("%d\n", ans);
}

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

#include<stdio.h>
#include<math.h>

int max(int x, int y) {
	return x >= y ? x : y;
}

int min(int x, int y) {
	return x <= y ? x : y;
}

int main() {
	int a, b, c, x, y, ans, anst;
	scanf_s("%d%d%d%d%d", &a, &b, &c, &x, &y);
	int ma = max(x, y), temp1 = ma * 2 * c, xy = abs(x - y), fees = a * x + b * y;
	ans = min(fees, temp1);
	if (x > y) anst = y * 2 * c + xy * a;
	else anst = x * 2 * c + xy * b;
	ans = min(ans, anst);
	return 0 * printf("%d\n", ans);
}

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

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

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

ll lcm(ll a,ll b){
    a / gcd(a,b) * b;
}
const ll mod = 1e9 + 7;

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

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

    int64_t ans = 0;

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

Compiler output:
a.cc:1:1: error: stray '\' in program
    1 | \#include "bits/stdc++.h"
      | ^
a.cc:1:2: error: stray '#' in program
    1 | \#include "bits/stdc++.h"
      |  ^
a.cc:1:3: error: 'include' does not name a type
    1 | \#include "bits/stdc++.h"
      |   ^~~~~~~
a.cc: In function 'll gcd(long long int, long long int)':
a.cc:10:16: error: 'swap' was not declared in this scope
   10 |     if (a < b) swap(a,b);
      |                ^~~~
a.cc:10:16: note: suggested alternatives:
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/bits/specfun.h:43,
                 from /usr/include/c++/14/cmath:3906,
                 from /usr/include/c++/14/math.h:36,
                 from a.cc:5:
/usr/include/c++/14/bits/stl_pair.h:1106:5: note:   'std::swap'
 1106 |     swap(pair<_T1, _T2>&, pair<_T1, _T2>&) = delete;
      |     ^~~~
In file included from /usr/include/c++/14/bits/stl_pair.h:61:
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
a.cc: In function 'll lcm(ll, ll)':
a.cc:18:1: warning: no return statement in function returning non-void [-Wreturn-type]
   18 | }
      | ^
a.cc: In function 'int main()':
a.cc:24:5: error: 'cin' was not declared in this scope; did you mean 'sin'?
   24 |     cin >> a >> b >> c >> x >> y;
      |     ^~~
      |     sin
a.cc:29:9: error: 'swap' was not declared in this scope
   29 |         swap(x,y);
      |         ^~~~
a.cc:29:9: note: suggested alternatives:
/usr/include/c++/14/bits/stl_pair.h:1106:5: note:   'std::swap'
 1106 |     swap(pair<_T1, _T2>&, pair<_T1, _T2>&) = delete;
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
  226 |     swap(_Tp& __a, _Tp& __b)
      |     ^~~~
/usr/include/c++/14/bits/move.h:226:5: note:   'std::swap'
a.cc:32:12: error: 'min' was not declared in this scope; did you mean 'std::min'?
   32 |     ans += min(y*(a+b),c*2*y);
      |            ^~~
      |            std::min
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:34:5: error: 'cout' was not declared in this scope
   34 |     cout << ans << endl;
      |     ^~~~
a.cc:34:20: error: 'endl' was not declared in this scope
   34 |     cout << ans << endl;
      |                    ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep2(i,n) for(int i=0;i<=n;i++)
#define repr(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define double long double
#define vector2(a,b,c) vector<vector<int>> a(b/*縦！w*/,vector<int>(c/*横！w*/))
#define INF 1e10
#define MOD 1e9+7
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
using Graph = vector<vector<int>>;
signed main(){
  int a,b,c,d,e;
  cin>>a>>b>>c>>d>>e;
  int f=min(d,e);
  int h=max(d,e);
  int k=min(a,b);
  int g=0;
  if(a+b<=2*c)
    g+=(a+b)*f;
    else
      g+=c*2*f;
  int k;
  if(h==d)
    k=a;
  else
    k=b;
  if(k<c*2)
    g+=k*(h-f);
  else
    g+=c*2*(h-f);
  cout<<g<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:7: error: redeclaration of 'long long int k'
   28 |   int k;
      |       ^
a.cc:22:7: note: 'long long int k' previously declared here
   22 |   int k=min(a,b);
      |       ^
Language: C++

#include <iostream>

using namespace std;

inline double avg (double x, double y) {
    return (x+y)/2;
}

int main()
{
    int x, y, price_a, x_rem, y_rem, price_b, price_ab, final_cost = 0, add1, add2;
    cin >> price_a >> price_b >> price_ab >> x >> y;
    // Buy in AB till it makes sense
    // An AB pizza has the value of 1/2 A type and 1/2 B type;
    // That till one kind of them is exhausted
    // += min(x,y) * price_ab if price_ab < avg(price_a, price_b)
    // y_rem = {y - min(x,y)} is number of y type pizzas you still need
    // final_cost += min ( buy using B-type, Buy using AB-Type)
    // same repeated for x
    if (price_ab*2 < avg(price_a,price_b)) {
        final_cost += min(x,y)*price_ab;
        y = y - min(x,y);
        x = x - min(x,y);
    }

    add1 = y*min(price_b, price_ab*2);
    if (price_ab * 2 < price_b) {
        x_rem = x - y;
    } else {
        x_rem = x;
    }
    if ( x > 0) {
        add1 += x_rem * min(price_a,price_ab*2);
    }

    add2 = x*min(price_a, price_ab*2);
    if (price_ab * 2 < price_b) {
        y_rem = y - x;
    } else {
        y_rem = y
    }
    if ( x > 0) {
        add2 += y_rem * min(price_b,price_ab*2);
    }

    cout << final_cost + min (add1,add2);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:40:18: error: expected ';' before '}' token
   40 |         y_rem = y
      |                  ^
      |                  ;
   41 |     }
      |     ~
Language: C++

#include<iostream.h>
#include<math.h
using namespace std;
typedef long long ll;
int main()
{
    ll a,b,c,x,y;
    cin>>a>>b>>c>>x>>y;
    ll 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:
a.cc:1:9: fatal error: iostream.h: No such file or directory
    1 | #include<iostream.h>
      |         ^~~~~~~~~~~~
compilation terminated.
Language: C++

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        try (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();

            // 0. すべてAとBを買うときの金額を初期値とする。
            int ans = a * x + b * y;
            // 1. AとBを2xCに交換し、合計金額の減少or増加を確認する
            // このとき、Cは2枚セットで交換する必要があることに注意
            // 1-1. 合計金額が減少する場合は処理を継続
            // 1-2. 合計金額が減少しない場合は処理を終了
            int max = Math.max(x, y);
            for (int i = 0; i < max; i++) {
                int deltaX = Math.min(x, 1);
                int deltaY = Math.min(y, 1);
                int candidate = ans - (a * deltaX + b * deltaY) + 2 * c * Math.max(deltaX, deltaY);
                if (candidate < ans) {
                    ans = candidate;
                    x -= deltaX;
                    y -= deltaY;
                } else {
                    break;
                }
            }

            System.out.println(ans);
        }
    }

}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
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 "bits/stdc++.h"
using namespace std;
const int MAX = 700000;
const int MOD = 1000000007;

long long fac[MAX], finv[MAX], inv[MAX];

// テーブルを作る前処理
void COMinit() {
	fac[0] = fac[1] = 1;
	finv[0] = finv[1] = 1;
	inv[1] = 1;
	for (int i = 2; i < MAX; i++) {
		fac[i] = fac[i - 1] * i % MOD;
		inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD;
		finv[i] = finv[i - 1] * inv[i] % MOD;
	}
}

// 二項係数計算
long long COM(int n, int k) {
	if (n < k) return 0;
	if (n < 0 || k < 0) return 0;
	return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}
/*第二引数で第一引数を割ったときの切り上げの計算*/
long long int maxtime(long long int x, long long int y) {
	return(x + y - 1) / y;

}
/*最大公約数*/
long long int lcm(long long int number1, long long int number2) {
	long long int m = number1;
	long long int n = number2;

	if (number2 > number1) {
		m = number2;
		n = number1;
	}
	long long int s = -1;
	while (s != 0) {
		s = m % n;
		m = n;
		n = s;
	}
	return m;
}
/*最大公倍数*/
long long int gcd(long long int number1, long long int number2) {
	long long int m = number1;
	long long int n = number2;
	return m / lcm(m, n) * n;
}

int main() {
	long long int a, b, c;
	cin >> a >> b >> c;
	long long int x, y;
	cin >> x >> y;
	long long int ans = 10000000000000000;
	for (int i = 0; i <= 100000; i++) {
		int amarix = max(long long int(0), x - i);
		int amariy = max(long long int (0),y - i);
		ans = min(ans, 2 * c * i + a * amarix + b * amariy);
	}
	cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:62:34: error: expected primary-expression before 'long'
   62 |                 int amarix = max(long long int(0), x - i);
      |                                  ^~~~
a.cc:63:34: error: expected primary-expression before 'long'
   63 |                 int amariy = max(long long int (0),y - i);
      |                                  ^~~~
Language: Java

import java.util.Scanner;

public class Pizza {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);

        int A = scan.nextInt();
        int B = scan.nextInt();
        int AB = scan.nextInt();
        int x = scan.nextInt();
        int y = scan.nextInt();

        int ans = 1000000000;
        for(int i=0; i<2*(x+y)+1; i++){
            int ABpizza = i;
            int Apizza = Math.max(0,x - (i/2));
            int Bpizza = Math.max(0,y - (i/2));
            ans = Math.min(ans,(ABpizza*AB)+(Apizza*A)+(Bpizza*B));
        }
        System.out.println(ans);
    }
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,x,y,ans=0;cin>>a>>b>>c>>x>>y;
  if(x<y){
    a^=c;c^=a;a^=c;
    x^=y;y^=x;x^=y;
  }
  while(y>0){
    ans+=(min(a+c,b+b));
    x--;y--;
  }
  while(x>0){
    ans+=min(a,b+b));
    x--;
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: expected ';' before ')' token
   14 |     ans+=min(a,b+b));
      |                    ^
      |                    ;
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <map>
#include "Boolean.h"
#include "Complex.h"
#include "IdNo.h"
#include "VipMember.h"
#include "SeniorMember.h"
#include "Shape.h"
#include "Point.h"
#include "Rectangle.h"
#include "HorzLine.h"
#include "VertLine.h"
#include "Line.h"
//#include <bits/stdc++.h>

using namespace std;

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

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

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

#include <cstring>
#include <vector>
using namespace std;
 
const int MAX_N = 2e5 + 10;
int A, B, C, X, Y, ans;
 
int main() {
	ios::sync_with_stdio(false), cin.tie(0);
	cin >> A >> B >> C >> X >> Y;
	ans = A * X + B * Y;
 
	for (int c = 2; c < MAX_N; c += 2)
		ans = min(ans, c * C + max(0, X - c/2) * A + max(0, Y - c/2) * B);
 
	cout << ans << "\n";
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'ios' has not been declared
    9 |         ios::sync_with_stdio(false), cin.tie(0);
      |         ^~~
a.cc:9:38: error: 'cin' was not declared in this scope
    9 |         ios::sync_with_stdio(false), cin.tie(0);
      |                                      ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <vector>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout << ans << "\n";
      |         ^~~~
a.cc:16:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:18: error: expected '}' at end of input
   17 |         return 0;
      |                  ^
a.cc:8:12: note: to match this '{'
    8 | int main() {
      |            ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <map>
#include "Boolean.h"
#include "Complex.h"
#include "IdNo.h"
#include "VipMember.h"
#include "SeniorMember.h"
#include "Shape.h"
#include "Point.h"
#include "Rectangle.h"
#include "HorzLine.h"
#include "VertLine.h"
#include "Line.h"
//#include <bits/stdc++.h>

using namespace std;

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

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

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

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <queue>
#include <algorithm>
#include<iostream>
#include<vector>
#include<map>
#include<string>
#include <iomanip>
#include<deque>
#include<stack>
#include<set>
#include <numeric>

using namespace std;
typedef unsigned int uint;
typedef long long ll;
//typedef pair<int, int> P;
const int INF = 111111111;
const ll LLINF = 1e17 + 1;
const int DX[9] = { 0,0,1,-1, 1, 1, -1, -1, 0 }; // 4;４近傍
const int DY[9] = { 1,-1,0,0, 1, -1, 1, -1, 0 }; // 8:８近傍 9:(0,0)を含む
const int DIV = 1000000007; //10^9 + 7
const double PI = 3.14159265358979323846264338327950288;


int main() {

	//==================================
	cin.tie(nullptr);
	ios_base::sync_with_stdio(false);
	cout << fixed << setprecision(15);
	//==================================

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

	// Cを買うならA,Bを買ったほうがいい
	if (A + B <= 2 * C) {
		cout << A * X + B * Y;
		return 0;
	}

	//　A,Bを買うならCを買ったほうがいい
	else if (A >= 2 * C || B >= 2 * C) {
		cout << C * 2 * max(X, Y);
		return 0;
	}

	//　ミックス
	else {
		cout << C * 2 * min(X, Y) + A * (X - min(X, Y)) + B * (Y - min(X, Y));
		return "3";
	}









}	


Compiler output:
a.cc: In function 'int main()':
a.cc:55:24: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   55 |                 return "3";
      |                        ^~~
      |                        |
      |                        const char*
Language: C++

#include<iostream>
#include<cstdio>
#include<cmath>
#include<cstdlib>
#include<climits>
#include<string>
#include<algorithm>
#include<vector>
#include<queue>
#include<stack>
#include<numeric>
#include<map>
#include<set>
#include<bitset>
#include<regex>
using namespace std;
#define REP(i,m,n) for(int i = m; i < n; i++)
#define rep(i,n) REP(i,0,n)
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a)  (a).rbegin(),(a).rend()
#define dup(x,y) (((x)+(y)-1) / (y)) //整数型のまま切り上げ演算する
#define PI 3.14159265359

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: Java

import javafx.fxml.FXML;

import java.util.Scanner;

public class Main {
    public static void main(String args[]){
        Scanner scanner= new Scanner(System.in);
        int A,B,C,X,Y;
        A=scanner.nextInt();
        B=scanner.nextInt();
        C=scanner.nextInt();
        X=scanner.nextInt();
        Y=scanner.nextInt();
        int ans=(int)1e9;//1e9=10^9
        for(int i=0;i<X+1;i++){
            for(int j=0;j<Y+1;j++) {
                for(int k=0;k<2*(X+Y)+1;k++){
                    int Apizza=i;
                    int Bpizza=j;
                    int ABpizza=k;
                    if(Apizza+ABpizza/2>=X&&Bpizza+ABpizza/2>=Y){
                        ans=Math.min(ans,Apizza*A+Bpizza*B+ABpizza*C);
                    }
                }
            }
        }
        System.out.println(ans);
    }
}


Compiler output:
Main.java:1: error: package javafx.fxml does not exist
import javafx.fxml.FXML;
                  ^
1 error
Language: Java

import javafx.fxml.FXML;

import java.util.Scanner;

public class HalfandHalf {
    public static void main(String args[]){
        Scanner scanner= new Scanner(System.in);
        int A,B,C,X,Y;
        A=scanner.nextInt();
        B=scanner.nextInt();
        C=scanner.nextInt();
        X=scanner.nextInt();
        Y=scanner.nextInt();
        int ans=(int)1e9;//1e9=10^9
        for(int i=0;i<X+1;i++){
            for(int j=0;j<Y+1;j++) {
                for(int k=0;k<2*(X+Y)+1;k++){
                    int Apizza=i;
                    int Bpizza=j;
                    int ABpizza=k;
                    if(Apizza+ABpizza/2>=X&&Bpizza+ABpizza/2>=Y){
                        ans=Math.min(ans,Apizza*A+Bpizza*B+ABpizza*C);
                    }
                }
            }
        }
        System.out.println(ans);
    }
}


Compiler output:
Main.java:5: error: class HalfandHalf is public, should be declared in a file named HalfandHalf.java
public class HalfandHalf {
       ^
Main.java:1: error: package javafx.fxml does not exist
import javafx.fxml.FXML;
                  ^
2 errors
Language: C++

n*2*c;
        if(x>y){
            long long sn=x-y;
            ans1+=min(sn*a,sn*2*c);
        }
        else{
            long long sn=y-x;
            ans1+=min(sn*b,sn*2*c);
        }
    }
    ans2+=x*a+y*b;
    if(ans1!=0)
    cout << min(ans1,ans2) << endl;
    else
    cout << ans2 << endl;
    return 0;
}


Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n*2*c;
      | ^
a.cc:2:9: error: expected unqualified-id before 'if'
    2 |         if(x>y){
      |         ^~
a.cc:6:9: error: expected unqualified-id before 'else'
    6 |         else{
      |         ^~~~
a.cc:10:5: error: expected declaration before '}' token
   10 |     }
      |     ^
a.cc:11:5: error: 'ans2' does not name a type
   11 |     ans2+=x*a+y*b;
      |     ^~~~
a.cc:12:5: error: expected unqualified-id before 'if'
   12 |     if(ans1!=0)
      |     ^~
a.cc:14:5: error: expected unqualified-id before 'else'
   14 |     else
      |     ^~~~
a.cc:16:5: error: expected unqualified-id before 'return'
   16 |     return 0;
      |     ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^