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

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

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define ALL(a)  (a).begin(),(a).end()

typedef long long lint;

using namespace std;

int main(){
  int A,B,C,D,E,F;
  cin>>A>>B>>C>>D>>E>>F;
  int x=0;
  int y=0;
  int z=0;
  int w=0;
  int ans1=100*A;
  int ans2=0;

  while(100*A*x<F){
    y=0;
    z=0;
    w=0;
    while(100*(A*x+B*y)<F){
      z=0;
      w=0;
      while(100*(A*x+B*y)+C*z<=F and C*z<=(A*x+B*y)*E){
        w=0;
        while(100*(A*x+B*y)+(C*z+D*w)=<F and (C*z+D*w)<=(A*x+B*y)*E){
          // cout<<x<<y<<z<<w<<endl;
          if(x+y==0){
            w++;
            continue;
          }
          if((double)(C*z+D*w)/(double)(100*(A*x+B*y)+(C*z+D*w))>=(double)ans2/(double)ans1){
            ans1=100*(A*x+B*y)+(C*z+D*w);
            ans2=(C*z+D*w);
          }
          w++;
        }
        z++;
      }
      y++;
    }
    x++;
  }
  cout<<ans1<<" "<<ans2;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:39: error: expected primary-expression before '<' token
   39 |         while(100*(A*x+B*y)+(C*z+D*w)=<F and (C*z+D*w)<=(A*x+B*y)*E){
      |                                       ^
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <limits>
#include <vector>
#include <cstdio>
#include <bits/stdc++.h>
#include <set>
#include <map>
#include <stdio.h>
#include <stack>
#include <queue>
#include <deque>
#include <numeric>
using namespace std;
using ll = long long;
map <int ,int> mpa,mpb;
typedef pair<ll, ll> P;
priority_queue<P, vector<P>, greater<P>> pque;

int A, B, C, D, E, F, ans_a, ans_b;
double m;

bool v[3000][3000];

void solve(int a,int b){
  if(a+b>F || v[a][b] || b/(a+b)>E/(E+100.0)) return 0;
  v[a][b]=true;
  double tmp=(100.0*b)/(a+b);
  if(tmp>m){
    m=tmp;
    ans_a=a;
    ans_b=b;
  }
  solve(a + A * 100, b);
  solve(a + B * 100, b);
  solve(a, b + C);
  solve(a, b + D);
}

int main(){
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  scanf("%d %d %d %d %d %d", &A, &B, &C, &D, &E, &F);
  solve(0,0);
  printf("%d %d\n", ans_a + ans_b, ans_b);
  return 0;
}

Compiler output:
a.cc: In function 'void solve(int, int)':
a.cc:27:54: error: return-statement with a value, in function returning 'void' [-fpermissive]
   27 |   if(a+b>F || v[a][b] || b/(a+b)>E/(E+100.0)) return 0;
      |                                                      ^
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <limits>
#include <vector>
#include <cstdio>
#include <bits/stdc++.h>
#include <set>
#include <map>
#include <stdio.h>
#include <stack>
#include <queue>
using namespace std;
using ll = long long;
map <int ,int> mpa,mpb;

int main(){
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int A,B,C,D,E,F;
  cin >> A >> B >> C >> D >> E >> F;
  ll ans=0;
  for(int i=0;i<F/100/A;i++){
    for(int j=0;j<F/100/B;j++){
      double n=(C+D)/(A+B);
      if(n<=E){
        ans=max(ans,n);
      }
    }
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:16: error: no matching function for call to 'max(ll&, double&)'
   27 |         ans=max(ans,n);
      |             ~~~^~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:27:16: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'double')
   27 |         ans=max(ans,n);
      |             ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:27:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   27 |         ans=max(ans,n);
      |             ~~~^~~~~~~
Language: C++

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

int main() {
  int A, B, C, D, E, F;
  double a = 0, b = 0, max_n = 0;
  double max_a, max_b;
  cin >> A >> B >> C >> D >> E >> F;
  for(int i_a = 0; i_a <= 30; i_a++){
    for(int j_b = 0; j_b <= 30; j_b++){
      a = (i_a * A + j_b * B) * 100.0
      for(int k_c = 0; k_c * C / a <= E / 100.0; k_c++) {
        for(int l_d = 0; (k_c * C + l_d * D) / a <= E / 100.0; l_d++) {
          b = k_c * C + l_d * D;
          if(a + b <= F && b / a > max_n) {
            max_n = b / a;
            max_a = a;
            max_b = b;
          }
        }
      }
    }
  }
  cout << max_a + max_b << max_b;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:38: error: expected ';' before 'for'
   11 |       a = (i_a * A + j_b * B) * 100.0
      |                                      ^
      |                                      ;
   12 |       for(int k_c = 0; k_c * C / a <= E / 100.0; k_c++) {
      |       ~~~                             
a.cc:12:24: error: 'k_c' was not declared in this scope
   12 |       for(int k_c = 0; k_c * C / a <= E / 100.0; k_c++) {
      |                        ^~~
Language: C++

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

int main(){
	int a,b,c,d,e,f,mwater,msugar;
	cin>>a>>b>>c>>d>>e>>f;
	msugar=0;
	mwater=1000;
	for(int i=0;   100*a*i<=f   ;i++){
		for(int j=0;   100*b*j+100*a*i<=f   ;j++){   //water

			int water=100*b*j+100*a*i;

			for(int s=0;   water+s*c<=f   ;s++){
				for(int t=0;   water+s*c+t*d<=f   ;t++){   //sugar

					int sugar=s*c+t*d;
					if(water+sugar==0)continue;
						
					int sol=100*sugar/(water+sugar);
						
					if(sol*(mwater+msugar)>100*msugar&&100*sugar<water*e){
							mwater=water;
							msugar=sugar;
						}
				}
			}
		}
	}
	
	cout<<mwater+masugar<<' '<<msugar<<endl;
    return 0;
}
				//砂糖は100*b*j+100*a*iに		e*(b*j+a*i)
		//ms=maxsugar

Compiler output:
a.cc: In function 'int main()':
a.cc:31:22: error: 'masugar' was not declared in this scope; did you mean 'msugar'?
   31 |         cout<<mwater+masugar<<' '<<msugar<<endl;
      |                      ^~~~~~~
      |                      msugar
Language: C++

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

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

	for(int i=0;   100*a*i<=f   ;i++){
		for(int j=0;   100*b*j+100*a*i<=f   ;j++){//water

			int ms=e*(b*j+a*i);
			 w=100*b*j+100*a*i;

			for(int s=0;   w+s*c<=f   ;s++){
				for(int t=0;   w+s*c+t*d<=f   ;t++){//sugar
					as=s*c+t+d;
					if(w+as!=0)continue;
					
						int x=100*as/(w+as);
						ans=max(ans,x);
					if(ans==100*e/(100+e))goto NN;
				}
			}
		}
	}
	NN:
	
	cout<<w<<as<<endl;
    return 0;
}
				//砂糖は100*b*j+100*a*iに		e*(b*j+a*i)
		//ms=maxsugar

Compiler output:
a.cc: In function 'int main()':
a.cc:20:49: error: 'ans' was not declared in this scope; did you mean 'as'?
   20 |                                                 ans=max(ans,x);
      |                                                 ^~~
      |                                                 as
Language: C++

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

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

	for(int i=0;   100*a*i<=f   ;i++){
		for(int j=0;   100*b*j+100*a*i<=f   ;j++){//water

			int ms=e*(b*j+a*i);
			 w=100*b*j+100*a*i;

			for(int s=0;   w+s*c<=f   ;s++){
				for(int t=0;   w+s*c+t*d<=f   ;t++){//sugar
					as=s*c+t+d;
					if(w+as!=0)continue;
					
						int x=100*as/(w+as);
						ans=max(ans,x);
					if(ans==100*e/(100+e))goto NN;
				}
			}
		}
	}
	NN:
	
	cout<<ans<<endl;
    return 0;
}
				//砂糖は100*b*j+100*a*iに		e*(b*j+a*i)
		//ms=maxsugar

Compiler output:
a.cc: In function 'int main()':
a.cc:20:49: error: 'ans' was not declared in this scope; did you mean 'as'?
   20 |                                                 ans=max(ans,x);
      |                                                 ^~~
      |                                                 as
a.cc:28:15: error: 'ans' was not declared in this scope; did you mean 'as'?
   28 |         cout<<ans<<endl;
      |               ^~~
      |               as
Language: C++

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

int main()
	int a,b,c,d,e,f,ans;
	cin>>a>>b>>c>>d>>e>>f;
	for(int i=0;100*a*i<=f;i++){
		for(int j=0;100*b*j+100*a*i<=f;j++){
			int ms=e*(b*j+a*i);
			int w=100*b*j+100*a*i;
			for(int s=0;w+s<=f;s++){
				for(int t=0;w+s+t<=f;t++){
					int x=100*(s+t)/(w+s+t);
					ans=max(ans,x);
					if(ans==100*e/(100+e))goto NN;
				}
			}
		}
	}
	NN:
	
	cout<<ans<<endl;
    return 0;
}
				//砂糖は100*b*j+100*a*iに		e*(b*j+a*i)
		//ms=maxsugar

Compiler output:
a.cc:5:9: error: expected initializer before 'int'
    5 |         int a,b,c,d,e,f,ans;
      |         ^~~
a.cc:6:9: error: 'cin' does not name a type
    6 |         cin>>a>>b>>c>>d>>e>>f;
      |         ^~~
a.cc:7:9: error: expected unqualified-id before 'for'
    7 |         for(int i=0;100*a*i<=f;i++){
      |         ^~~
a.cc:7:21: error: expected unqualified-id before numeric constant
    7 |         for(int i=0;100*a*i<=f;i++){
      |                     ^~~
a.cc:7:32: error: 'i' does not name a type
    7 |         for(int i=0;100*a*i<=f;i++){
      |                                ^
a.cc:20:11: error: found ':' in nested-name-specifier, expected '::'
   20 |         NN:
      |           ^
      |           ::
a.cc:20:9: error: 'NN' does not name a type; did you mean 'NAN'?
   20 |         NN:
      |         ^~
      |         NAN
a.cc:23:5: error: expected unqualified-id before 'return'
   23 |     return 0;
      |     ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

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

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i, k, n) for (int i = (int)(k); i <(int)(n); i++)
#define rrep(i, n) for (int i = (int)(n)-1; i >= 0; i--)
#define rREP(i,k,n) for (int i = (int)(n)-1; i >= k; i--)
#define mod 1000000007
#define inf 999999999


int main(){
  int a,b,c,d,e,f;
  cin >> a >> b >> c >> d >> e >> f;
  double ma = 0.0;
  int ansa= 0,ansb= 0;
  rep(i1,31){
    rep(i2,31){
      rep(i3,51){
        rep(i4,51){
          int m = i1*a*100+i2*b*100+i3*c+i4*d;
          int s = i3*c+i4*d;
          if(m > f) break;//ビーカーに入るか？
          if((i1*a+i2*b)*e < s) break;//溶けるか？
          if(ma<((double)s*100/m){
            ma = (double)s*100/m;
            ansa = m;
            ansb = s;
          }
        }
      }
    }
  }
  cout << ansa << " " << ansb << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:34: error: expected ')' before '{' token
   32 |           if(ma<((double)s*100/m){
      |             ~                    ^
      |                                  )
a.cc:37:9: error: expected primary-expression before '}' token
   37 |         }
      |         ^
Language: C++

#include<iostream>
#include<string>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<functional>
using namespace std;
int main(void) {
    
   int a,b,c,d,e,f;
   cin>>a>>b>>c>>d>>e>>f;

   int w,s,W,S;
    int smax;
    int def=100000;
    int count=1;

    S=0;
    smax = e*a;
    w = a*100;


  if(smax+w < f && (smax%c==0 || smax%d==0)){
        cout<<smax+w<<" "<<smax<<endl;
        return 0;
    }
    else{
        count=1;
        while(S+w < f){

            for(int i=0;i<=e*count*a/c;i++){
                for(int j=0;j<=e*count*a/d;j++){
                    s = i*c*count + j*d*count;
                    //cout<<abs(s-smax)<<" ";
                    if(s < e*count*a && def > abs(s-smax)){
                        S = s;
                        W = w;
                        def = abs(s-smax);
                    }
                }
            }
            count++;
            smax = e*a*count;
            w = a*count*100;
        }

        count=1;
         while(S+w < f){

            for(int i=0;i<=e*count*b/c;i++){
                for(int j=0;j<=e*count*b/d;j++){
                    s = i*c*count + j*d*count;
                    if(s < e*count*b && def > abs(s-smax)){
                        S = s;
                        W = w;
                        def = abs(s-max);
                    }
                }
            }
            count++;
            smax = e*b*count;
            w = b*count*100;
        }

    }
    cout<<S+W<<" "<<S<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:56:36: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator-'
   56 |                         def = abs(s-max);
      |                                   ~^~~~
Language: C++

#include<iostream>
#include<string>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<functional>
using namespace std;
int main(void) {
    
   int a,b,c,d,e,f;
   cin>>a>>b>>c>>d>>e>>f;

   int w,s,W,S;
    int smax;
    int def=100000;
    int count=1;

    S=0;
    smax = e*a;
    w = a*100;


  if(smax+w < f && (smax%c==0 || smax%d==0)){
        cout<<smax+w<<" "<<smax<<endl;
        return 0;
    }
    else{
        count=1;
        while(S+w < f){

            for(int i=0;i<=e*count*a/c;i++){
                for(int j=0;j<=e*count*a/d;j++){
                    s = i*c*count + j*d*count;
                    //cout<<abs(s-smax)<<" ";
                    if(s < e*count*a && def > abs(s-smax)){
                        S = s;
                        W = w;
                        def = abs(s-smax);
                    }
                }
            }
            count++;
            smax = e*a*count;
            w = a*count*100;
        }

        count=1;
         while(S+w < f){

            for(int i=0;i<=e*count*b/c;i++){
                for(int j=0;j<=e*count*b/d;j++){
                    s = i*c*count + j*d*count;
                    if(s < e*count*b && def > abs(s-smax)){
                        S = s;
                        W = w;
                        abs(s-max);
                    }
                }
            }
            count++;
            smax = e*b*count;
            w = b*count*100;
        }

    }
    cout<<S+W<<" "<<S<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:56:30: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator-'
   56 |                         abs(s-max);
      |                             ~^~~~
Language: C++

#include <iostream>

using namespace std;

int main() {

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

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

    double max_dense = -1;
    int water;
    int sugar;

    double e = (100. * E)/(100 + E)

    for (int ai = 0; 100 * ai * A <= F; ++ai) {
        for (int bi = 0; 100 * ai * A + 100 * bi * B <= F; ++bi) {
            for (int ci = 0; 100 * ai + A * 100 * bi * B + ci * C <= F; ++ci) {
                for (int di = 0; 100 * ai * A + 100 * bi * B * ci * C + di * D <= F; ++di) {
                    if (ai == 0 && bi == 0 && ci == 0 && di == 0) {
                        continue;
                    }
                    double dense = 100. * (ci * C + di * D) / (100 * ai * A + 100 * bi * B + ci * C + di * D);

                    if (dense <= e && max_dense < dense) {
                        max_dense = dense;
                        water = 100 * ai * A + 100 * bi * B;
                        sugar = ci * C + di * D;
                    }

                }
            }
        }
    }

    cout << (water + sugar) << " " << sugar << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: expected ',' or ';' before 'for'
   17 |     for (int ai = 0; 100 * ai * A <= F; ++ai) {
      |     ^~~
a.cc:17:28: error: 'ai' was not declared in this scope
   17 |     for (int ai = 0; 100 * ai * A <= F; ++ai) {
      |                            ^~
Language: C++

#include <iostream>
#include <math.h>
using namespace std;

// max(Bの桁数)
int calc_keta(long B) {
  int keta = 0;
  while (B > 0) { // n が 0 になるまで
    ++keta;
    B /= 10;
  }
  return keta;
}

int main() {
    int A, B, C, D, E, F;
    cin >> A >> B >> C >> D >> E >> F;
 
    double max = 0;
    int mt_all = 0;
    int mt_sug = 0;
    for (int a = 0; a <= F/100/A; ++a) { // 100Agの水
       for (int b = 0; b <= (F-100*A*a)/100/B; ++b){
       	   int max_suger = (A*a + B*b) * E;
       	   if (max_suger > F-100*A*a-100*B*b) max_suger =F-100*A*a-100*B*b;
       	   //cout << " max_suger " << max_suger;
           for (int c = 0; c <= max_suger/C; ++c){
               int d = (max_suger - C*c) / D;
           	   double noudo = 0;
           	   if (a==0 & b==0) noudo = 0;
               else noudo = (double)(c*C + d*D) / (100*A*a + 100*B*b + C*c + D*d);
               if (noudo>max){
                   max = noudo;
                   mt_all = 100*A*a + 100*B*b + C*c + D*d;
                   mt_sug = C*c + D*d;
                   //cout << " A " << a << " B " << b << " C " << c << " D " << d;
           	       //cout << " noudo " << noudo << endl;
               } 
           	   //cout << " A " << a << " B " << b << " C " << c << " D " << d;
           	   //cout << " noudo " << noudo << endl;
               
           }	
       }

    }
    if (noudo==0) mt_all = A;
    cout << mt_all << endl;
    cout << mt_sug << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:9: error: 'noudo' was not declared in this scope
   46 |     if (noudo==0) mt_all = A;
      |         ^~~~~
Language: C++

#include <iostream>
#include <math.h>
using namespace std;

// max(Bの桁数)
int calc_keta(long B) {
  int keta = 0;
  while (B > 0) { // n が 0 になるまで
    ++keta;
    B /= 10;
  }
  return keta;
}

int main() {
    int A, B, C, D, E, F;
    cin >> A >> B >> C >> D >> E >> F;
 
    double max = 0;
    int mt_all = 0;
    int mt_sug = 0;
    for (int a = 0; a <= F/100/A; ++a) { // 100Agの水
       for (int b = 0; b <= (F-100*A*a)/100/B; ++b){
       	   int max_suger = (A*a + B*b) * E;
       	   if (max_suger > F-100*A*a-100*B*b) max_suger =F-100*A*a-100*B*b;
       	   //cout << " max_suger " << max_suger;
           for (int c = 0; c <= max_suger/C; ++c){
               int d = (max_suger - C*c) / D;
           	   double noudo = 0;
           	   if (a==0 & b==0) noudo = 0;
               else noudo = (double)(c*C + d*D) / (100*A*a + 100*B*b + C*c + D*d);
               if (noudo>max){
                   max = noudo;
                   mt_all = 100*A*a + 100*B*b + C*c + D*d;
                   mt_sug = C*c + D*d;
                   //cout << " A " << a << " B " << b << " C " << c << " D " << d;
           	       //cout << " noudo " << noudo << endl;
               } 
           	   //cout << " A " << a << " B " << b << " C " << c << " D " << d;
           	   //cout << " noudo " << noudo << endl;
               
           }	
       }

    }
    if (noudo==0) mt_all = A:
    cout << mt_all << endl;
    cout << mt_sug << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:9: error: 'noudo' was not declared in this scope
   46 |     if (noudo==0) mt_all = A:
      |         ^~~~~
a.cc:46:29: error: found ':' in nested-name-specifier, expected '::'
   46 |     if (noudo==0) mt_all = A:
      |                             ^
      |                             ::
a.cc:46:28: error: 'A' is not a class, namespace, or enumeration
   46 |     if (noudo==0) mt_all = A:
      |                            ^
Language: C++

#include<string>
#include<iostream>
#include<algorithm>
#include<set>
#include<math.h>
#include<vector>
#include<sstream>
#include<queue>
#include<functional>
#include<bitset>
#include<cstdio>
#include<iomanip>
#include<map>
#include<unordered_map>
#include<unordered_set>
#include <string.h>
using ll = long long;

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define reps(i,x) for(int i=1;i<=(int)(x);i++)
#define rrep(i,x) for(int i=((int)(x)-1);i>=0;i--)
#define rreps(i,x) for(int i=((int)(x) - 1 * 100);i>0;i--)
#define all(x) (x).begin(),(x).end()
#define m0(x) memset(x,0,sizeof(x))
#define vll vector<ll>
#define vi vector<int>
#define mp make_pair
#define vpll vector<pair<ll,ll>>
#define vpi vector<pair<int,int>>

using namespace std;

int n;
int main(void) {
	double a, b, c, d, mn=101;
	int e, f;
	int ans, sug;
	cin >> a >> b >> c >> d >> e >> f;
	rep(m, 100) {
		rep(n, 100) {
			rep(l, 100) {
				rep(o, 100) {
					if (c*m + d*n + a * 100 * l + b * 100 * o > f+DBL_EPSILON)continue;
					if (a * 100 * l + b * 100 * o <= DBL_EPSILON)continue;
					if (e < ((c*m + d*n) / (a * 100 * l + b * 100 * o)) * 100)continue;
					if (c*m + d*n == 0)continue;
					if ((c*m + d*n) / (a * 100 * l + b * 100 * o) < mn) {
						mn = e - ((c*m + d*n) / (a * 100 * l + b * 100 * o))*100;
						ans = c*m + d*n + a * 100 * l + b * 100 * o;
						sug = c*m + d*n;
					}
				}
			}
		}
	}
	cout << ans << " " << sug << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:87: error: 'DBL_EPSILON' was not declared in this scope
   43 |                                         if (c*m + d*n + a * 100 * l + b * 100 * o > f+DBL_EPSILON)continue;
      |                                                                                       ^~~~~~~~~~~
a.cc:44:74: error: 'DBL_EPSILON' was not declared in this scope
   44 |                                         if (a * 100 * l + b * 100 * o <= DBL_EPSILON)continue;
      |                                                                          ^~~~~~~~~~~
Language: C++

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

int main()
{
    int A,B,C,D,E,F;
    cin >> A >> B >> C >> D >> E >> F;
    A *= 100;
    B *= 100;

    vector<int> water,suger;
    for(int i=0; A*i <= F; i++){
        for(int j=0; a*i+b*j <= F; j++){
            water.push_back(A*i+B*j);
        }
    }

    for(int i=0; C*i <= F; i++){
        for(int j=0; C*i+D*j <= F; j++){
            suger.push_back(C*i+D*j);
        }
    }
    int ans=0;sug=0;
    double md = -1.0;
    for(auto w : water){
        for(auto s : suger){
            if(w+s <= F && s<= w/100*E){
                double dens = 1.0*s/(w+s);
                if(dens > md){
                    md = dens;
                    ans = w+s;
                    sug = s;
                }
            }
        }
    }
    cout << ans << " " << sug << endl;
    return 0;
}


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

#include <stdio.h>

int main(void)
{
	int A,B,C,D,E,F,N,n,m,sum,salt,water,tmp,cnt,i,j,k,l,M;
	scanf("%d%d%d%d%d%d",&A,&B,&C,&D,&E,&F);
	sum=0;
	salt=0;
	double dense;
	double MAX;
	MAX=0;
	for(n=0;n<=30;n++){
		for(m=0;m<=15;m++){
			for(i=0;i<=30;i++){
				for(j=0;j<=30;i++){
					salt=i*C+j*D;
					water=(n*A+m*B)*100;
					sum=salt+water;
					(double)dense=(double)(100*salt)/(double)(salt+water);
					if(salt<=E*(n*A+m*B)&&sum<=F){
						dense=(double)(100*salt)/(double)(salt+water);
					if(dense>MAX){
					MAX=dense;
					k=(salt+water);
					l=salt;
					}}
					}}}}
					
					
			printf("%d %d",k,l);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:54: error: lvalue required as left operand of assignment
   19 |                                         (double)dense=(double)(100*salt)/(double)(salt+water);
      |                                                      ^
Language: C++

#include <iostream>
#include <vector>
#include <limits>
#include <boost/range/irange.hpp>
#include <boost/range/adaptors.hpp>
#include <bitset>

using namespace std;
using namespace boost;
using uint = unsigned int;
using ll = long long int;
using ull = unsigned long long int;

int main() {
    constexpr uint f_max{3000};
    constexpr uint suger_max{f_max / 2};

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

    bitset<suger_max + 1> dp_s;
    for (auto &&c: irange(0U, suger_max / C + 1)) {
        for (auto &&d: irange(0U, suger_max / D + 1)) {
            if (c * C + d * D <= suger_max)dp_s.set(c * C + d * D);
        }
    }

//    for (auto &&i: irange(0U, 100U)) {
//        cout << dp_s[i];
//    }
//    cout << endl;

    uint water_max = F / 100 + 1;
    vector<bool> dp_w(water_max, false);
    for (auto &&a: irange(0U, F / A / 100 + 1)) {
        for (auto &&b: irange(0U, F / B / 100 + 1)) {
            if (a * A + b * B < water_max)dp_w.at(a * A + b * B) = true;
        }
    }
    uint suger_index{0};
    vector<uint> suger_max_for_each_water(water_max, 0);
    for (auto &&i: irange(0U, water_max)) {
        if (dp_w.at(i)) {
            uint suger_max_local = i * E;
//            cout << "suger_max_local: ";
//            cout << i * 100 << " " << suger_max_local << endl;
            if (i != 0) {
                suger_max_for_each_water.at(i) = suger_max_for_each_water.at(i - 1);
            }
            while (suger_index <= min(suger_max_local, suger_max)) {
                if (dp_s[suger_index]) suger_max_for_each_water.at(i) = suger_index;
                suger_index++;
            }
        }
    }

//    for (auto &&i: irange(0U, water_max)) {
//        cout << "suger_max_for_each_water: " << i * 100 << " " << suger_max_for_each_water.at(i) << endl;
//    }


    vector<pair<uint, uint>> suger_max_paired{};
    for (auto &&i: irange(1U, water_max)) {
        if (dp_w.at(i)) {
            suger_max_paired.emplace_back(make_pair(i, suger_max_for_each_water.at(i)));
        }
    }
    sort(suger_max_paired.begin(), suger_max_paired.end(), [](pair<uint, uint> a, pair<uint, uint> b) {
        return a.first * b.second < a.second * b.first;
    });

    for (auto &&i: irange(0U, suger_max_paired.size())) {
        uint suger_and_water = suger_max_paired.at(i).first*100 + suger_max_paired.at(i).second;
        if (suger_and_water <= F){
            cout << suger_and_water << " " << suger_max_paired.at(i).second << endl;
            return 0;
        }
    }

    return 1;
}

Compiler output:
a.cc:4:10: fatal error: boost/range/irange.hpp: No such file or directory
    4 | #include <boost/range/irange.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
using namespace std;
int main(void){
    int a,b,c,d,e,f;
    cin>>a>>b>>c>>d>>e>>f;
    vector<int> w,s;
    for(int i=0;i<=30;i++){
        for(int j=0;j<=30;j++){
            int q=(i*a+j*b)*100;
            if(q>f)break;
            if(i==0&&j==0)continue;
            w.push_back(q);
        }
    }
    for(int i=0;i<=3000;i++){
        for(int j=0;j<=3000;j++){
            int q=i*c+j*d;
            if(i==0&&j==0)continue;
            if(q>f)break;
            s.push_back(q);
        }
    }
    int ans1=1,ans2=0;
    for(int i=0;i<w.size();i++){
        for(int j=0;j<s.size();j++){
            if(w[i]+s[j]>f)continue;
            if(e*w[i]<100*s[j])continue;
            double p=(100*s[j])/(w[i]+s[j]);
            if(ans1*s[j]>ans2*(w[i]+s[j])){
                ans1=w[i]+s[j];
                ans2=s[j];
            }
        }
    }
    cout<<ans1<<" "<<ans2<<endl;
    return 0;
}
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
using namespace std;
int main(void){
    int a,b,c,d,e,f;
    cin>>a>>b>>c>>d>>e>>f;
    vector<int> w,s;
    for(int i=0;i<=30;i++){
        for(int j=0;j<=30;j++){
            int q=(i*a+j*b)*100;
            if(q>f)break;
            if(i==0&&j==0)continue;
            w.push_back(q);
        }
    }
    for(int i=0;i<=3000;i++){
        for(int j=0;j<=3000;j++){
            int q=i*c+j*d;
            if(i==0&&j==0)continue;
            if(q>f)break;
            s.push_back(q);
        }
    }
    int ans1=1,ans2=0;
    double max=-1;
    for(int i=0;i<w.size();i++){
        for(int j=0;j<s.size();j++){
            if(w[i]+s[j]>f)continue;
            if(e*w[i]<100*s[j])continue;
            double p=(double)(100*s[j])/(double)(w[i]+s[j]);
            if(max<p){
                max=p;
                ans1=w[i]+s[j];
                ans2=s[j];
            }
        }
    }
    cout<<ans1<<" "<<ans2<<endl;
    return 0;
}


Compiler output:
a.cc:48:5: error: redefinition of 'int main()'
   48 | int main(void){
      |     ^~~~
a.cc:7:5: note: 'int main()' previously defined here
    7 | int main(void){
      |     ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
using namespace std;
int main(void){
    int a,b,c,d,e,f;
    cin>>a>>b>>c>>d>>e>>f;
    vector<int> w,s;
    for(int i=0;i<=30;i++){
        for(int j=0;j<=30;j++){
            int q=(i*a+j*b)*100;
            if(q>f)break;
            if(i==0&&j==0)continue;
            w.push_back(q);
        }
    }
    for(int i=0;i<=3000;i++){
        for(int j=0;j<=3000;j++){
            int q=i*c+j*d;
            if(i==0&&j==0)continue;
            if(q>f)break;
            s.push_back(q);
        }
    }
    int ans1=1,ans2=0;
    for(int i=0;i<w.size();i++){
        for(int j=0;j<s.size();j++){
            if(w[i]+s[j]>f)continue;
            if(e*w[i]<100*s[j])continue;
            double p=(100*s[j])/(w[i]+s[j]);
            if(ans1*s[j]>ans2*(w[i]+s[j])){
                ans1=w[i]+s[j];
                ans2=s[j];
            }
        }
    }
    cout<<ans1<<" "<<ans2<<endl;
    return 0;
}
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
using namespace std;
int main(void){
    int a,b,c,d,e,f;
    cin>>a>>b>>c>>d>>e>>f;
    vector<int> w,s;
    for(int i=0;i<=30;i++){
        for(int j=0;j<=30;j++){
            int q=(i*a+j*b)*100;
            if(q>f)break;
            if(i==0&&j==0)continue;
            w.push_back(q);
        }
    }
    for(int i=0;i<=3000;i++){
        for(int j=0;j<=3000;j++){
            int q=i*c+j*d;
            if(i==0&&j==0)continue;
            if(q>f)break;
            s.push_back(q);
        }
    }
    int ans1=1,ans2=0;
    double max=0;
    for(int i=0;i<w.size();i++){
        for(int j=0;j<s.size();j++){
            if(w[i]+s[j]>f)continue;
            if(e*w[i]<100*s[j])continue;
            double p=(double)(100*s[j])/(double)(w[i]+s[j]);
            if(max<p){
                max=p;
                ans1=w[i]+s[j];
                ans2=s[j];
            }
        }
    }
    cout<<ans1<<" "<<ans2<<endl;
    return 0;
}


Compiler output:
a.cc:48:5: error: redefinition of 'int main()'
   48 | int main(void){
      |     ^~~~
a.cc:7:5: note: 'int main()' previously defined here
    7 | int main(void){
      |     ^~~~
Language: Java

import java.util.Scanner;

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 D = sc.nextInt();
        int E = sc.nextInt();
        int F = sc.nextInt();
        double ans = 0;
        int tmp[] = new int[2];
        tmp[0] = 0;
        tmp[1] = 0;
        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; a * A * 100 + b * 100 * B + c * C <= F && c * C < =E * (a * A + b * B); c++) {
                    for (int d = 0; a * A * 100 + b * B * 100 + c * C + d * D <= F && c * C + d * D <= E * (a * A + b * B); d++) {
                        if (ans < (double)(c * C + d * D) / (double)(a * A * 100 + b * B * 100 + c * C + d * D)) {
                            ans =(double)(c * C + d * D) / (double)(((a + b) * 100) + c * C + d * D);
                            tmp[0] = a * A * 100 + b * B * 100 + c * C + d * D;
                            tmp[1] = c * C + d * D;
                        }
                    }
                }
            }
        }
        System.out.println(tmp[0] + " " + tmp[1]);
    }
}


Compiler output:
Main.java:19: error: illegal start of expression
                for (int c = 0; a * A * 100 + b * 100 * B + c * C <= F && c * C < =E * (a * A + b * B); c++) {
                                                                                  ^
1 error
Language: C++

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

int search_max_sugar(int water_amount, int max_sugar, set<int> &s){
    int res=0;
    for(auto s1: s) {
        if(s1 > max_sugar > f){break;}
        res = s1;
    }
    return res;
}

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

    set<int> water,sugar;
    for(int i = 0; 100*a*i <= f ; i++){
        for(int j = 0; 100*a*i+100*b*j <= f; j++){
            water.insert(100*a*i+100*b*j);
        }
    }
    for(int i = 0; c*i <= f ; i++){
        for(int j = 0; c*i+d*j <= f; j++){
            sugar.insert(c*i+d*j);
        }
    }
    pair<int,int> ans;
    int tmp;
    double cardinality=0.0;
    for(auto s: water){
        tmp = search_max_sugar(s, min(e*s/100, f-s) , sugar);
        double tmp_cardinality = (double)100*tmp/(s+tmp);
        if(cardinality < tmp_cardinality){
            cardinality = tmp_cardinality;
            ans.first = s+tmp;
            ans.second = tmp;
        }
    }

    cout << ans.first << " " << ans.second <<"\n";
    return 0;
}


Compiler output:
a.cc: In function 'int search_max_sugar(int, int, std::set<int>&)':
a.cc:8:29: error: 'f' was not declared in this scope
    8 |         if(s1 > max_sugar > f){break;}
      |                             ^
Language: C++

#include<iostream>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<string>
#include<cstring>
#include<cstdlib>
#include<utility>
#include<map>
#include<vector>
#include<stack>
#include<queue>
#define loop(i,a,b) for(int i=a;i<b;i++)
#define rep(i,a) loop(i,0,a)
#define pi acos(-1)
#define pb push_back
using namespace std;
typedef pair<int,int> p;
typedef long long ll;
int a,b,c,d,e,f;
int dp[3100][3100];//dp[i][j]:i=食塩水、j=食塩
int main(){
	cin>>a>>b>>c>>d>>e>>f;
	dp[0][0]=1;
	for(int i=0;i<=f;i++){
		for(itn j=0;j<=i;j++){
			if(!dp[i][j])continue;
			if(i+a*100<=f)dp[i+a*100][j]=1;
			if(i+b*100<=f)dp[i+b*100][j]=1;
			if(i+c<=f)dp[i+c][j+c]=1;
			if(i+d<=f)dp[i+d][j+d]=1;
		}
	}
	int all=100*a,suger=0;
	for(int i=1;i<=f;i++){
		for(int j=0;j<=i;j++){
			if(dp[i][j]&&e*(i-j)/100>=j){
				if(j*all>=i*suger){
					all=i;suger=j;
				}
			}
		}
	}
	cout<<all<<" "<<suger<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:21: error: 'itn' was not declared in this scope; did you mean 'int'?
   26 |                 for(itn j=0;j<=i;j++){
      |                     ^~~
      |                     int
a.cc:26:29: error: 'j' was not declared in this scope
   26 |                 for(itn j=0;j<=i;j++){
      |                             ^
Language: C++

#include "bits/sttdc++.h"
using namespace std;

int main(){
	double a,b,c,d,e,f;
	cin>>a>>b>>c>>d>>e>>f;
	
	vector<int> x;
	vector<int> y;
	
	for(int i=0;i<30;i++){
		for(int j=0;i+j<30;j++){
			x.push_back((i+j)*100);
		}
	}
	
	for(int i=0;i<1500;i++){
		for(int j=0;i+j<1500;j++){
			y.push_back(i+j);
		}
	}
	
	double ans=0;
	double ans1=0;
	double ans2=0;
	
	for(int i=0;i<x.size();i++){
		for(int j=0;j<y.size();j++){
			if(x[i]+y[j]<=f&&100*y[j]/(x[i]+y[j])<=100*e/(100+e)){
				if(100*y[j]/(x[i]+y[j])>ans){
					ans=100*y[j]/(x[i]+y[j]);
					ans1=x[i];
					ans2=x[j];
				}
			}
		}
	}
	
	cout<<ans1<<" "<<ans2<<endl;
}

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

import Data.List
import Data.Maybe
 
type Mass = (Double, Double, Double, Double)
 
main = do
  [a,b,c,d,e,f] <- map read . words <$> getLine :: IO [Double]
  let water = [0..30] :: [Double]
      sugar = [0..100] :: [Double]
      pattern = [(a*100*n, b*100*m, c*l, d*k) | n <- water, m <- water, l <- sugar, k <- sugar, a*100*n + b*100*m + c*l + d*k <= f]
  putStrLn . unwords . map (show . truncate) . (\(x, y, z, w) -> [x+y+z+w, z+w]) $ solve e pattern (0, 0, 0, 0)
 
mix :: Double -> (Double, Double, Double, Double) -> Double
mix e (a, b, c, d)
  | e / (100 + e) >= (c + d) / (a + b + c + d) = (c + d) / (a + b + c + d)
  | otherwise = -1
 
solve :: Double -> [Mass] -> Mass -> Mass
solve e [] best = best
solve e (m:ms) best
  | mix e m == e / (100 + e) = m
  | mix e m > mix e best = solve e ms m
  | otherwise = solve e ms best

Compiler output:
a.cc:8:16: error: too many decimal points in number
    8 |   let water = [0..30] :: [Double]
      |                ^~~~~
a.cc:9:16: error: too many decimal points in number
    9 |       sugar = [0..100] :: [Double]
      |                ^~~~~~
a.cc:11:49: error: stray '\' in program
   11 |   putStrLn . unwords . map (show . truncate) . (\(x, y, z, w) -> [x+y+z+w, z+w]) $ solve e pattern (0, 0, 0, 0)
      |                                                 ^
a.cc:1:1: error: 'import' does not name a type
    1 | import Data.List
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: Java

	 public static void main(String[] args) {
		    java.util.Scanner scanner = new java.util.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();
		    
		    int a1 = 1;
		    int b1 = 0;
//		    int c1 = 1; 
//		    int d1 = 0;
		    
		    double maxnoudo = 0;
		    int maxtotal = 0;
		    int maxsatou = 0;
		    int total = 0;
		    
		    while(true) {
		    	int c1 = 1;
		    	int d1 = 0;
			    int mizu = 100 * ( a * a1 + b * b1);
			    if (mizu + c > f) {
			    	break;
			    }
			    while (true) {
				    int satou = c * c1 + d * d1;
				    total = mizu + satou;
				    if (total > f) {
				    	break;
				    }
				    if ((satou * 100 / mizu) > e) {
				    	break;
				    }
				    int noudo = satou * 100 / total;
				    if (noudo > maxnoudo) {
				    	maxnoudo = noudo;
				    	maxtotal = total;
				    	maxsatou = satou;
				    }
				    if (c1 > d1) { c1--; d1++; } else { c1++; }
			    }
			    if (a1 > b1) { a1--; b1++; } else { a1++; }
	 		}
		    System.out.println(maxtotal + " " + maxsatou);
		 }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
	 public static void main(String[] args) {
	               ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

public static void main(String[] args) {
		    java.util.Scanner scanner = new java.util.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();
		    
		    int a1 = 1;
		    int b1 = 0;
		    int c1 = 1; 
		    int d1 = 0;
		    
		    double maxnoudo = 0;
		    int maxtotal = 0;
		    int maxsatou = 0;
		    int total = 0;
		    
		    while(true) {
			    int mizu = 100 * ( a * a1 + b * b1);
			    if (mizu > f) {
			    	break;
			    }
			    while (true) {
				    int satou = c * c1 + d * d1;
				    total = mizu + satou;
				    if (total > f) {
				    	break;
				    }
				    if ((satou * 100 / mizu) > e) {
				    	break;
				    }
				    int noudo = satou * 100 / total;
				    if (noudo > maxnoudo) {
				    	maxnoudo = noudo;
				    	maxtotal = total;
				    	maxsatou = satou;
				    }
				    if (c1 == d1) { c1++; } else { d1++; }
			    }
			    if (a1 == b1) { a1++; } else { b1++; }
	 		}
		    System.out.println(maxtotal + " " + maxsatou);
		 }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

typedef long long ll;

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

#define debug(x) cout << #x << "=" << x << endl;

using namespace std;

int main(void){

  int waterA, waterB, sugarC, sugarD;
  int dissolveRatio;
  int limit;

  cin >> waterA >> waterB >> sugarC >> sugarD >> dissolveRatio >> limit;

  vector<int> waterAmount;
  int wlpInd = max(limit/100/waterA,limit/100/waterB);

  REP(i,wlpInd+1){
    REP(k,wlpInd+1){
      int wam = 100*waterA*i+100*waterB*k;
      if(wam == 0) continue;
      if (wam <= limit) waterAmount.push_back(wam);
    }
  }
  sort(waterAmount.begin(), waterAmount.end());
  waterAmount.erase(unique(waterAmount.begin(),waterAmount.end()),waterAmount.end());
  
  vector<int> sugarAmount;
  int slpInd = max(limit/sugarC+1,limit/sugarD+1);

  REP(i,slpInd+1){
    REP(k,slpInd+1){
      int sam = sugarC*i+sugarD*k;
      if (sam < limit) sugarAmount.push_back(sam);
    }
  }

  sort(sugarAmount.begin(), sugarAmount.end());
  sugarAmount.erase(unique(sugarAmount.begin(),sugarAmount.end()),sugarAmount.end());
  
  int ans1 = 0;
  int ans2 = 0;
  int maxCons = 0;

  REP(i,(int)waterAmount.size()){
    REP(k,(int)sugarAmount.size()){
      int wam = waterAmount[i];
      int sam = sugarAmount[k];
      int wsSum = wam + sam;
      if(wsSum <= limit && ((wam / 100 * dissolveRatio) >= sam)){
        double consentration = (100.0 * (double)sam) / (double)wsSum;
        int cons = (int)round(consentration);
        if(maxCons <= cons){
          maxCons = cons;
          ans1 = wsSum;
          ans2 = sam;
        }
      }
    }
  }

  cout << ans1 <<" "<< ans2 << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:59:25: error: 'round' was not declared in this scope
   59 |         int cons = (int)round(consentration);
      |                         ^~~~~
Language: C++

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

#define LL long long
#define MAXN 10000

int main(){
	int a,b,c,d,e,f;
	cin>>a>>b>>c>>d>>e>>f;
	std::vector<int> s;
	std::vector<int> w;
	for(int i=0;i<f;i++){
		for(int j=0;j<f;j++){
			int x = (i*c)+(j*d);
			if(x<=f&&x=>0){
				s.push_back(x);
			}
			int y = (i*100*a)+(j*100*b);
			if(y<=f&&y>0){
				w.push_back(y);
			}
		}
	}
	float max = 0;
	int maxx = 0;
	int maxy = 100*a;
	int m = s.size();
	int n = w.size();
	for(int i=0;i<m;i++){
		for(int j=0;j<n;j++){
			int x = s[i];
			int y = w[j];
			if((((float)x/(float)y)<=((float)e/(float)100))&&(x+y<=f)){
				if((float)x/(float)(x+y)>(float)max){
					max = (float)x/(float)(x+y);
					maxx = x;
					maxy = y;
				}
			}
		}
	}
	if(maxy==0){
		maxy=100*a;
	}
	cout<<maxx+maxy<<" "<<maxx;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:36: error: expected primary-expression before '>' token
   15 |                         if(x<=f&&x=>0){
      |                                    ^
Language: C++

#include<algorithm>
#include<iostream>
using namespace std;
int main() {
	int A, B, C, D, E, F,a,b,c,d,n,m,l,s;
	cin >> A >> B >> C >> D >> E >> F>>a>>b>>c>>d>>n>>m>>l>>s;
	a = F /100* A;
	b = F /100* B;
	c = F / C;
	d = F / D;
	double e=double(E/(100+E))
	for (int I = 0;I < a;I++) {
		int n;
		for (int J = 0;J < b;J++) {
			int m;
			for (int K = 0;K < c;K++) {
				int l;
				for (int S = 0;S < d;S++) {
					int s;
					int sugar_water=0
						sugar_water=100*A*n+100*B*m+C*l+D*s
						if (sugar_water=<F$$ double (C*l+D*s)/sugar_water=<e))
						sugar_water=best_sugar
						max_sugar=max(best_sugar)
				}
			}
			}

	}
	cout << max_sugar << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected ',' or ';' before 'for'
   12 |         for (int I = 0;I < a;I++) {
      |         ^~~
a.cc:12:24: error: 'I' was not declared in this scope
   12 |         for (int I = 0;I < a;I++) {
      |                        ^
a.cc:30:17: error: 'max_sugar' was not declared in this scope
   30 |         cout << max_sugar << endl;
      |                 ^~~~~~~~~
Language: C++

#include<algorithm>
#include<iostream>
using namespace std;
int main() {
	int A, B, C, D, E, F,a,b,c,d,n,m,l,s;
	cin >> A >> B >> C >> D >> E >> F>>a>>b>>c>>d>>n>>m>>l>>s;
	a = F /100* A;
	b = F /100* B;
	c = F / C;
	d = F / D;
	double e=double(E/(100+E))
	for (int I = 0;I < a;I++) {
		int n;
		for (int J = 0;J < b;J++) {
			int m;
			for (int K = 0;K < c;K++) {
				int l;
				for (int S = 0;S < d;S++) {
					int s;
					int sugar_water=0
						sugar_water=100*A*n+100*B*m+C*l+D*s
						if (sugar_water=<F$$ double (C*l+D*s)/sugar_water=<e))
						sugar_water=best_sugar
						max_sugar=max(best_sugar)
				}
			}
			}

	}
	cout << min_sugar << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected ',' or ';' before 'for'
   12 |         for (int I = 0;I < a;I++) {
      |         ^~~
a.cc:12:24: error: 'I' was not declared in this scope
   12 |         for (int I = 0;I < a;I++) {
      |                        ^
a.cc:30:17: error: 'min_sugar' was not declared in this scope
   30 |         cout << min_sugar << endl;
      |                 ^~~~~~~~~
Language: C++

#include <iostream>;
using namespace std;
int main();
{
int a,b,c,d,e,f,g;
cin>>a;
cin>>b;
cin>>c;
cin>>d;
cin>>e;
cin>>f;
g=100a/c;
if e>100a/d>g g=100a/d;
if e>100b/c>g g=100b/c;
if e>100b/d>g g=100b/d;
cout<<g;
system ("pause");
return 0;
}

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream>;
      |                    ^
a.cc:4:1: error: expected unqualified-id before '{' token
    4 | {
      | ^
Language: C++

#include <stdio.h>
#include <conio.h>

#define REP(i,n) for(int i=0;i<(n);i++)
#define RREP(i,n) for(int i=(n)-1;i>=0;i--)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define RFOR(i,a,b) for(int i=(b)-1;i>=(a);i--)
#define STR(i,str) for(int i=0;(str)[i];i++)
#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX3(a,b,c) ((a)>(b)?(a)>(c)?(a):(c):(b)>(c)?(b):(c))
#define MIN3(a,b,c) ((a)<(b)?(a)<(c)?(a):(c):(b)<(c)?(b):(c))
#define RNG(a,b) ((a)>(b)?(a)-(b):(b)-(a))
#define RNG3(a,b,c) ((a)>(b)?(b)>(c)?(a)-(c):(c)>(a)?(c)-(b):(a)-(b):(b)>(c)?(c)>(a)?(b)-(a):(b)-(c):(c)-(a))
#define MAXS(a,b) {if((a)<(b))(a)=(b);}
#define MINS(a,b) {if((a)>(b))(a)=(b);}

int main(){
	int a, b, c, d, e, f;
	int ans1 = 1, ans2 = 0;
	scanf("%d%d%d%d%d%d", &a, &b, &c, &d, &e, &f);
	a *= 100;
	b *= 100;
	for(int i = 0;; i++){
		if(a*i > f) break;
		else for(int j = 0;; j++){
			if(!i && !j) continue;
			else if(a*i + b*j > f) break;
			else{
				//printf("i:%d, j:%d\n", i, j);
				int max = 0;
				for(int k = 0;; k++){
					if(c*k > (a*i + b*j)*e / 100) break;
					else for(int l = 0;; l++){
						if(c*k + d*l > (a*i + b*j)*e / 100 || a*i + b*j + c*k + d*l > f) break;
						//printf(" k:%d, l:%d, ai+bj:%d, ck+dl:%d\n", k, l, a * i + b * j, c * k + d * l);
						if(c*k + d*l <= (a*i + b*j)*e / 100){
							MAXS(max, c*k + d*l);
						}
					}
				}
				if(ans1 * max > ans2 * (a * i + b * j + max)){
					ans1 = a * i + b * j + max;
					ans2 = max;
				}
			}
		}
	}
	printf("%d %d\n", ans1, ans2);
}

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