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

#include<iostream>
using namespace std;

int A,B,C,D,F;
double E;
double concentration(int a,int b,int c,int d){
  return 100.0*(d*D+c*C)/(100*a*A+100*b*B+c*C+d*D);
 }

int main(){
  cin>>A>>B>>C>>D>>E>>F;
  int water,sugar;
  double con;
  con=0.0;
  E=100.0*E/(100.0+E);
  for(int a=0;a*A*100<F;a++){
    for(int b=0;a*A*100+b*B*100<F;b++){
      for(int c=0;concentration(a,b,c,0)<=E&&a*A*100+b*B*100+c*C<F;c++){
        for(int d=0;concentration(a,b,c,d)<=E&&A*a*100+b*B*100+c*C+d*D<F;d++){
          if(con<concentration(a,b,c,d)){
            water=100*(a*A+b*B)+c*C+d*D;
            sugar=c*C+d*D;
            con=concentration(a,b,c,d);
          }
        }
      }
    }
  }
  cout<<water<<' '<<sugar<<endl;
}                                                                                               ~                                                                                                                              ~                                                                                                                              ~                                                                                                                              ~                                     

Compiler output:
a.cc:30:224: error: expected class-name before '~' token
   30 | }                                                                                               ~                                                                                                                              ~                                                                                                                              ~                                                                                                                              ~
      |                                                                                                                                                                                                                                ^
Language: C++

#include<iostream>
using namespace std;

int A,B,C,D,E,F;

double concentration(int a,int b,int c,int d){
  return 100.0*(d*D+c*C)/(100*a*A+100*b*B+c*C+d*D);
}

int main(){
  cin>>A>>B>>C>>D>>E>>F;
  int con,water,sugar;
  con=0
  for(int a=0;a*A*100<F;a++){
    for(int b=0;b*B*100<F;b++){
      for(int c=0;concentration(a,b,c,0)&&a*A*100+b*B*100+c*C<F;c++){
        for(int d=0;concentration(a,b,c,d)&&A*a+b*B+c*C+d*D;d++){
          if(con<concentration(a,b,c,d)){
            water=100*(a*A+b*B)+c*C+d*D;
            sugar=c*C+d*D;
            con=concentration(a,b,c,d);
          }
        }
      }
    }
  }
  cout<<water<<' '<<sugar<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: expected ';' before 'for'
   13 |   con=0
      |        ^
      |        ;
   14 |   for(int a=0;a*A*100<F;a++){
      |   ~~~   
a.cc:14:15: error: 'a' was not declared in this scope
   14 |   for(int a=0;a*A*100<F;a++){
      |               ^
Language: C++

#include<iostream>
using namespace std;

int A,B,C,D,E,F;

double concentration(int A,int B,int C,int D,int E,int F){
  return 100.0*(d*D+c*C)/(100*a*A+100*b*B+c*C+d*D);
}

int main(){
  cin>>A>>B>>C>>D>>E>>F;
  int con,water,sugar;
  con=0
  for(int a=0;a*A*100<F;a++){
    for(int b=0;b*B*100<F;b++){
      for(int c=0;concentration(a,b,c,0)&&a*A*100+b*B*100+c*C<F;c++){
        for(int d=0;concentration(a,b,c,d)&&A*a+b*B+c*C+d*D;d++){
          if(con<concentration(a,b,c,d)){
            water=100*(a*A+b*B)+c*C+d*D;
            sugar=c*C+d*D;
            con=concentration(a,b,c,d);
          }
        }
      }
    }
  }
  cout<<water<<' '<<sugar<<endl;
}

Compiler output:
a.cc: In function 'double concentration(int, int, int, int, int, int)':
a.cc:7:17: error: 'd' was not declared in this scope
    7 |   return 100.0*(d*D+c*C)/(100*a*A+100*b*B+c*C+d*D);
      |                 ^
a.cc:7:21: error: 'c' was not declared in this scope
    7 |   return 100.0*(d*D+c*C)/(100*a*A+100*b*B+c*C+d*D);
      |                     ^
a.cc:7:31: error: 'a' was not declared in this scope
    7 |   return 100.0*(d*D+c*C)/(100*a*A+100*b*B+c*C+d*D);
      |                               ^
a.cc:7:39: error: 'b' was not declared in this scope
    7 |   return 100.0*(d*D+c*C)/(100*a*A+100*b*B+c*C+d*D);
      |                                       ^
a.cc: In function 'int main()':
a.cc:13:8: error: expected ';' before 'for'
   13 |   con=0
      |        ^
      |        ;
   14 |   for(int a=0;a*A*100<F;a++){
      |   ~~~   
a.cc:14:15: error: 'a' was not declared in this scope
   14 |   for(int a=0;a*A*100<F;a++){
      |               ^
Language: C++

#include<iostream>
using namespace std;
int A,B,C,D,E,F;

double concentration(int a,int b,int c,int d){
  return 100.0*(c+d)/(100*a+100*b+c+d)
}

int main(){
  cin>>A>>B>>C>>D>>E>>F;
  int con=0;
  int water,sugar;
  
  for(int a=0;a*A*100<F;a++){
    for(int b=0;b*B*100+a*A*100<F;b++){
      for(int c=0;concentration(a,b,c,0)<E;c++){
        for(int d=0;concentration(a,b,c,d)<E;d++){
          if(concentration(a,b,c,d)){
            sugar=c+d;
            water=(a+b)*100+sugar;
          }
        }
      }
    }         
  }
  cout<<water<<' '<<sugar<<endl;
}

Compiler output:
a.cc: In function 'double concentration(int, int, int, int)':
a.cc:6:39: error: expected ';' before '}' token
    6 |   return 100.0*(c+d)/(100*a+100*b+c+d)
      |                                       ^
      |                                       ;
    7 | }
      | ~
Language: C++

#include<iostream>
using namespace std;
int A,B,C,D,E,F;

double concentration(int a,int b,int c,int d){
  return 100.0*(c+d)/(100*a+100*b+c+d)
}

int main(){
  cin>>A>>B>>C>>D>>E>>F;
  int con=0;
  int water,sugar;
  
  for(int a=0;a*A*100<F;a++){
    for(int b=0;b*B*100+a*A*100<F;b++){
      for(int c=0;concentration(a,b,c,0)<E;c++){
        for(int d=0;concentration(a,b,c,d)<E;d++{
          if(concentration(a,b,c,d){
            sugar=c+d;
            water=(a+b)*100+sugar;
          }
        }
      }
    }         
  }
  cout<<water<<' '<<sugar<<endl;
}

Compiler output:
a.cc: In function 'double concentration(int, int, int, int)':
a.cc:6:39: error: expected ';' before '}' token
    6 |   return 100.0*(c+d)/(100*a+100*b+c+d)
      |                                       ^
      |                                       ;
    7 | }
      | ~                                      
a.cc: In function 'int main()':
a.cc:17:49: error: expected ')' before '{' token
   17 |         for(int d=0;concentration(a,b,c,d)<E;d++{
      |            ~                                    ^
      |                                                 )
a.cc:18:36: error: expected ')' before '{' token
   18 |           if(concentration(a,b,c,d){
      |             ~                      ^
      |                                    )
a.cc:22:9: error: expected primary-expression before '}' token
   22 |         }
      |         ^
Language: C++

#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
    int A, B, C, D, E, F;
    int water;
    int suger;
    cin >> A;
    cin >> B;
    cin >> C;
    cin >> D;
    cin >> E;
    cin >> F;
    
    int beforeMax = 100000000;
    while (true)
    {
        int maxSuger = 0;
        int largeSuger = (C > D) ? C : D;
        int smallSuger = (C > D) ? D : C;
        int tempSuger;
        int tempWater;

        bool Calculated;
        for (int s = 0;; s++)
        {
            Calculated = false;
            for (int l = 0;; l++)
            {
                tempSuger = smallSuger * s + largeSuger * l;
                (tempWater = F - tempSuger);
                if (tempWater > 0 && (double)tempSuger * 100 / (double)tempWater <= E)
                {
                    Calculated = true;
                    if (maxSuger < tempSuger && tempSuger < beforeMax)
                    {
                        maxSuger = tempSuger;
                    }
                }
                else
                {
                    break;
                }
            }
            if (Calculated == false)
                break;
        }

        int largeWater = (A > B) ? A : B;
        int smallWater = (A > B) ? B : A;
        int minWater = F;
        for (int s = 0;; s++)
        {
            Calculated = false;
            for (int l = 0;; l++)
            {
                tempWater = s * smallWater * 100 + largeWater * 100 * l;
                if (maxSuger + tempWater > F)
                    break;
                else
                {
                    Calculated = true;
                    if (tempWater != 0 && minWater > tempWater)
                    {
                        minWater = tempWater;
                    }
                }
            }
            if (Calculated == false)
                break;
        }
        
        if((100 * (double)maxSuger) / ((double)minWater)  <= E)
        {
            cout << maxSuger + minWater << " " << maxSuger;
            return 0;
        }
        else
        {
            beforeMax = maxSuger;
        }
    }
}

Compiler output:
a.cc:2:10: fatal error: conio.h: No such file or directory
    2 | #include <conio.h>
      |          ^~~~~~~~~
compilation terminated.
Language: Java

package abc074;

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 d=scanner.nextInt();
  int e=scanner.nextInt();
  int f=scanner.nextInt();
  scanner.close();
  double concentration=0;
  int total=0;
  int sugar=0;
  for(int na=0;a*na*100<f;na++)
   for(int nb=0;a*na*100+b*nb*100<f;nb++)
    for(int nc=0;a*na*100+b*nb*100+c*nc<f;nc++)
     for(int nd=0;a*na*100+b*nb*100+c*nc+d*nd<f;nd++)
      if(c*nc+d*nd<=e*(a*na+b*nb)) if((double)(c*nc+d*nd)/(double)(a*na*100+b*nb*100+c*nc+d*nd)>concentration){
       concentration=(double)(c*nc+d*nd)/(double)(a*na*100+b*nb*100+c*nc+d*nd);
       total=a*na*100+b*nb*100+c*nc+d*nd;
       sugar=c*nc+d*nd;
       System.out.println(na+" "+nb+" "+nc+" "+nd);
      }
  System.out.println(total+" "+sugar);
 }
}


Compiler output:
Main.java:5: error: cannot find symbol
  Scanner scanner=new Scanner(System.in);
  ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
  Scanner scanner=new Scanner(System.in);
                      ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

a = list(map(int,input().split()))
big = a[1] * 100
small = a[0] * 100
concentration = 0
maxtotal = 0
maxsugar = 0
timesb = int(a[5] / big)
timess = int(a[5] / small)
for i in range(timesb + 1):
	waterb = big * i
	for j in range(timess + 1):
		waters = small * j
		watert = waterb + waters
		if watert >= a[5]:
			break
		else:
			for c in range(0,a[5] - watert,a[2]):
				for d in range(0,a[5] - watert - c,a[3]):
					sugart = c + d
					total = watert + sugart
					if watert != 0 and total <= a[5] and sugart <= (watert / 100) * a[4]:
						tempconcentration = (sugart / total) * 100
						if tempconcentration > concentration:
							concentration = (sugart / total) * 100
							maxtotal = total
							maxsugar = sugart
print('{0} {1}'.format(maxtotal,maxsugar))

Compiler output:
a.cc:27:7: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
   27 | print('{0} {1}'.format(maxtotal,maxsugar))
      |       ^~~~~~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a = list(map(int,input().split()))
      | ^
Language: Java

import java.util.Scanner;
 
/**
 * お遊び
 *
 * @author s-sugimoto
 */
public class Main {
 
	/**
	 * 隠蔽
	 */
	private Main() {
	}
 
	/**
	 * メイン
	 *
	 * @param args 起動引数
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		// 100A
		double a = scanner.nextInt();
		// 100B
		double b = scanner.nextInt();
		// C
		double c = scanner.nextInt();
		// D
		double d = scanner.nextInt();
		// 砂糖は100GあたりEとけるらしい
		double e = scanner.nextInt();
		// 砂糖と水の質量の合計がF
		double f = scanner.nextInt();
 
		int satoumizu = 100 * a;
		int satou = 0;
		double noudo = 0.000001;
		for (int i = 0; i * a * 100 < f; i++) {
			for (int j = 0; (i * a + j * b) * 100 < f; j++) {
				// 溶かすことのできる砂糖の量
				int mizu = (int)((i * a + j * b) * 100);
				int satouLimit = (int)((i * a + j * b) * e);
				for (int k = 0; k * c <= satouLimit && mizu + satouLimit <= f; k++) {
					int dsSatouLimitCount = (int) ((satouLimit - k * c) / d);
					int newSatou = (int)(k * c + dsSatouLimitCount * d);
					int newSatoumizu = (int)((i * a + j * b) * 100 + newSatou);
 
					if (i + j != 0 && k + dsSatouLimitCount != 0) {
						// double newnoudo = k * c + dsSatouLimitCount * d / ((i * a + j * b) * 100 + tmpSatou);
						double newnoudo = newSatou * 100 / newSatoumizu;
						// System.out.println(String.format("砂糖水の量:%f,cの砂糖:%f,dの砂糖%f,総砂糖:%f,濃度:%f",
						// (i * a + j * b) * 100 + newSatou, c, d, newSatou, newnoudo));
 
						if (noudo < newnoudo && satoumizu <= f) {
							satou = newSatou;
							satoumizu = newSatoumizu;
							noudo = newnoudo;
						}
					}
				}
			}
		}
 
		System.out.println((int) satoumizu + " " + (int) satou);
	}
}

Compiler output:
Main.java:36: error: incompatible types: possible lossy conversion from double to int
		int satoumizu = 100 * a;
		                    ^
1 error
Language: Java

import java.util.Scanner;
 
/**
 * お遊び
 *
 * @author s-sugimoto
 */
public class Main {
 
	/**
	 * 隠蔽
	 */
	private Main() {
	}
 
	/**
	 * メイン
	 *
	 * @param args 起動引数
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		// 100A
		double a = scanner.nextInt();
		// 100B
		double b = scanner.nextInt();
		// C
		double c = scanner.nextInt();
		// D
		double d = scanner.nextInt();
		// 砂糖は100GあたりEとけるらしい
		double e = scanner.nextInt();
		// 砂糖と水の質量の合計がF
		double f = scanner.nextInt();
 
		int satoumizu = 100 * a;
		int satou = 0;
		double noudo = 0.000001;
		for (int i = 0; i * a * 100 < f; i++) {
			for (int j = 0; (i * a + j * b) * 100 < f; j++) {
				// 溶かすことのできる砂糖の量
				int mizu = (i * a + j * b) * 100;
				int satouLimit = (i * a + j * b) * e;
				for (int k = 0; k * c <= satouLimit && mizu + satouLimit <= f; k++) {
					int dsSatouLimitCount = (int) ((satouLimit - k * c) / d);
					int newSatou = k * c + dsSatouLimitCount * d;
					int newSatoumizu = (i * a + j * b) * 100 + newSatou;
 
					if (i + j != 0 && k + dsSatouLimitCount != 0) {
						// double newnoudo = k * c + dsSatouLimitCount * d / ((i * a + j * b) * 100 + tmpSatou);
						double newnoudo = newSatou * 100 / newSatoumizu;
						// System.out.println(String.format("砂糖水の量:%f,cの砂糖:%f,dの砂糖%f,総砂糖:%f,濃度:%f",
						// (i * a + j * b) * 100 + newSatou, c, d, newSatou, newnoudo));
 
						if (noudo < newnoudo && satoumizu <= f) {
							satou = newSatou;
							satoumizu = newSatoumizu;
							noudo = newnoudo;
						}
					}
				}
			}
		}
 
		System.out.println((int) satoumizu + " " + (int) satou);
	}
}

Compiler output:
Main.java:36: error: incompatible types: possible lossy conversion from double to int
		int satoumizu = 100 * a;
		                    ^
Main.java:42: error: incompatible types: possible lossy conversion from double to int
				int mizu = (i * a + j * b) * 100;
				                           ^
Main.java:43: error: incompatible types: possible lossy conversion from double to int
				int satouLimit = (i * a + j * b) * e;
				                                 ^
Main.java:46: error: incompatible types: possible lossy conversion from double to int
					int newSatou = k * c + dsSatouLimitCount * d;
					                     ^
Main.java:47: error: incompatible types: possible lossy conversion from double to int
					int newSatoumizu = (i * a + j * b) * 100 + newSatou;
					                                         ^
5 errors
Language: C++

#include <cstdint>
#include <iostream>

using namespace std;

int32_t main()
{
  int32_t A, B, C, D, E, F;

  cin >> A >> B >> C >> D >> E >> F;

  int32_t water = 0;
  int32_t sugar = 0;

  for (int32_t i = 0; (100 * A * i) <= F; i++) {
    for (int32_t j = 0; (100 * B * j) <= F; j++) {
      for (int32_t k = 0; (C * k) <= F; k++) {
        for (int32_t l = 0; (D * l) <= F; l++) {
          int32_t x = A * 100 * i + B * 100 * j;
          int32_t y = C * k + D * l;
          if (((x + y) <= F) && ((y * 100) <= (x * E)) && ((sugar * (x + y)) < (y * (water + sugar)))) {
            max_dencity = dencity;
            water = x;
            sugar = y;
          }
        }
      }
    }
  }

  cout << water + sugar << " " << sugar << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:22:13: error: 'max_dencity' was not declared in this scope
   22 |             max_dencity = dencity;
      |             ^~~~~~~~~~~
a.cc:22:27: error: 'dencity' was not declared in this scope
   22 |             max_dencity = dencity;
      |                           ^~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main(void){
	int a,b,c,d,e,f;
	int ans1=0, ans2=0;
	cin >> a >> b >> c >> d >> e >> f;
	a*=100; b*=100;
	for(int A=0; a*A<=f; A++){
		for(int B=0; b*B+a*A<=f; B++){
			for(int C=0; a*A+b*B+c*C<=f; C++){
				for(int D=0; a*A+b*B+c*C+d*D<=f; D++){
					int suger=c*C+d*D, water=a*A+b*B;
					if(suger > water*e/100)break;
					if(suger/(water+suger)>=ans)ans1=suger/(water+suger);
				}
			}
		}
	}
	cout << ans1 << ' ' << ans2 << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:65: error: 'ans' was not declared in this scope; did you mean 'ans2'?
   15 |                                         if(suger/(water+suger)>=ans)ans1=suger/(water+suger);
      |                                                                 ^~~
      |                                                                 ans2
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int a, b, c, d, e, f;
	cin >> a >> b >> c >> d >> e >> f;
	int aa = 100 * a, bb = 100 * b;
	int r_num = 0, r_den = 1;
	int r_sugar = 0, r_sugarwater = ０;
	
	for(int ia=0; aa*ia<=f; ia++)
	{
		int r1 = f - aa*ia;
		for(int ib=0; bb*ib<=r1; ib++)
		{
			int r2 = r1 - bb*ib;
			for(int ic=0; c*ic<=r2; ic++)
			{
				int r3 = r2 - c*ic;
				for(int id=0; d*id<=r3; id++)
				{
					int water = aa*ia + bb*ib;
					int sugar_capacity = water / 100 * e;
					int sugar = c*ic + d*id;
					if(sugar <= sugar_capacity)
					{
						int x_num = sugar;
						int x_den = sugar + water;
						if(x_num*r_den >= r_num*x_den)
						{
							r_num = x_num;
							r_den = x_den;
							r_sugar = sugar;
							r_sugarwater = sugar + water;
						}
					}
					
				}
			}
		}
	}
	cout << r_sugarwater << " " << r_sugar << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:41: error: '\U0000ff10' was not declared in this scope
   10 |         int r_sugar = 0, r_sugarwater = ０;
      |                                         ^~
Language: C++

#include <iostream>
#include <cmath>
#include <vector>
#include <string>
#include <map>
#include <algorithm>
#include <tuple>
#include <set>
#include <stack>
#include <queue>
#include <deque>
#define REP(i, n) for(LL i = 0;i < n;i++)
#define REPR(i, n) for(LL i = n;i >= 0;i--)
#define FOR(i, m, n) for(LL i = m;i < n;i++)
#define FORR(i, m, n) for(LL i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define pb(a) push_back(a)
#define all(x) (x).begin(),(x).end()
#define INF 999999999
#define MOD 1000000007
using namespace std;
typedef long long LL;
//typedef LL int;
typedef pair<int, int> P;
typedef pair<LL, LL> LP;
typedef pair<int, P> PP;
typedef pair<LL, LP> LPP;
int dy[]={0, 0, 1, -1, 0};
int dx[]={1, -1, 0, 0, 0};

int a, b, c, d, e, f;
int ans_f = 0, ans_s = 0;
double max_noudo = 0;

int main(){
    cin >> a >> b >> c >> d >> e >> f;

    int i = 0, j = 0, k = 0, l = 0;
    while(1){
        if(100*i*a + 100*j*b + k*c + l*d > f) break;
        j = 0;
        while(1){
            if(100*i*a + 100*j*b + k*c + l*d > f) break;
            k = 0;
            while(1){
                if(100*i*a + 100*j*b + k*c + l*d > f) break;
                l = 0;
                while(1){
                    if(100*i*a + 100*j*b + k*c + l*d > f) break;
                    int sugar = c*k + d*l;
                    if(water + sugar != 0 && water != 0 && (i*a+j*b) * e >= sugar){
                        double noudo_current = double((100 * sugar)) / (water + sugar);
                        if(noudo_current > max_noudo){
                            max_noudo = noudo_current;
                            ans_f = water + sugar;
                            ans_s = sugar;
                        }
                    }
                    l++;
                }
                k++;
            }
            j++;
        }
        i++;
    }

    cout << ans_f << " " << ans_s << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:52:24: error: 'water' was not declared in this scope
   52 |                     if(water + sugar != 0 && water != 0 && (i*a+j*b) * e >= sugar){
      |                        ^~~~~
Language: C

#include<stdio.h>
float keisan(int in_water,int in_suger,float remit_c,int remit_f);

int main()
{
    int a,b,c,d;
    float e;
    int f;
    int A,B;
    float E;
  
    int water = 0;
    int suger = 0;
    float couse = 0;
  
    float ad, ac, bd, bc;      
    float en_max;
    int ope;
  
    scanf("%d %d %d %d %f %d", &a, &b, &c, &d, &e, &f);
    A = 100 * a;
    B = 100 * b;
    E = 100 / e;
    
    while (0){
      ad = keisan(A,d,E,f);
      ac = keisan(A,e,E,f);
      bd = keisan(B,d,E,f);
      bc = keisan(B,c,E,f);
      if(ad > ac){
        en_max = ad;
        ope =1; //1: A,D
      }
      else {
        en_max = ac;
        ope =2; //2:A,C
      }
      if(en_max < bd){
        en_max = bd;
        ope = 3;
      }
      if(en_max < bc){
        en_max = bc;
        ope = 4;
      }
      switch(ope){
        case 1: {water = water + A;
                 suger = suger + d;
                 break;
                }
        case 2: {water = water + A;
                suger = suger + c;
                break;
               }
           case 3: {water = water + B;
                suger = suger + d;
                break;
               }
           case 4: {water = water + B;
                suger = suger + c;
                break;
               }
           default: break;
        }
              
      if(en_max == 0)
        break;      
    }
  
    // 出力
    printf("%d %d\n", water + suger, suger);
    return 0;
}

float keisan(in_water, in_suger, remit_c, remit_f){
  float en_cause = 0;
  en_cause = ((100 * in_suger) /(in_water +in_suger));
  if ((remit_c >= en_cause) & remit_f >= (in_water + in_suger) )
  {
    return en_cause;
  }
  else
  {
    return 0;
  }
}
  

Compiler output:
main.c: In function 'keisan':
main.c:75:7: error: type of 'in_water' defaults to 'int' [-Wimplicit-int]
   75 | float keisan(in_water, in_suger, remit_c, remit_f){
      |       ^~~~~~
main.c:75:7: error: type of 'in_suger' defaults to 'int' [-Wimplicit-int]
main.c:75:7: error: type of 'remit_c' defaults to 'int' [-Wimplicit-int]
main.c:75:7: error: type of 'remit_f' defaults to 'int' [-Wimplicit-int]
main.c:75:7: error: argument 'remit_c' doesn't match prototype
main.c:2:7: error: prototype declaration
    2 | float keisan(int in_water,int in_suger,float remit_c,int remit_f);
      |       ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
static const int INFTY = 2000000000;
static const int NIL = -1;
typedef long long ll;
 
int main(){
    double a,b,c,d,e,f;
    scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f);
    a = a*100;
    b = b*100;
    e = 100*e/(100+e);
    if(min(min(a+c,a+d),min(b+c,b+d))>=f){
        int ans = min(a,b)
        printf("%d %d\n",ans,0);
        return 0;
    }
    double MAXper=0,anssugar,answater,per,sugar,water;
    for(double i=0;i*a<=f;i += 1){
        for(double j=0;i*a+j*b<=f;j += 1){
            water = i * a + j * b;
            for(double k=0;water+k*c<=f;k += 1){
                for(double m=0;water+k*c+m*d<=f;m += 1){
                    sugar = k * c + m * d;
                    if(water+sugar!=0){
                        per = 100*(sugar/(sugar+water));
                        if(per<=e && per>MAXper){
                            MAXper = per;
                            answater = water+sugar;
                            anssugar = sugar;
                        }
                    }
                }
            }
        }
    }
    int ans1,ans2;
    ans1 = answater; ans2 = anssugar;
 
    printf("%d %d\n",ans1,ans2);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: expected ',' or ';' before 'printf'
   15 |         printf("%d %d\n",ans,0);
      |         ^~~~~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <string>
#include<algorithm>
using namespace std;
 
const long long MAX=1000000001;
//bool say[1000000001]={};

int main(){
    int  A,B,C,D,E,F;
    cin >> A>> B>> C>> D>> E>> F;
    int a,b,c,d,maxW=0,maxG=0;
    double n,maxn=0;
    int i=0;
    int s,t;
    double maxE=(double)(E)/(E+100)*100;
    for(d=0;d*D<F;d++){
        for(c=0;c*C<F;c++){
            for(b=0;b*100*B<F;b++){
                for(a=0;a*100*A<F;a++){
                    if((a*100*A+b*100*B+c*C+d*D >=F || a*100*A+b*100*B+c*C+d*D==0)==0){
                        s=c*C + d*D;
                        t=a*100*A + b*100*B + c*C + d*D;
                        n=((double)s/(double)t)*100.0;
                        if(n>maxn && n<=maxE &&(a+b!==0)){
                            maxn=n;
                            maxW=a*100*A+b*100*B;
                            maxG=c*C+d*D;
                        }
                    }
                }
            }
        }
    }

    printf("%d %d\n",maxW+maxG,maxG);
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:54: error: expected primary-expression before '=' token
   26 |                         if(n>maxn && n<=maxE &&(a+b!==0)){
      |                                                      ^
Language: C++

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

typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;

#define fi first
#define se second
#define repl(i,a,b) for(ll i=(ll)(a);i<=(ll)(b);i++)
#define rep(i,n) repl(i,0,n-1)
#define each(itr,v) for(auto itr:v)
#define pb push_back
#define all(x) (x).begin(),(x).end()
#define dbg(x) cout<<#x"="<<x<<endl
#define mmax(x,y) (x>y?x:y)
#define mmin(x,y) (x<y?x:y)
#define maxch(x,y) x=mmax(x,y)
#define minch(x,y) x=mmin(x,y)
#define uni(x) x.erase(unique(all(x)),x.end())
#define exist(x,y) (find(all(x),y)!=x.end())
#define bcnt __builtin_popcount

#define INF INT_MAX/3

double per(int water, int suger){
return double(suger*100)/double(water+suger);
}

int main(){
  cin.sync_with_stdio(false);
  int a,b,c,d,e,f;
  cin >> a >> b >> c >> d >> e >> f;
  int p = double(e*100)/double(e+100);
  int ans = 0;
  int w1 = a;
  int w2 = b;
  int w3 = c;
  while(per(aw,s) > p){
    aw += w;
  }
  cout << w+s << " " << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:13: error: 'aw' was not declared in this scope; did you mean 'a'?
   39 |   while(per(aw,s) > p){
      |             ^~
      |             a
a.cc:39:16: error: 's' was not declared in this scope
   39 |   while(per(aw,s) > p){
      |                ^
a.cc:40:11: error: 'w' was not declared in this scope; did you mean 'w3'?
   40 |     aw += w;
      |           ^
      |           w3
a.cc:42:11: error: 'w' was not declared in this scope; did you mean 'w3'?
   42 |   cout << w+s << " " << s << endl;
      |           ^
      |           w3
a.cc:42:13: error: 's' was not declared in this scope
   42 |   cout << w+s << " " << s << endl;
      |             ^
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <set>
#include <vector>
#include <string>

using namespace std;

const int CMax = 100002;

int a, b, c, d, e, f, atss, atsw;
double md;

int main ()
{
    scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f);

    for (int i = 0; i*100*a <= f; i++) {
        for (int j = 0; i*100*a + j*100*b <= f; j++) {
            for (int k = 0; (i + j == 0 || (double)(k*c) / (double)(i*a + j*b) <= e) && i*100*a + j*100*b + k*c <= f; k++) {
                for (int l = 0; (i + j == 0 || (double)(k*c + l*d) / (double)(i*a + j*b) <= e) && i*100*a + j*100*b + k*c + l*d <= f; l++) {
                    if ((i + j) > 0 && (100.0 * (double)(k*c + l*d))/(double)(i*100*a + j*100*b + k*c + l*d) > md) {
                        atss = k*c + l*d;
                        atsw = i*100*a + j*100*b + k*c + l*d;
                        md = (100.0 * (double)(k + l))/(double)(i*100*a + j*100*b + k + l);
                    }
                }
            }
        }
    }

    printf("%d %d\n", atsw == 0 ? 100*a, atss);
}



Compiler output:
a.cc: In function 'int main()':
a.cc:34:46: error: expected ':' before ')' token
   34 |     printf("%d %d\n", atsw == 0 ? 100*a, atss);
      |                                              ^
      |                                              :
a.cc:34:46: error: expected primary-expression before ')' token
Language: Java

			double maxden = 0.;
			double limden = (double)E / (100 + E);
			int ans1 = 0;
			int ans2 = 0;
			int w = 0;
			int s = 0;

			for (int i = 0; (100 * A * i) <= F; i++) {
				w = 100 * A * i;
				for (int j = 0; (w + 100 * B * j) <= F; j++) {
					w = w + 100 * B * j;
					for (int t = 0; w + C*t <= F; t++) {
						s = C*t;
						for (int k = 0; w + s + D*k <=F; k++) {
							s = s + D*k;
							double den = 0.;
							if (w > 0) {
								den = (double) s / (w + s);
							}
							if (den > maxden && den <= limden) {
								ans1 = w + s;
								ans2 = s;
								maxden = den;
							}
						}
					}
				}
			}

			System.out.println(ans1 + " " + ans2);

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
			double maxden = 0.;
			^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: class, interface, enum, or record expected
			for (int i = 0; (100 * A * i) <= F; i++) {
			^
Main.java:8: error: class, interface, enum, or record expected
			for (int i = 0; (100 * A * i) <= F; i++) {
			                ^
Main.java:8: error: class, interface, enum, or record expected
			for (int i = 0; (100 * A * i) <= F; i++) {
			                                    ^
Main.java:10: error: class, interface, enum, or record expected
				for (int j = 0; (w + 100 * B * j) <= F; j++) {
				^
Main.java:10: error: class, interface, enum, or record expected
				for (int j = 0; (w + 100 * B * j) <= F; j++) {
				                ^
Main.java:10: error: class, interface, enum, or record expected
				for (int j = 0; (w + 100 * B * j) <= F; j++) {
				                                        ^
Main.java:12: error: class, interface, enum, or record expected
					for (int t = 0; w + C*t <= F; t++) {
					^
Main.java:12: error: class, interface, enum, or record expected
					for (int t = 0; w + C*t <= F; t++) {
					                ^
Main.java:12: error: class, interface, enum, or record expected
					for (int t = 0; w + C*t <= F; t++) {
					                              ^
Main.java:14: error: class, interface, enum, or record expected
						for (int k = 0; w + s + D*k <=F; k++) {
						^
Main.java:14: error: class, interface, enum, or record expected
						for (int k = 0; w + s + D*k <=F; k++) {
						                ^
Main.java:14: error: class, interface, enum, or record expected
						for (int k = 0; w + s + D*k <=F; k++) {
						                                 ^
Main.java:17: error: class, interface, enum, or record expected
							if (w > 0) {
							^
Main.java:19: error: class, interface, enum, or record expected
							}
							^
Main.java:22: error: class, interface, enum, or record expected
								ans2 = s;
								^
Main.java:23: error: class, interface, enum, or record expected
								maxden = den;
								^
Main.java:24: error: class, interface, enum, or record expected
							}
							^
18 errors
Language: C

a, b, c, d, e, f = map(int, input().split(" "))

max = 0
water = 0
sugar = 0
flag = True

i = 1
while(f >= 100 * a * i and flag == True):
    j = 0
    while(f >= 100 * (a * i + b * j) and flag == True):
        k = 0
        while(f >= 100 * (a * i + b * j) + c * k and flag == True):
            l = 0
            while(f >= 100 * (a * i + b * j) + c * k + d * l and flag == True):
                n = 100 * (c * k + d * l) / (100 * (a * i + b * j) + c * k + d * l)
                if(n > 100 * e / (100 + e)):
                    break
                if(max < n):
                    max = n
                    if(water * 2 == 100 * (a * i + b * j) and sugar * 2 == c * k + d * l):
                        flag = not(flag)
                    water = 100 * (a * i + b * j)
                    sugar = c * k + d * l
                l += 1
            k += 1
        j += 1
    i += 1

print("%d %d" %(water + sugar, sugar))

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a, b, c, d, e, f = map(int, input().split(" "))
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:4: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a, b, c, d, e, f = map(int, input().split(" "))
      |    ^
main.c:1:7: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
    1 | a, b, c, d, e, f = map(int, input().split(" "))
      |       ^
main.c:1:10: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
    1 | a, b, c, d, e, f = map(int, input().split(" "))
      |          ^
main.c:1:13: error: type defaults to 'int' in declaration of 'e' [-Wimplicit-int]
    1 | a, b, c, d, e, f = map(int, input().split(" "))
      |             ^
main.c:1:16: error: type defaults to 'int' in declaration of 'f' [-Wimplicit-int]
    1 | a, b, c, d, e, f = map(int, input().split(" "))
      |                ^
main.c:1:20: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    1 | a, b, c, d, e, f = map(int, input().split(" "))
      |                    ^~~
main.c:1:24: error: expected expression before 'int'
    1 | a, b, c, d, e, f = map(int, input().split(" "))
      |                        ^~~
main.c:3:1: error: expected ',' or ';' before 'max'
    3 | max = 0
      | ^~~
Language: C++

#include <stdio.h>

int main() {
    int sat_m,sat_o;
    int a,b,c,d,e,f;
    scanf("%d %d %d %d %d %d", &a, &b, &c, &d,&e, &f, );

    // abcd
    cas[0][0] = 0;
    if( a+b+c+d < f) {
        cas[0][0] = a+b+c+d;
    }
    cas[0][1] = 0;
    if(c+d < (a+b)*e) {
        cas[0][1] = c+d;
    }

    // abc
    cas[1][0] = 0;
    if( a+b+c < f) {
        cas[1][0] = a+b+c;
    }
    cas[1][1] = 0;
    if(c < (a+b)*e) {
        cas[1][1] = c;
    }

    // abd
    cas[2][0] = 0;
    if( a+b+d < f) {
        cas[2][0] = a+b+d;
    }
    cas[2][1] = 0;
    if(d < (a+b)*e) {
        cas[2][1] = d;
    }

    // acd
    cas[3][0] = 0;
    if( a+c+d < f) {
        cas[3][0] = a+c+d;
    }
    cas[3][1] = 0;
    if(c+d < a*e) {
        cas[3][1] = c+d;
    }

    // bcd
    cas[4][0] = 0;
    if( b+c+d < f) {
        cas[4][0] = b+c+d;
    }
    cas[4][1] = 0;
    if(c+d < (b*e) {
        cas[4][1] = c+d;
    }

    // max
    sat_m = 0;
    sat_o = 0;
    for (int i=0; i < 5; i++){
        if(sat_o < cas[i][1]) {
            sat_m = cas[i][0];
            sat_o = cas[i][1];
        }
    }

    printf("%d", sat_m, sat_o);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:55: error: expected primary-expression before ')' token
    6 |     scanf("%d %d %d %d %d %d", &a, &b, &c, &d,&e, &f, );
      |                                                       ^
a.cc:9:5: error: 'cas' was not declared in this scope
    9 |     cas[0][0] = 0;
      |     ^~~
a.cc:54:19: error: expected ';' before '{' token
   54 |     if(c+d < (b*e) {
      |                   ^~
      |                   ;
a.cc:59:14: error: expected ')' before ';' token
   59 |     sat_m = 0;
      |              ^
      |              )
a.cc:54:7: note: to match this '('
   54 |     if(c+d < (b*e) {
      |       ^
Language: Java

package com.codeIQ;

import java.util.*;

public class test1 {
	public static void main(String[] args) throws Exception {
		try (Scanner sc = new Scanner(System.in)) {
			int A = 1;
			int B = 2;
			int C = 1;
			int D = 2;
			int E = 10;
			int F = 1000;
			double maxden = 0.;
			double limden = (double)E / (100 + E);
			int ans1 = 0;
			int ans2 = 0;
			int w = 0;
			int s = 0;

			for (int i = 0; (100 * A * i) <= F; i++) {
				w = 100 * A * i;
				for (int j = 0; (w + 100 * B * j) <= F; j++) {
					w = w + 100 * B * j;
					for (int t = 0; t <= 30; t++) {
						s = t;
						for (int k = 0; k <= 30; k++) {
							s = s + k;
							double den = 0.;
							if (w > 0) {
								den = (double) s / (w + s);
							}
							if (den > maxden && den < limden) {
								ans1 = w + s;
								ans2 = s;
								maxden = den;
							}
						}
					}
				}
			}

			System.out.println(ans1 + " " + ans2);
		}
	}
}


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

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

int main() {

	int a_suger, b_suger, c_water, d_water, e_con, f_max;
	int res_water = 0, res_sugar = 0, res_concentration = 0;

	int temp;

	int i, j, k, l;

	scanf("%d %d %d %d %d %d", &a_suger, &b_suger, &c_water, &d_water, &e_con,
			&f_max);

	a_suger *= 100;
	b_suger *= 100;

	for (i = 1; i * a_suger < f_max; i++)
		for (j = 0; (j * b_suger) + (i * a_suger) < f_max; j++)
			for (k = 0; (k * c_water) + (j * b_suger) + (i * a_suger) < f_max;
					k++)
				for (l = 0;
						(l * d_water) + (k * c_water) + (j * b_suger)
								+ (i * a_suger) < f_max; l++) {

					if (((c_water * k + d_water * l + a_suger * i + b_suger * j)
							> f_max) || ((l * d_water) + (k * c_water) == 0))
						break;

					temp = get_concentration(c_water * k + d_water * l,
							a_suger * i + b_suger * j);

					if (temp == get_concentration(100, e_con)) {
						res_concentration = temp;
						res_water = c_water * i + d_water * l + a_suger * i
								+ b_suger * j;
						res_sugar = a_suger * i + b_suger * j;
						printf("%d %d ", res_water, res_sugar);
						return 0;

					} else if (temp < get_concentration(100, e_con)
							&& temp > res_concentration) {
						res_concentration = temp;
						res_water = c_water * k + d_water * l + a_suger * i
								+ b_suger * j;
						res_sugar = a_suger * i + b_suger * j;
					}

				}

	printf("%d %d ", res_water, res_sugar);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:31:48: error: implicit declaration of function 'get_concentration' [-Wimplicit-function-declaration]
   31 |                                         temp = get_concentration(c_water * k + d_water * l,
      |                                                ^~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <vector>


using namespace std;

#define _C

#ifdef _C

int main(void)
{
	int A, B, C, D, E, F;
	int maxw = 0, maxs  = 0;
	float rat = 0;
	cin >> A >> B >> C >> D >> E >> F;
	for (size_t a = 0; 100*a*A  <= F; a++)
		for (size_t b = 0; 100*a*A + 100*b*B <= F; b++)
			for (size_t c = 0; 100 * a*A + 100 * b*B + c*C <= F; c++)
				for (size_t d = 0; 100 * a*A + 100 * b*B + c*C + d*D <= F; d++)
				{
					if (c + d == 0) continue;
					int sum = 100 * a*A + 100 * b*B + c*C + d*D;
					int sum_sug = c*C + d*D;

					if (sum_sug > E*(a*A + b*B))break;
					float crat = (float)(c*C + d*D) / sum;
					if (rat > crat) break;
					rat = crat;


					maxw = sum;
					maxs = sum_sug;
				}

	cout << maxw << " " << maxs << endl;

	return 0;
}


Compiler output:
a.cc:9: error: unterminated #ifdef
    9 | #ifdef _C
Language: C++

#include<iostream>
using namespace std;
int a[3]={0},b[3]={0},c,d;
long long ans1=0,ans2=0;
long double maxx=0;
long t=0;
int l;
long double solve1(int most){
	int maxs=0;
    for(int i=1;i*b[1]<=most;i++){
    	l=(most-i*b[1])/b[2];
    	l*=b[2];
    	maxs=max(maxs,i*b[1]+l);
	}
	return maxs;
}
void solve(int remain){
	int s;
	s=min(remain,(d-remain)/100*c);
	double k=solve1(s);
	if(maxx<k/(d-remain+k)){
		maxx=k/(d-remain+k);
		ans1=d-remain+k;
		ans2=k;
	}
	for(int i=1;i<=2;i++){
	   if(remain>=a[i]){
	   	  solve(remain-a[i]);
	   }
	}
}
int main()
cin>>a[1]>>a[2]>>b[1]>>b[2]>>c>>d;
a[1]*=100;
a[2]*=100;
solve(d);
cout<<ans1<<" "<<ans2;
return 0;
}

Compiler output:
a.cc:33:1: error: expected initializer before 'cin'
   33 | cin>>a[1]>>a[2]>>b[1]>>b[2]>>c>>d;
      | ^~~
a.cc:34:1: error: 'a' does not name a type
   34 | a[1]*=100;
      | ^
a.cc:35:1: error: 'a' does not name a type
   35 | a[2]*=100;
      | ^
a.cc:36:6: error: expected constructor, destructor, or type conversion before '(' token
   36 | solve(d);
      |      ^
a.cc:37:1: error: 'cout' does not name a type
   37 | cout<<ans1<<" "<<ans2;
      | ^~~~
a.cc:38:1: error: expected unqualified-id before 'return'
   38 | return 0;
      | ^~~~~~
a.cc:39:1: error: expected declaration before '}' token
   39 | }
      | ^
Language: Java

import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        try (Scanner sc = new Scanner(System.in)) {
          int A = sc.nextInt();
          int B = sc.nextInt();
          int C = sc.nextInt();
          int D = sc.nextInt();
          int E = sc.nextInt();
          int F = sc.nextInt();
          double maxden = 0.;
          double limden = E/(100+E);
          int ans1 = 0;
          int ans2 = 0;
          
          for(int i = 0; w + 100 * a + s < F;i++){
            w = 100 * A * i;
            for(int j = 0; w + 100 * b + s < F ;j++){
              w = w + 100 * B * j;
              	for(int t = 0;t <=30; t++){
                  s = t;
                  for(int k = 0;k <=30; k++){
                    s = s+k;
                    double den = 0;
                    if(w > 0){den = s/w+s}
                    if(den > maxden && den < limden){
                      ans1 = w+s;
                      ans2 = s;
                      maxden = den;
                    }
                  }
                }
            }
          }
                    
          System.out.println(ans1 + " " + ans2);
        }
    }
}

Compiler output:
Main.java:26: error: ';' expected
                    if(w > 0){den = s/w+s}
                                         ^
1 error
Language: C

#include<stdio.h>
int main(void)
{
  int i,A,B,C,D,E,F,noudo1=0,noudo2=0,situryo1=0,situryo2=0,sato1=0,sato2=0,mizu=0;

  scanf("%d %d %d %d %d %d",&A,&B,&C,&D,&E,&F);

  while(situryo1 <= F){

    mizu=mizu+100*A;
    sato1=sato1+C;


    noudo1=(sato1*100)/(sato+mizu);
    if(noudo1<=100 && noudo1 > noudo2){
      noudo2=(sato1*100)/(sato1+mizu);
      sato2=sato1;
      situryo=sato2+mizu;
    }
  }
  
  printf("%d %d\n",situryo2,sato2);
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:25: error: 'sato' undeclared (first use in this function); did you mean 'sato2'?
   14 |     noudo1=(sato1*100)/(sato+mizu);
      |                         ^~~~
      |                         sato2
main.c:14:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:7: error: 'situryo' undeclared (first use in this function); did you mean 'situryo2'?
   18 |       situryo=sato2+mizu;
      |       ^~~~~~~
      |       situryo2
Language: C

#include<stdio.h>
int main(void)
{
  int i,A,B,C,D,E,F,noudo1=0,noudo2=0,situryo1=0,situryo2=0,sato1=0,sato2=0,mizu=0;

  scanf("%d %d %d %d %d %d",&A,&B,&C,&D,&E,&F);

  while(situryo1 <= F){

    mizu=mizu+100*A;
    sato1=sato1+C;


    noudo1=(sato*100)/(sato+mizu);
    if(noudo1<=100 && noudo1 > noudo2){
      noudo2=(sato1*100)/(sato1+mizu);
      sato2=sato1;
      situryow=sato2+mizu;
    }
  }
  
  printf("%d %d\n",situryo2,sato2);
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:13: error: 'sato' undeclared (first use in this function); did you mean 'sato2'?
   14 |     noudo1=(sato*100)/(sato+mizu);
      |             ^~~~
      |             sato2
main.c:14:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:7: error: 'situryow' undeclared (first use in this function); did you mean 'situryo2'?
   18 |       situryow=sato2+mizu;
      |       ^~~~~~~~
      |       situryo2
Language: C++

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

long long a,b,c,d,e,f,q,w;
double ans;
bool used1[4000],used2[4000];


void rec1(int x=0){
    if(x>f){
        return;
    }
    if(used1[x]){
        return;
    }
    used1[x]=true;
    rec1(x+a*100);
    rec1(x+b*100);
}

void rec2(int x=0){
    if(x>f){
        return;
    }
    if(used2[x]){
        return;
    }
    used2[x]=true;
    rec2(x+c);
    rec2(x+d);
}

int main(){
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    cin>>a>>b>>c>>d>>e>>f;
    rec1();
    rec2();
    for(int i=1;i<=f;i++){
        for(int j=0;j<=f;j++){
            if(used1[i] && used2[j] && i*e>=100*j && i+j<=f && (double)100*j/(i+j)>ans){
                ans=(double)j*100/(i+j);
                q=i+j;
                w=j;
                //cout<<q<<" "<<w<<"\n";
            }
        }
    }
    cout<<q<<" "<<w;
}


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #defube; did you mean #define?
    2 | #defube int long long
      |  ^~~~~~
      |  define