Language: C++

#include<iostream>
using namespace std;

int A,B,C,D,E,F;#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:4:17: error: stray '#' in program
    4 | int A,B,C,D,E,F;#include<iostream>
      |                 ^
a.cc:4:18: error: 'include' does not name a type
    4 | int A,B,C,D,E,F;#include<iostream>
      |                  ^~~~~~~
a.cc:6:5: error: redefinition of 'int A'
    6 | int A,B,C,D,F;
      |     ^
a.cc:4:5: note: 'int A' previously declared here
    4 | int A,B,C,D,E,F;#include<iostream>
      |     ^
a.cc:6:7: error: redefinition of 'int B'
    6 | int A,B,C,D,F;
      |       ^
a.cc:4:7: note: 'int B' previously declared here
    4 | int A,B,C,D,E,F;#include<iostream>
      |       ^
a.cc:6:9: error: redefinition of 'int C'
    6 | int A,B,C,D,F;
      |         ^
a.cc:4:9: note: 'int C' previously declared here
    4 | int A,B,C,D,E,F;#include<iostream>
      |         ^
a.cc:6:11: error: redefinition of 'int D'
    6 | int A,B,C,D,F;
      |           ^
a.cc:4:11: note: 'int D' previously declared here
    4 | int A,B,C,D,E,F;#include<iostream>
      |           ^
a.cc:6:13: error: redefinition of 'int F'
    6 | int A,B,C,D,F;
      |             ^
a.cc:4:15: note: 'int F' previously declared here
    4 | int A,B,C,D,E,F;#include<iostream>
      |               ^
a.cc:7:8: error: conflicting declaration 'double E'
    7 | double E;
      |        ^
a.cc:4:13: note: previous declaration as 'int E'
    4 | int A,B,C,D,E,F;#include<iostream>
      |             ^
a.cc:32:224: error: expected class-name before '~' token
   32 | }                                                                                               ~                                                                                                                              ~                                                                                                                              ~                                                                                                                              ~
      |                                                                                                                                                                                                                                ^