Language: Java

//.h file code:

#include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<b;i++) #define rrep(i,a,b) for(int i=a;i>=b;i--) #define fore(i,a) for(@auto &i:a) #define all(x)(x).begin(),(x).end() #pragma GCC optimize("-O3") @using @namespace std;
void _main();
public:
virtual int main();
typedef_Renamed *long long;
const *int;
const *ll;
virtual template_Renamed<class T> bool_Renamed *chmax(T &a, const *T);
virtual template_Renamed<class T> bool_Renamed *chmin(T &a, const *T);

//.cpp file code:

int <missing_class_definition>::main()
{
	cin::tie(0);
	ios::sync_with_stdio(false);
	_main();
}

template_Renamed<class T> bool_Renamed *<missing_class_definition>::chmax(T &a, const *T)
{
	if (a < b)
	{
		a = b;
		return 1;
	}
	return 0;
}

template_Renamed<class T> bool_Renamed *<missing_class_definition>::chmin(T &a, const *T)
{
	if (b < a)
	{
		a = b;
		return 1;
	}
	return 0;
}
//.h file code:

public:
ll *A, *B, *C, *X, *Y;
//---------------------------------------------------------------------------------------------------
virtual void _main();

//.cpp file code:

void <missing_class_definition>::_main()
{
	cin >> A >> B >> C >> X >> Y;

	ll *ans = infl;
	rep(ab, 0, 201010)
	{
		ll *sm = C * ab;

		ll *x = X - ab / 2;
		ll *y = Y - ab / 2;

		if (0 < x)
		{
			sm += x * A;
		}
		if (0 < y)
		{
			sm += y * B;
		}

		chmin(ans, sm);
	}

	cout << ans << endl;
}


Compiler output:
Main.java:3: error: illegal character: '#'
#include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<b;i++) #define rrep(i,a,b) for(int i=a;i>=b;i--) #define fore(i,a) for(@auto &i:a) #define all(x)(x).begin(),(x).end() #pragma GCC optimize("-O3") @using @namespace std;
^
Main.java:3: error: class, interface, enum, or record expected
#include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<b;i++) #define rrep(i,a,b) for(int i=a;i>=b;i--) #define fore(i,a) for(@auto &i:a) #define all(x)(x).begin(),(x).end() #pragma GCC optimize("-O3") @using @namespace std;
        ^
Main.java:3: error: illegal character: '#'
#include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<b;i++) #define rrep(i,a,b) for(int i=a;i>=b;i--) #define fore(i,a) for(@auto &i:a) #define all(x)(x).begin(),(x).end() #pragma GCC optimize("-O3") @using @namespace std;
                        ^
Main.java:3: error: class, interface, enum, or record expected
#include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<b;i++) #define rrep(i,a,b) for(int i=a;i>=b;i--) #define fore(i,a) for(@auto &i:a) #define all(x)(x).begin(),(x).end() #pragma GCC optimize("-O3") @using @namespace std;
                                                       ^
Main.java:3: error: class, interface, enum, or record expected
#include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<b;i++) #define rrep(i,a,b) for(int i=a;i>=b;i--) #define fore(i,a) for(@auto &i:a) #define all(x)(x).begin(),(x).end() #pragma GCC optimize("-O3") @using @namespace std;
                                                           ^
Main.java:3: error: illegal character: '#'
#include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<b;i++) #define rrep(i,a,b) for(int i=a;i>=b;i--) #define fore(i,a) for(@auto &i:a) #define all(x)(x).begin(),(x).end() #pragma GCC optimize("-O3") @using @namespace std;
                                                                ^
Main.java:3: error: class, interface, enum, or record expected
#include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<b;i++) #define rrep(i,a,b) for(int i=a;i>=b;i--) #define fore(i,a) for(@auto &i:a) #define all(x)(x).begin(),(x).end() #pragma GCC optimize("-O3") @using @namespace std;
                                                                                                ^
Main.java:3: error: class, interface, enum, or record expected
#include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<b;i++) #define rrep(i,a,b) for(int i=a;i>=b;i--) #define fore(i,a) for(@auto &i:a) #define all(x)(x).begin(),(x).end() #pragma GCC optimize("-O3") @using @namespace std;
                                                                                                     ^
Main.java:3: error: illegal character: '#'
#include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<b;i++) #define rrep(i,a,b) for(int i=a;i>=b;i--) #define fore(i,a) for(@auto &i:a) #define all(x)(x).begin(),(x).end() #pragma GCC optimize("-O3") @using @namespace std;
                                                                                                          ^
Main.java:3: error: class, interface, enum, or record expected
#include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<b;i++) #define rrep(i,a,b) for(int i=a;i>=b;i--) #define fore(i,a) for(@auto &i:a) #define all(x)(x).begin(),(x).end() #pragma GCC optimize("-O3") @using @namespace std;
                                                                                                                                      ^
Main.java:3: error: illegal character: '#'
#include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<b;i++) #define rrep(i,a,b) for(int i=a;i>=b;i--) #define fore(i,a) for(@auto &i:a) #define all(x)(x).begin(),(x).end() #pragma GCC optimize("-O3") @using @namespace std;
                                                                                                                                            ^
Main.java:3: error: illegal character: '#'
#include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<b;i++) #define rrep(i,a,b) for(int i=a;i>=b;i--) #define fore(i,a) for(@auto &i:a) #define all(x)(x).begin(),(x).end() #pragma GCC optimize("-O3") @using @namespace std;
                                                                                                                                                                                ^
Main.java:3: error: class, interface, enum, or record expected
#include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<b;i++) #define rrep(i,a,b) for(int i=a;i>=b;i--) #define fore(i,a) for(@auto &i:a) #define all(x)(x).begin(),(x).end() #pragma GCC optimize("-O3") @using @namespace std;
                                                                                                                                                                                                                              ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
void _main();
^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
public:
      ^
Main.java:7: error: class, interface, enum, or record expected
typedef_Renamed *long long;
^
Main.java:8: error: class, interface, enum, or record expected
const *int;
^
Main.java:9: error: class, interface, enum, or record expected
const *ll;
^
Main.java:10: error: class, interface, enum, or record expected
virtual template_Renamed<class T> bool_Renamed *chmax(T &a, const *T);
^
Main.java:10: error: '{' expected
virtual template_Renamed<class T> bool_Renamed *chmax(T &a, const *T);
                                ^
Main.java:11: error: class, interface, enum, or record expected
virtual template_Renamed<class T> bool_Renamed *chmin(T &a, const *T);
^
Main.java:11: error: '{' expected
virtual template_Renamed<class T> bool_Renamed *chmin(T &a, const *T);
                                ^
Main.java:15: error: class, interface, enum, or record expected
int <missing_class_definition>::main()
^
Main.java:18: error: class, interface, enum, or record expected
	ios::sync_with_stdio(false);
	^
Main.java:19: error: class, interface, enum, or record expected
	_main();
	^
Main.java:20: error: class, interface, enum, or record expected
}
^
Main.java:22: error: '{' expected
template_Renamed<class T> bool_Renamed *<missing_class_definition>::chmax(T &a, const *T)
                        ^
Main.java:22: error: class, interface, enum, or record expected
template_Renamed<class T> bool_Renamed *<missing_class_definition>::chmax(T &a, const *T)
                                        ^
Main.java:27: error: class, interface, enum, or record expected
		return 1;
		^
Main.java:28: error: class, interface, enum, or record expected
	}
	^
Main.java:30: error: class, interface, enum, or record expected
}
^
Main.java:32: error: '{' expected
template_Renamed<class T> bool_Renamed *<missing_class_definition>::chmin(T &a, const *T)
                        ^
Main.java:32: error: class, interface, enum, or record expected
template_Renamed<class T> bool_Renamed *<missing_class_definition>::chmin(T &a, const *T)
                                        ^
Main.java:37: error: class, interface, enum, or record expected
		return 1;
		^
Main.java:38: error: class, interface, enum, or record expected
	}
	^
Main.java:40: error: class, interface, enum, or record expected
}
^
Main.java:43: error: class, interface, enum, or record expected
public:
      ^
Main.java:46: error: class, interface, enum, or record expected
virtual void _main();
^
Main.java:50: error: class, interface, enum, or record expected
void <missing_class_definition>::_main()
^
Main.java:54: error: class, interface, enum, or record expected
	ll *ans = infl;
	^
Main.java:55: error: class, interface, enum, or record expected
	rep(ab, 0, 201010)
	^
Main.java:59: error: class, interface, enum, or record expected
		ll *x = X - ab / 2;
		^
Main.java:60: error: class, interface, enum, or record expected
		ll *y = Y - ab / 2;
		^
Main.java:62: error: class, interface, enum, or record expected
		if (0 < x)
		^
Main.java:65: error: class, interface, enum, or record expected
		}
		^
Main.java:69: error: class, interface, enum, or record expected
		}
		^
Main.java:72: error: class, interface, enum, or record expected
	}
	^
Main.java:75: error: class, interface, enum, or record expected
}
^
48 errors