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

#include <bitset>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <cstring>
#include <string>
#include <sstream>
#include <algorithm>
#include <iomanip>
#include <iostream>

#define VARIABLE(x) cerr << #x << "=" << x << endl
#define BINARY(x) cerr << #x << "=" << static_cast<bitset<16> >(x) << endl;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define REP(i,m,n) for (int i=m;i<(int)(n);i++)
#define if_range(x, y, w, h) if (0<=x && x<w && 0<=y && y<h)

const int INF = 10000000;
int dx[4]={1, 0, -1, 0}, dy[4]={0, 1, 0, -1};
using namespace std;
typedef pair<int, int> P;

/** Problem1189 : Prime Caves **/
int caves[1010][1010];
int dp[1010][1010];
const int MAX = 1030000;
bool prime[MAX];

int main()
{
	int m, n;
	const int dx0[4] = {1, 0, -1, 0}, dy0[4] = {0, -1, 0, 1}, dx1[3]={-1, 0, 1};
	int sx, sy;
	
	for (int i=0; i<MAX; i++)
		prime[i] = true;
	
	prime[0] = false; prime[1] = false;
	
	for (int i=2; i<MAX; i++) {
		if (prime[i]) {
			for (int j=2; i*j<MAX; j++) {
				prime[i*j] = false;
			}
		}
	}
	
	while (cin>>m>>n, m||n) {
		fill(caves[0], caves[0]+1010*1010, 0);
		fill(dp[0], dp[0]+1010*1010, -1);
		int x=1010/2, y=1010/2 , t=1, direct=1;
		caves[x][y]=1;
		caves[++x][y]=2;
		int i=2; bool change = true;
		while (1) {
			rep(j, t) {
				x+=dx0[direct]; y+=dy0[direct];
				caves[x][y]=i+1;
				i++;
				if (i==n) {
					sx = x; sy = y;
				}
				if (i>=m) goto end;
			}
			if (change) {
				t++;
				change = false;
			} else {
				change=true;
			}
			direct++; direct%=4;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:65:48: error: label 'end' used but not defined
   65 |                                 if (i>=m) goto end;
      |                                                ^~~
Language: C

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

typedef struct rope { double x, y, l; } Rope;

/* 風船が飛ぶことのできる高さの最大値を求める */
Rope height(Rope r1, Rope r2){
	double d = sqrt((r1.x - r2.x) * (r1.x - r2.x) + (r1.y - r2.y) * (r1.y - r2.y));
}

int main(void){
	int n, x[10], y[10], l[10];
	Rope r[10], min;
	int i, x, y, l;

	while (scanf("%d", &n) == 1 && n >= 1 && n <= 10){
		for (i = 0; i < n; i++){
			scanf("%d%d%d", &x, &y, &l);
			r[i].x = x;
			r[i].y = y;
			r[i].l = l;
		}

		/* 風船が飛ぶことのできる高さの最大値を求める */
		min = r[0];
		for (i = 1; i < n; i++){
			min = height(min, r[i]);
		}

		/* 出力 */
		printf("%d\n", min.l);
	}

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:16: error: conflicting types for 'x'; have 'int'
   14 |         int i, x, y, l;
      |                ^
main.c:12:16: note: previous declaration of 'x' with type 'int[10]'
   12 |         int n, x[10], y[10], l[10];
      |                ^
main.c:14:19: error: conflicting types for 'y'; have 'int'
   14 |         int i, x, y, l;
      |                   ^
main.c:12:23: note: previous declaration of 'y' with type 'int[10]'
   12 |         int n, x[10], y[10], l[10];
      |                       ^
main.c:14:22: error: conflicting types for 'l'; have 'int'
   14 |         int i, x, y, l;
      |                      ^
main.c:12:30: note: previous declaration of 'l' with type 'int[10]'
   12 |         int n, x[10], y[10], l[10];
      |                              ^
Language: C++

3
10 10 20
10 -10 20
-10 10 120
1
10 10 16
2
10 10 20
10 -10 20
2
100 0 101
-90 0 91
2
0 0 53
30 40 102
3
10 10 20
10 -10 20
-10 -10 20
3
1 5 13
5 -3 13
-3 -3 13
3
98 97 168
-82 -80 193
-99 -96 211
4
90 -100 160
-80 -80 150
90 80 150
80 80 245
4
85 -90 290
-80 -80 220
-85 90 145
85 90 170
5
0 0 4
3 0 5
-3 0 5
0 3 5
0 -3 5
10
95 -93 260
-86 96 211
91 90 177
-81 -80 124
-91 91 144
97 94 165
-90 -86 194
89 85 167
-93 -80 222
92 -84 218
0

Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 3
      | ^
Language: C++

#include<iostream>
#include<algorithm>
#include<complex>
#include<cmath>
using namespace std;
typedef double R;
typedef complex<R> P;

struct C{P c;R r;};

double n, x, y, l;
C c[108];
C tc[108];
pair<P, P> cross_circles(C a, C b){
  R d = abs(a.c - b.c);
  R l = ((a.r*a.r - b.r*b.r) / d + d) / 2.0;
  R h = sqrt(a.r*a.r - l*l);
  P e = a.c + (b.c-a.c) * l / d;
  P p = (b.c-a.c) * h / d * P(0, -1);
  return make_pair(e + p, e - p);
}

bool able(R h){
  for(int i = 0;i < n;i++){
    tc[i] = c[i];
    if(c[i].r < h)return false;
    tc[i].r = sqrt(tc[i].r*tc[i].r - h*h);
  }
  
  vector<P> points;

  for(int i = 0;i < n;i++){
    for(int j = i + 1;j < n;j++){
      if(abs(tc[i].c - tc[j].c) >= tc[i].r + tc[j].r)continue;
      if(abs(tc[i].c - tc[j].c) <= abs(tc[i].r - tc[j].r))continue;
      pair<P, P> tmp = cross_circles(tc[i], tc[j]);
      points.push_back(tmp.first);
      points.push_back(tmp.second);
    }
    points.push_back(tc[i].c);
  }

  for(int i = 0;i < points.size();i++){
    bool tmp = true;
    P p = points[i];
    for(int j = 0;j < n;j++){
      if(abs(p - tc[j].c) > tc[j].r)tmp = false;
    }
    if(tmp == true){
      return true;
      
    }
  }
  return false;  
}

bool solve(){
  cin >> n;
  if(n == 0)return false;
  double bottom = 0.5, top = 300;
  for(int i = 0;i < n;i++){
    cin >> x >> y >> l;
    c[i].c = P(x, y);
    c[i].r = l;
    top = min(top, l);
  }
  for(int i = 0;i < 1000;i++){
    double mid = (bottom + top) / 2;
    if(able(mid))bottom = mid;
    else top = mid;
  }
  printf("%.10lf\n", bottom);
  return true;
}

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

Compiler output:
a.cc: In function 'bool able(R)':
a.cc:30:3: error: 'vector' was not declared in this scope
   30 |   vector<P> points;
      |   ^~~~~~
a.cc:5:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    4 | #include<cmath>
  +++ |+#include <vector>
    5 | using namespace std;
a.cc:30:11: error: expected primary-expression before '>' token
   30 |   vector<P> points;
      |           ^
a.cc:30:13: error: 'points' was not declared in this scope; did you mean 'printf'?
   30 |   vector<P> points;
      |             ^~~~~~
      |             printf
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
#define LIMIT 50
int n; long double x[100], y[100], l[100];
long double dst(long double ax, long double ay, long double az, long double bx, long double by, long double bz) {
	return sqrtl((ax - bx)*(ax - bx) + (ay - by)*(ay - by) + (az - bz)*(az - bz));
}
long double max_amari(long double ax, long double ay, long double az) {
	long double maxn = 1000000000.0l;
	for (int i = 0; i < n; i++) {
		maxn = min(maxn, l[i] - dst(ax, ay, az, 0, x[i], y[i]));
	}
	return maxn;
}
long double solve2(long double h, long double X) {
	long double L1 = -1000000.0l, R1 = 1000000.0l, c1, c2, maxn = -1000000000.0l;
	for (int i = 0; i < LIMIT; i++) {
		c1 = (L1 + L1 + R1) / 3.0l;
		c2 = (L1 + R1 + R1) / 3.0l;
		long double m1 = max_amari(h, X, c1);
		long double m2 = max_amari(h, X, c2);
		if (m1 >= m2)R1 = c2;
		if (m1 < m2)L1 = c1;
		maxn = max(maxn, max(m1, m2));
	}
	return maxn;
}
bool solve(long double h) {
	long double L1 = -1000000.0l, R1 = 1000000.0l, c1, c2, maxn = -1000000000.0l;
	for (int i = 0; i < LIMIT; i++) {
		c1 = (L1 + L1 + R1) / 3.0l;
		c2 = (L1 + R1 + R1) / 3.0l;
		long double m1 = solve2(h, c1);
		long double m2 = solve2(h, c2);
		if (m1 >= m2)R1 = c2;
		if (m1 < m2)L1 = c1;
		maxn = max(maxn, max(m1, m2));
	}
	if (maxn > -1e-14)return true;
	return false;
}
int main() {
	while (true) {
		cin >> n; if (n == 0)break;
		for (int i = 0; i < n; i++)cin >> x[i] >> y[i] >> l[i];
		long double L = 0.0l, R = 1000000.0l, M;
		for (int i = 0; i < LIMIT; i++) {
			M = (L + R) / 2;
			bool a1 = solve(M);
			if (a1 == true)L = M;
			if (a1 == false)R = M;
		}
		printf("%.15Lf\n", M);
	}
	return 0;
}

Compiler output:
a.cc: In function 'long double dst(long double, long double, long double, long double, long double, long double)':
a.cc:7:16: error: 'sqrtl' was not declared in this scope; did you mean 'strtol'?
    7 |         return sqrtl((ax - bx)*(ax - bx) + (ay - by)*(ay - by) + (az - bz)*(az - bz));
      |                ^~~~~
      |                strtol
Language: Java

package JAG2018C;
import java.util.Scanner;

public class Mian{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		while(true) {
			double x=sc.nextInt(),y=sc.nextInt(),n=sc.nextInt();
			if(x==0)break;
			x= (100+x)/100;
			y=(100+y)/100;
			int max=0;
			for(int i=1;i<n;i++) {
				for(int j=1;j<n;j++) {
					if((int)(i*x)+(int)(j*x)==n) 
						max =Math.max(max,(int)(i*y)+(int)(j*y));
				}
			}
			System.out.println(max);
			
			
		}
		sc.close();
	}

}



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


import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		while(true) {
			double x=in.nextInt(),y=in.nextInt(),s=in.nextInt();
			if(x==0)break;
			int max=0;
			for(double i=1;i<=s;i++) {
				for(double j=1;j<s=;j++) {
					if((int)(i*((100+x)/100))+(int)(j*((100+x)/100))==s) {
						//System.out.println(i*((100+y)/100)+j*((100+y)/100));
						max=Math.max(max, (int)((i*((100+y)/100))+(int)(j*((100+y)/100))));
					}
				}
			}
			
			System.out.println(max);
		}
	}

}



Compiler output:
Main.java:12: error: illegal start of expression
				for(double j=1;j<s=;j++) {
				                   ^
1 error
Language: Java

public class Test {
	public static void main(String[] args){
		int i,j,s,k=0,t=0,max;	
		double x,y,oldRate,newRate;		
		
		while(Integer.parseInt(args[k]) != 0){
			x = Integer.parseInt(args[k]);	//x?????£?\????????¶[%]
			y = Integer.parseInt(args[k+1]);	//y??????V????????¶[%]
			oldRate = (100+x)/100;
			newRate = (100+y)/100;
			s = Integer.parseInt(args[k+2]);	//s?????£?\????????¶?????????????????2?¨?§??i?????§???\v?£?????z
			max = 0;
			t = 0;						//t??????V????????¶?????????????????2?¨?§??i?????§???\v?£?????z
		
			for(i=1; i<s; i++){	
				for(j=1; j<s; j++){
					if(((int)(i*oldRate)+(int)(j*oldRate)) == s){
						t = (int)(i*newRate)+(int)(j*newRate);	
						max = Math.max(max, t);
					}
				}
			}
			
			if(t == 0){
				k += 3;
				continue;
			}
			System.out.println(max);
			k += 3;
		}
	}
}

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

package TaxRate;
import java.io.*;
import java.util.*;
 
public class TaxRate {
    private static Scanner scr;
	public static void main(String args[]) throws IOException{
	    scr = new Scanner(System.in);
		while (true){
		    try{
				String[] str = scr.nextLine().split(" ", 0);
				int x = Integer.parseInt(str[0]);
				int y = Integer.parseInt(str[1]);
				int s = Integer.parseInt(str[2]);
				if (x==0 && y==0 && s==0) break; //??\?????????
				System.out.println( MaxPrice(x, y, s) );
			}catch(Exception e){
				System.err.println("Exception");
				break;
			}
        }
	}
	
	private static int MaxPrice(int x, int y, int s){
		int max = 0;
		int p=0;
	    for(int i=1; i<=s; i++){
	    	//for(int j=s; j>=s/2; j--){
		    for(int j=i+1; j<=s; j++){
	    		if(Tax(i,j,x)==s){
	    			if((p=Tax(i,j,y))>max) max=p;
	    		}
	    	}
	    }
	    return max;
	}
	private static int Tax(int a, int b, int tax){
		return (a*(100+tax)/100) + (b*(100+tax)/100);
	}
}

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

import java.util.Scanner;

public class Main1192 {
	void run(){
      Scanner s = new Scanner(System.in);
      int x = s.nextInt();
      int y = s.nextInt();
      int p = s.nextInt();
       int max = 0;
       for(int i = 1; i < p; i++) {
         for (int j = 1; j < p; j++){
            int checkNum = i * (100 + x) / 100 + j * (100 + x) / 100;
            if( checkNum ==  p){
                int onceNum = (int)((double)(i * (100 + y) / 100) + (double)(j * (100 + y) / 100));
                max = Math.max(max, onceNum);
            }
         }
       }
       System.out.println(max);
	}

	public static void main(String[] args) {
		new Main1192().run();
	}
}

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

import java.util.Scanner;

public class Main {
	void run(){
      Scanner s = new Scanner(System.in);
      while(true){
        int x = s.nextInt();
        int y = s.nextInt();
        int p = s.nextInt();
        if (x == 0 && y == 0 & p == 0) break;
        int max = 0;
         for(int i = 1; i < p; i++) {
           for (int j = 1; j < p; j++){
              int checkNum = i * (100 + x) / 100 + j * (100 + x) / 100;
              if( checkNum ==  p){
                  int onceNum = (int)((double)(i * (100 + y) / 100) + (double)(j * (100 + y) / 100));
                  max = Math.max(max, onceNum);
              }
           }
         }
         System.out.println(max
       }
	}

	public static void main(String[] args) {
		new Main().run();
	}
}

Compiler output:
Main.java:21: error: ')' or ',' expected
         System.out.println(max
                               ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
	void run(){
      Scanner s = new Scanner(System.in);
      while(true){
        int x = s.nextInt();
        int y = s.nextInt();
        int p = s.nextInt();
        if (x == 0 && y == 0 & p == 0) break;
        int max = 0;
         for(int i = 1; i < p; i++) {
           for (int j = 1; j < p; j++){
              int checkNum = i * (100 + x) / 100 + j * (100 + x) / 100;
              if( checkNum ==  p){
                  int onceNum = (i * (100 + y) / 100) + (j * (100 + y) / 100));
                  max = Math.max(max, onceNum);
              }
           }
         }
         System.out.println(max);
       }
	}

	public static void main(String[] args) {
		new Main().run();
	}
}

Compiler output:
Main.java:16: error: ';' expected
                  int onceNum = (i * (100 + y) / 100) + (j * (100 + y) / 100));
                                                                             ^
1 error
Language: Java

import java.util.*;

public class Satomi {
	void run(){
		Scanner sc = new Scanner(System.in);
		while(true){
			int x = sc.nextInt();
			int y = sc.nextInt();
			int s = sc.nextInt();
			if(x == 0 && y == 0 && s == 0) {
				break;
			}
			int aprice = s * 100 / (100+x);
			int bprice = 1;
			int times = aprice/2;
			int max = 0;
			for(int i = 0; i < times; i++){
				int sum = aprice * (100 + y) / 100  + bprice * (100 + y) / 100;
				if(sum > max) max = sum;
				aprice--;
				bprice++;
			}
			System.out.println(max);
			
		}
		
	}
	public static void main(String[] args){
		new Satomi().run();
	}
}

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

import java.util.*;

public class Main {
	void run(){
		Scanner sc = new Scanner(System.in);
		while(true){
			int x = sc.nextInt();
			int y = sc.nextInt();
			int s = sc.nextInt();
			if ( ( x | y | s ) == 0 ) {
		        break;
		    }
	 }
		
	public static void main(String[] args){
		new Main().run();
	}
}

Compiler output:
Main.java:15: error: illegal start of expression
	public static void main(String[] args){
	^
1 error
Language: Java

import java.io.*;
import java.util.*;
class Main {
    public static void main(String args[]) 
    {
        while(true){
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            String str = br.readLine();
            StringTokenizer st = new StringTokenizer(str, " ");
            int x = Integer.parseInt(st.nextToken());
            int y = Integer.parseInt(st.nextToken());
            int s = Integer.parseInt(st.nextToken());
            if(x == 0 && y == 0 && s == 0){
                break;
            }
            //      System.out.println("x "+x+"y "+y+"s "+s);                                                                   
            int maxvalue = 0;
            for(int c1 = 1;c1 < s;c1++){
                for (int c2 = 1;c2 < s;c2++){
                    if (consumption(c1,x)+consumption(c2,x) == s){
                        if (consumption(c1,y)+consumption(c2,y)> maxvalue){
                            maxvalue = consumption(c1,y)+consumption(c2,y);
                        }
                    }
                }
            }
            System.out.println(maxvalue);
        }
    }
    static int consumption(int c,int a){
        return((int)Math.floor((double)c*(double)(100+a)/100));
    }
}

Compiler output:
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown
            String str = br.readLine();
                                    ^
1 error
Language: C

#include <stdio.h>

int main(){
    int s,p=0,q;
    int x,y;
    int a,b;
    int i,j;
    int c,d;
    i=a*(100+x)/100;
    j=b*(100+x)/100;
  
    scanf("%d %d %d",&x,&y,&s);
    while (!(x==0&&y==0&&s==0)) {
        for(a=0;a<s;a++) {
            for (b=a;b<s;b++){
                if (i+j==s) {
                    c=a*(100+y)/100;
                    d=b*(100+y)/100;
                    q=c+d;
                    if (q>p) {p=q;
                    }
            
            }
        }
        printf("%d\n",p);
        scanf("%d %d %d",&x,&y,&s);
    }
    return 0;

}

Compiler output:
main.c: In function 'main':
main.c:30:1: error: expected declaration or statement at end of input
   30 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
  int x,y,s,a=0,b,h1=0,h2=0,sum=0,hh1,hh2;
  while(1){
  scanf("%d %d %d",&x,&y,&s);
  if(x==0&&y==0&&s==0)
    break;
  for(a=1;a<s;a++){
    b=s-a;
    if((100*a)%(100+x)!=0){
    h1=a*100/(100+x)+1;
    }
    else
    h1=a*100/(100+x);
    if((b*100)%(100+x)!=0)
    h2=b*100/(100+x)+1;
    else
    h2=b*100/(100+x);
    hh1=h1*(100+x)/100;
    hh2=h2*(100+x)/100;
    if(hh1!=a){
      h1=0;
      h2=0;
    }
    if(hh2!=b){
      h1=0;
      h2=0;
    }
    h1=h1*(100+y)/100;
    h2=h2*(100+y)/100;
    if(sum<h1+h2){
      sum=h1+h2;
    }
  }
  printf("%d\n",sum);
  return(0);
}

Compiler output:
main.c: In function 'main':
main.c:37:1: error: expected declaration or statement at end of input
   37 | }
      | ^
Language: C

#include<stdio.h>

int shouhi(int n,int m){
	return n*(100+m)/100;
}

int main(){
	int X,Y,s,a,b,i,A=0,B=0;
	for(i=0;i<1000;i++){
		scanf("%d %d %d",&X,&Y,&s);
		if((X==0)&&(Y==0)&&(s==0)){
			return 0;
		for(a=1;a<100;a++){
			for(b=a+1;b<100;b++){
				if((shouhi(a,X) + shouhi(b,X) == s) && (shouhi(a,Y) + shouhi(b,Y) > shouhi(A,Y) + shouhi(B,Y))){
					A = a; B = b;
				}
			}
		}
		printf("%d\n",shouhi(A,Y) + shouhi(B,Y));
	}
					
	return 0;
	}

Compiler output:
main.c: In function 'main':
main.c:24:9: error: expected declaration or statement at end of input
   24 |         }
      |         ^
Language: C

#include<stdio.h>
int main(void){
	FILE *fp1,*fp2;
	int s,i,j,max,x,y,a,b;

	fopen_s(&fp1,"a.txt","r");
	fopen_s(&fp2,"a_ans.txt","w");
	while(1){
		max=0;
		fscanf_s(fp1,"%d %d %d",&x,&y,&s);
		if(x==0 && y==0 && s==0){
			break;
		}
		for(i=1;i<=s-i;i++){
			for(j=s-i;i<=j;j--){
				a=i*(100+x)*0.01;b=j*(100+x)*0.01;
				if(a+b==s){
					a=i*(100+y)*0.01;b=j*(100+y)*0.01;
					if(a+b>max){
						max=a+b;
						printf("%d %d %d\n",i,j,max);
					}
				}
			}
		}
		fprintf(fp2,"%d\n",max);
	}
	fclose(fp1);
	fclose(fp2);
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'fopen_s'; did you mean 'fopen'? [-Wimplicit-function-declaration]
    6 |         fopen_s(&fp1,"a.txt","r");
      |         ^~~~~~~
      |         fopen
main.c:10:17: error: implicit declaration of function 'fscanf_s'; did you mean 'fscanf'? [-Wimplicit-function-declaration]
   10 |                 fscanf_s(fp1,"%d %d %d",&x,&y,&s);
      |                 ^~~~~~~~
      |                 fscanf
Language: C

#include<stdio.h>
int main(void){
	int s,i,j,max,x,y,a,b;

	while(1){
		max=0;
		fscanf_s(fp1,"%d %d %d",&x,&y,&s);
		if(x==0 && y==0 && s==0){
			break;
		}
		for(i=1;i<=s-i;i++){
			for(j=s-i;i<=j;j--){
				a=i*(100+x)*0.01;b=j*(100+x)*0.01;
				if(a+b==s){
					a=i*(100+y)*0.01;b=j*(100+y)*0.01;
					if(a+b>max){
						max=a+b;
						printf("%d %d %d\n",i,j,max);
					}
				}
			}
		}
		fprintf(fp2,"%d\n",max);
	}
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: implicit declaration of function 'fscanf_s'; did you mean 'fscanf'? [-Wimplicit-function-declaration]
    7 |                 fscanf_s(fp1,"%d %d %d",&x,&y,&s);
      |                 ^~~~~~~~
      |                 fscanf
main.c:7:26: error: 'fp1' undeclared (first use in this function)
    7 |                 fscanf_s(fp1,"%d %d %d",&x,&y,&s);
      |                          ^~~
main.c:7:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:25: error: 'fp2' undeclared (first use in this function)
   23 |                 fprintf(fp2,"%d\n",max);
      |                         ^~~
Language: C

#include <stdio.h>


int main() {

	int x, y, s, i, j = 0,k,A,B;
	int answer[10000] = { 0 };

	while (true) {
		scanf("%d %d %d", &x, &y, &s);
		if (x == 0 && y == 0 && s == 0)
			break;
		A = (100 + x) / 100;
		B = (100 + y) / 100;
		for (i = 1; i < s; i++){
			for (j = 1; j < s; j++){
				if (s == i*A + j*A) {
					if (answer[k] < i*B + j*B) {
						answer[k] = i*B + j*B;
					}
				}
			}
		}
		k++;
	}
	putchar('\n');
	for (i = 0; i < k; i++)
		printf("%d\n", answer[i]);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:16: error: 'true' undeclared (first use in this function)
    9 |         while (true) {
      |                ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:9:16: note: each undeclared identifier is reported only once for each function it appears in
    9 |         while (true) {
      |                ^~~~
Language: C

#include <stdio.h>

int main() {

	int x, y, s, i, j = 0,k=0;
	int answer[10000] = { 0 };

	while (true) {
		scanf("%d %d %d", &x, &y, &s);
		if (x == 0 && y == 0 && s == 0)
			break;
		for (i = 1; i < s; i++){
			for (j = 1; j <s; j++){
				if (s == i*(100 + x) / 100 + j*(100 + x) / 100) {
					if (answer[k] < i*(100 + y) / 100 + j*(100 + y) / 100) {
						answer[k] = i*(100 + y) / 100 + j*(100 + y) / 100;
					}
				}
			}
		}
		k++;
	}

	for (i = 0; i < k; i++)
		printf("%d\n", answer[i]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:16: error: 'true' undeclared (first use in this function)
    8 |         while (true) {
      |                ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:8:16: note: each undeclared identifier is reported only once for each function it appears in
    8 |         while (true) {
      |                ^~~~
Language: C

#include<stdio.h>

int main()
{
  short rate_before,rate_after;
  int price_before,i,a,b,max;
  int n,m,p,q,r;

  while(1){
    max = 0;
    scanf("%hd %hd %d",&rate_before,&rate_after,&price_before);

    if(rate_before == 0 && rate_after == 0 && price_before == 0){
      break;
    }

    for(i = 1;i <= price_before/2;i++){
      n = i * (100+x) / 100;
      m = price_before - n;
      p = m * 100 / (100+x);

      while(1){
          p++;
          q = p * (100+x) / 100;
          if(n + q != price_before){
              p--;
              break;
          }
      }

      //r = p * (100+x) / 100;

      if(n + r == price_before){
          a = i * (100+y) / 100;
          b = p * (100+y) / 100;
          if(a+b > max){
              max = a + b;
          }
      }
    }

    printf("%d\n",max);
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:20: error: 'x' undeclared (first use in this function)
   18 |       n = i * (100+x) / 100;
      |                    ^
main.c:18:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:34:24: error: 'y' undeclared (first use in this function)
   34 |           a = i * (100+y) / 100;
      |                        ^
Language: C

#include<stdio.h>

int main()
{
  short rate_before,rate_after;
  int price_before,i,a,b,max;
  int n,m,p,q,r;

  while(1){
    max = 0;
    scanf("%hd %hd %d",&rate_before,&rate_after,&price_before);

    if(rate_before == 0 && rate_after == 0 && price_before == 0){
      break;
    }

    for(i = 1;i <= price_before/2;i++){
      n = i * (100+x) / 100;
      m = price_before - n;
      p = m * 100 / (100+x);

      while(1){
          p++;
          q = p * (100+x) / 100;
          if(n + q != price_before){
              p--;
              break;
          }
      }

      if(n + r == price_before){
          a = i * (100+y) / 100;
          b = p * (100+y) / 100;
          if(a+b > max){
              max = a + b;
          }
      }
    }

    printf("%d\n",max);
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:20: error: 'x' undeclared (first use in this function)
   18 |       n = i * (100+x) / 100;
      |                    ^
main.c:18:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:32:24: error: 'y' undeclared (first use in this function)
   32 |           a = i * (100+y) / 100;
      |                        ^
Language: C

#include<stdio.h>

int main()
{
  short rate_before,rate_after;
  int price_before,i,a,b,max;
  int n,m,p,q,r;

  while(1){
    max = 0;
    scanf("%hd %hd %d",&rate_before,&rate_after,&price_before);

    if(rate_before == 0 && rate_after == 0 && price_before == 0){
      break;
    }

    for(i = 1;i <= price_before/2;i++){
      n = i * (100+x) / 100;
      m = price_before - n;
      p = m * 100 / (100+x);

      while(1){
          p++;
          q = p * (100+x) / 100;
          if(n + q != price_before){
              p--;
              break;
          }
      }

     // if(n + r == price_before){
          a = i * (100+y) / 100;
          b = p * (100+y) / 100;
          if(a+b > max){
              max = a + b;
          }
      //}
    }

    printf("%d\n",max);
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:20: error: 'x' undeclared (first use in this function)
   18 |       n = i * (100+x) / 100;
      |                    ^
main.c:18:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:32:24: error: 'y' undeclared (first use in this function)
   32 |           a = i * (100+y) / 100;
      |                        ^
Language: C++

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

int tax(int p,t){
return p+p*t/100;
}

int main(){
  int x,y,s;

for(int i=0;i<99;i++){
  cin >> x >> y >> s;
 if(x=0){
 break;
 }
  vector<int> a(s,0);
for(int j=1;j<s;j++){
 if(tax(j,y)==s){
  a.at(i)=tax(j,x);
}
 sort(a,.begin(), a.end());
 cout << a.at(s) << endl;
}
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc:4:15: error: 't' has not been declared
    4 | int tax(int p,t){
      |               ^
a.cc: In function 'int tax(int, int)':
a.cc:5:12: error: 't' was not declared in this scope
    5 | return p+p*t/100;
      |            ^
a.cc: In function 'int main()':
a.cc:12:3: error: 'cin' was not declared in this scope
   12 |   cin >> x >> y >> s;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #Include<bits/stdc++.h>
a.cc:16:3: error: 'vector' was not declared in this scope
   16 |   vector<int> a(s,0);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #Include<bits/stdc++.h>
a.cc:16:10: error: expected primary-expression before 'int'
   16 |   vector<int> a(s,0);
      |          ^~~
a.cc:19:3: error: 'a' was not declared in this scope
   19 |   a.at(i)=tax(j,x);
      |   ^
a.cc:21:7: error: 'a' was not declared in this scope
   21 |  sort(a,.begin(), a.end());
      |       ^
a.cc:21:9: error: expected primary-expression before '.' token
   21 |  sort(a,.begin(), a.end());
      |         ^
a.cc:21:2: error: 'sort' was not declared in this scope; did you mean 'short'?
   21 |  sort(a,.begin(), a.end());
      |  ^~~~
      |  short
a.cc:22:2: error: 'cout' was not declared in this scope
   22 |  cout << a.at(s) << endl;
      |  ^~~~
a.cc:22:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:21: error: 'endl' was not declared in this scope
   22 |  cout << a.at(s) << endl;
      |                     ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #Include<bits/stdc++.h>
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:8:11: note: to match this '{'
    8 | int main(){
      |           ^
Language: C++

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

int tax(int p,int t){
return p+p*t/100;
}

int main(){
  int x,y,s;

for(int i=0;i<99;i++){
  cin >> x >> y >> s;
 if(x=0){
 break;
 }
  vector<int> a(s,0);
for(int j=1;j<s;j++){
 if(tax(j,y)==s){
  a.at(i)=tax(j,x);
}
 sort(a,.begin(), a.end());
 cout << a.at(s) << endl;
}
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:12:3: error: 'cin' was not declared in this scope
   12 |   cin >> x >> y >> s;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #Include<bits/stdc++.h>
a.cc:16:3: error: 'vector' was not declared in this scope
   16 |   vector<int> a(s,0);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #Include<bits/stdc++.h>
a.cc:16:10: error: expected primary-expression before 'int'
   16 |   vector<int> a(s,0);
      |          ^~~
a.cc:19:3: error: 'a' was not declared in this scope
   19 |   a.at(i)=tax(j,x);
      |   ^
a.cc:21:7: error: 'a' was not declared in this scope
   21 |  sort(a,.begin(), a.end());
      |       ^
a.cc:21:9: error: expected primary-expression before '.' token
   21 |  sort(a,.begin(), a.end());
      |         ^
a.cc:21:2: error: 'sort' was not declared in this scope; did you mean 'short'?
   21 |  sort(a,.begin(), a.end());
      |  ^~~~
      |  short
a.cc:22:2: error: 'cout' was not declared in this scope
   22 |  cout << a.at(s) << endl;
      |  ^~~~
a.cc:22:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:21: error: 'endl' was not declared in this scope
   22 |  cout << a.at(s) << endl;
      |                     ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #Include<bits/stdc++.h>
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:8:11: note: to match this '{'
    8 | int main(){
      |           ^
Language: C++

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

int tax(int p,int t){
return p+p*t/100;
}

int main(){
  int x,y,s;

for(int i=0;i<99;i++){
  cin >> x >> y >> s;
 if(x=0){
 break;
 }
  vector<int> a(s,0);
for(int j=1;j<s;j++){
 if(tax(j,y)==s){
  a.at(i)=tax(j,x);
}
 sort(a.begin(), a.end());
 cout << a.at(s) << endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:8:11: note: to match this '{'
    8 | int main(){
      |           ^
Language: C++

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

int tax(int p,int t){
return p+p*t/100;
}

int main(){
  int x,y,s;

  cin >> x >> y >> s;
 if(x=0){
 break;
 }
  vector<int> a(s,0);
for(int j=1;j<s;j++){
 if(tax(j,y)==s){
  a.at(i)=tax(j,x);
}
 sort(a.begin(), a.end());
 cout << a.at(s) << endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:2: error: break statement not within loop or switch
   13 |  break;
      |  ^~~~~
a.cc:18:8: error: 'i' was not declared in this scope
   18 |   a.at(i)=tax(j,x);
      |        ^
Language: C++

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

int tax(int p,int t){
return p+p*t/100;
}

int main(){
  int x,y,s;

  cin >> x >> y >> s;
 if(x=0){
 break;
 }
  vector<int> a(s,0);
for(int j=1;j<s;j++){
 if(tax(j,y)==s){
  a.at(j-1)=tax(j,x);
}
 sort(a.begin(), a.end());
 cout << a.at(s) << endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:2: error: break statement not within loop or switch
   13 |  break;
      |  ^~~~~
Language: C++

#include<iostream>
#include<string>
#include<queue>
#include <utility>
#include <functional>
//#include<>
using namespace std;

const int dx[] = {1, 0, -1, 0}, dy[] = {0, -1, 0, 1};
//#define int long long;
signed main(){
  int x,y,s;
  while(cin >> x >> y >> s, x){

    for(int i = 0; i < 999; ++i){
      for(int j = 0; i < 999; ++j){
	if(s = (i*(100+x)/100 + j*(100+x)/100)){

	  res = max(res, i*(100+y)/100 + j*(100+y)/100);
 


	}


      }

      cout << res << endl;
  }
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:19:11: error: 'res' was not declared in this scope
   19 |           res = max(res, i*(100+y)/100 + j*(100+y)/100);
      |           ^~~
a.cc:28:15: error: 'res' was not declared in this scope
   28 |       cout << res << endl;
      |               ^~~
a.cc:31:2: error: expected '}' at end of input
   31 | }
      |  ^
a.cc:11:14: note: to match this '{'
   11 | signed main(){
      |              ^
Language: C++

int main(){
	int x, y, s;
	int i, j, n;
	float r1, r2;
	while(~scanf("%d %d %d", &x, &y, &s) && x | y | s){
		r1 = (float)x / 100 + 1;
		r2 = (float)y / 100 + 1;
		n = 0;
		for(i = 1, x = 0; i <= s; i++){
			x = 0;
			for(j = 1; i + j <= s; j++){
				x = (int)(i * r1) + (int)(j * r1);
				y = (int)(i * r2) + (int)(j * r2);
				if(x == s){
					if(n < y){
						n = y;
					}
				}
			}
		}
		printf("%d\n", n);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: 'scanf' was not declared in this scope
    5 |         while(~scanf("%d %d %d", &x, &y, &s) && x | y | s){
      |                ^~~~~
a.cc:21:17: error: 'printf' was not declared in this scope
   21 |                 printf("%d\n", n);
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: C++

#include<iostream>
using namespace std;

void main(){
	int x,y,s;
	cin>>x>>y>>s;
	while((x|y|s)!=0){
		int a=1,b=s-1;
		int top=0;
		while(a<=b){
			//aとbの税抜きの最大金額を計算する
			int a_max= (double)a*100/(100+x);
			int b_max= (double)b*100/(100+x);
			while((double)a_max*(100+x)/100 < a+1) a_max++;
			while((double)b_max*(100+x)/100 < b+1) b_max++;
			a_max--; b_max--;
//cout<<"a="<<a<<" b="<<b;
//cout<<" A="<<a_max<<" B="<<b_max;
			if((int)((double)a_max*(100+x)/100) == a && (int)((double)b_max*(100+x)/100) == b ){
				int price=(int)((double)a_max*(100+y)/100) + (int)((double)b_max*(100+y)/100);
//cout<<" price="<<(double)a_max*(100+y)/100 <<"+"<< (double)b_max*(100+y)/100<<"="<<price<<endl;
				if(price>top) top=price;
			}
			a++; b--;
		}
		cout<<top<<endl;
		cin>>x>>y>>s;
	}
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(){
      | ^~~~
Language: C++

#include<iostream>
using namespace std;

void main(){
	int x,y,s;
	cin>>x>>y>>s;
	while((x|y|s)!=0){
		int a=1,b=s-1;
		int top=0;
		while(a<=b){
			int a_max= (int)((double)a*100/(100+x));
			int b_max= (int)((double)b*100/(100+x));
			while((double)a_max*(100+x)/100 < a+1) a_max++;
			while((double)b_max*(100+x)/100 < b+1) b_max++;
			a_max--; b_max--;
			if((int)((double)a_max*(100+x)/100) == a && (int)((double)b_max*(100+x)/100) == b ){
				int price=(int)((double)a_max*(100+y)/100) + (int)((double)b_max*(100+y)/100);
				if(price>top) top=price;
			}
			a++; b--;
		}
		cout<<top<<endl;
		cin>>x>>y>>s;
	}
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(){
      | ^~~~
Language: C++

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

inline int calc(int p, int x) {
  return p * (100 + x) / 100;
}

int main() {
  for(int x, y, s; cin >> x >> y >> s && (x|y|s);) {
    int res = 0;
    for(int a = 1; a < s; ++a) {
      for(int b = 1; b < s; ++b) {
        if(calc(a, x) + calc(b, x) != s) continue;
        res = max(res, calc(a, y) + calc(b, y));
      }
    }
    cout << res << endl;
  }
  return 0;
}

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude <bits/stdc++.h>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:9:20: error: 'cin' was not declared in this scope
    9 |   for(int x, y, s; cin >> x >> y >> s && (x|y|s);) {
      |                    ^~~
a.cc:14:15: error: 'max' was not declared in this scope
   14 |         res = max(res, calc(a, y) + calc(b, y));
      |               ^~~
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout << res << endl;
      |     ^~~~
a.cc:17:20: error: 'endl' was not declared in this scope
   17 |     cout << res << endl;
      |                    ^~~~
Language: C++

#include "stdafx.h"
#include <iostream>
using namespace std;

int main()
{
	int a[100];
	int i, j, k, n = 0,t;
	int m1, m2;
	int mm1, mm2;
	int temp;

	while (1){
		int x, y, s;//x???????¨????,y??´??°???????¨????,z??????????¨?

		cin >> x >> y >> s;

		if (x == 0 && y == 0 && s == 0) break;

		int max=0;

		for (m1 = 1; m1 < s; m1++){
			for (m2 = 1; m2 < s; m2++){
				if (m1 >= m2){
					//			mm1 = (m1 * (100 + x)) / 100;
					//			mm2 = s - mm1;

					//			m2 = (100 * (mm2 + 0.5)) / (100 + x);
					temp = 0;
					if ((((m1 * (100 + x)) / 100) + ((m2 * (100 + x)) / 100)) == s){
						//			cout << m1 << ' ' << m2 << endl;

						temp = (m1 * (100 + y)) / 100;
						temp += (m2*(100 + y)) / 100;
						if (temp > max){
							max = temp;
							//cout << max << endl;
						}
					}
				}
			}
		}
//		cout << max << endl;
		a[n++] = max;
	}

	for (i = 0; i < n; i++)
		cout << a[i] << endl;

	return(0);
}

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

int taxx(int p){
  return p*(100+x)/100;
}
int taxy(int p){
  return p*(100+y)/100;
}

int main(){
  int i,j;
  int p1,p2,s;
  int max;
  int p3,p4;

  while(1){
    p3=0;
    p4=0;
    max=-1;
    cin >> x >> y >> s;
    if(x==0 && y==0 && s==0)break;
    for(i=1;i<=(s-1)/2;i++){
      for(j=1;j<=s-1;j++){
	p1=taxx(i);
	p2=taxx(j);
	if(p1+p2==s){
	p1=taxy(i);
	p2=taxy(j);
	if(p1+p2>max){
	  max=p1+p2;
	}
      }
    }
    }
    cout << max << endl;
  }
}

Compiler output:
a.cc: In function 'int taxx(int)':
a.cc:2:17: error: 'x' was not declared in this scope
    2 |   return p*(100+x)/100;
      |                 ^
a.cc: In function 'int taxy(int)':
a.cc:5:17: error: 'y' was not declared in this scope
    5 |   return p*(100+y)/100;
      |                 ^
a.cc: In function 'int main()':
a.cc:18:5: error: 'cin' was not declared in this scope
   18 |     cin >> x >> y >> s;
      |     ^~~
a.cc:18:12: error: 'x' was not declared in this scope
   18 |     cin >> x >> y >> s;
      |            ^
a.cc:18:17: error: 'y' was not declared in this scope
   18 |     cin >> x >> y >> s;
      |                 ^
a.cc:33:5: error: 'cout' was not declared in this scope
   33 |     cout << max << endl;
      |     ^~~~
a.cc:33:20: error: 'endl' was not declared in this scope
   33 |     cout << max << endl;
      |                    ^~~~
Language: C++

#include <cstdio>
#include <vector>
using namespace std;
int tax(int tr, int p){
  int a;
  a = (100 + tr) * p / 100;
  return a;
}

int X, Y, S;

int solve(){
  int MAX = 0;
  for(int i = 1; i < S; i++){
    for(int j = i; j < S; j++){
      if(tax(X, i) + tax(X, j) == S)
	MAX = max(MAX, tax(Y, i) + tax(Y, j));
    }
  }
  return MAX
}

int main(){
  while(scanf("%d %d %d", &X, &Y, &S) && X > 0){
    printf("%d\n", solve());
  }
}

Compiler output:
a.cc: In function 'int solve()':
a.cc:20:13: error: expected ';' before '}' token
   20 |   return MAX
      |             ^
      |             ;
   21 | }
      | ~
Language: C++

#include <iostream>
using namespace std;
int X,Y,S;

int solve() {
  int max = 0;
  cin >> X >> Y >> S;
  for (int i=1;i<S;i++) {
    for (int j=i;j<s;j++) {
      if (tax(X,i)+tax(X,j) == S) {
	max = maxCheck(max,tax(Y,i)+tax(Y,j));
      }
    }
  }
}
int maxCheck(int max,int sum) {
  if (max>sum)
    return max;
  else
    return sum;
}
int tax(int ratio,int price) {
  return int(price*ration/100.0);
}
int main() {
  while (cin >> X >> Y >> S && X>0) {
    cout << solve() << endl;
  }
}

Compiler output:
a.cc: In function 'int solve()':
a.cc:9:20: error: 's' was not declared in this scope
    9 |     for (int j=i;j<s;j++) {
      |                    ^
a.cc:10:11: error: 'tax' was not declared in this scope; did you mean 'max'?
   10 |       if (tax(X,i)+tax(X,j) == S) {
      |           ^~~
      |           max
a.cc:11:15: error: 'maxCheck' was not declared in this scope
   11 |         max = maxCheck(max,tax(Y,i)+tax(Y,j));
      |               ^~~~~~~~
a.cc:15:1: warning: no return statement in function returning non-void [-Wreturn-type]
   15 | }
      | ^
a.cc: In function 'int tax(int, int)':
a.cc:23:20: error: 'ration' was not declared in this scope; did you mean 'ratio'?
   23 |   return int(price*ration/100.0);
      |                    ^~~~~~
      |                    ratio
Language: C++

#include <iostream>
using namespace std;
int X,Y,S;
int solve();
int maxCheck(int max,int sum);
int tax(int ratio,int price);

int solve(int X,int Y,int S) {
  int max = 0;
  for (int i=1;i<S;i++) {
    for (int j=i;j<S;j++) {
      if (tax(X,i)+tax(X,j) == S) {
	max = maxCheck(max,(tax(Y,i)+tax(Y,j)));
      }
    }
  }
  return max;
}
int maxCheck(int max,int sum) {
  if (max>sum)
    return max;
  else
    return sum;
}
int tax(int ratio,int price) {
  return int(price*(100+ratio)/100.0);
}
int main() {
  while (cin >> X >> Y >> S && X>0) {
    cout << solve() << endl;
  }
}

Compiler output:
/usr/bin/ld: /tmp/ccg3zOYw.o: in function `main':
a.cc:(.text+0xfa): undefined reference to `solve()'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
using namespace std;

int X,Y,S;

int tax(double rate,int price){
    return price*(100+rate)/100;
}

int solve(){
    int maximum = 0;
    for(int i=1; i<S; ++i){
        for(int j=1; j<S; ++j){
            if(tax(X,i)+tax(X,j) == S)
                maximum = max(maximum, tax(Y,i)+tax(Y,j))
        }
    }
    return maximum;
}

int main(){
    while(cin >> X >> Y >> S && X>0){
        cout << solve() << endl;
    }
}

Compiler output:
a.cc: In function 'int solve()':
a.cc:15:58: error: expected ';' before '}' token
   15 |                 maximum = max(maximum, tax(Y,i)+tax(Y,j))
      |                                                          ^
      |                                                          ;
   16 |         }
      |         ~
Language: C++

#include<iostream>
using namespace std;

int main(){
	int maximum;
	int X,Y,S;
	cin >> X >> Y >> S;
	for(int i=1;i<S;++i)
		for(int j=1;j<S;j++){
		if(tax(X,i)+tax(X,j)==S)
			maximum = max(maximum,tax(Y,i)+tax(Y,j));
		}
	cout << maximum << endl;
}

int tax(int a,int b){
	return (int)b*(double)(1+a/100);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: 'tax' was not declared in this scope
   10 |                 if(tax(X,i)+tax(X,j)==S)
      |                    ^~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;

int main(){
	int maximum=0;
	int X,Y,S;
	cin >> X >> Y >> S;
	for(int i=1;i<S;++i)
		for(int j=1;j<S;j++){
		if(tax(X,i)+tax(X,j)==S)
			maximum = max(maximum,tax(Y,i)+tax(Y,j));
		}
	cout << maximum << endl;
}

int tax(int a,int b){
	return (int)b*(double)(1.0+(double)a/100);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 'tax' was not declared in this scope
   11 |                 if(tax(X,i)+tax(X,j)==S)
      |                    ^~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;

int main(){
	int maximum=0;
	int X,Y,S;
	cin >> X >> Y >> S;
	for(int i=1;i<S;++i)
		for(int j=1;j<S;j++){
		if(tax(X,i)+tax(X,j)==S)
			maximum = max(maximum,tax(Y,i)+tax(Y,j));
		}
	cout << maximum << endl;
        return 0;
}

int tax(int a,int b){
	return (int)b*(double)(1.0+(double)a/100);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 'tax' was not declared in this scope
   11 |                 if(tax(X,i)+tax(X,j)==S)
      |                    ^~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	int x=1,y=1,s=11,k=0,max[1000];

	while(S !=0){
		cin>>x>>y>>s;
		S=x+y+s;
		int a,b,A,C,D,t[1000];
		k+=1;

		for(a=1;a<s-1;a++){
			A=a+a*x/100;
			for(b=1;b+b*x/100<s-A;b++)
			C=a+a*y/100;
			D=b+b*y/100;
			t[a]=C+D;
		}

		int i,M=t[1];

		for(i=1;i<s-1;i++){

			if(M<t[i]){
				M=t[i];
			}
			max[k]=M;
		}

	}
	int j;
	for(j=1;j<k;j++){
		cout<<max[j]<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'S' was not declared in this scope
    7 |         while(S !=0){
      |               ^
Language: C++

#include "../stdc++.h"
 
#define loop(n, i) for(int i=0;i<n;i++)
#define all(v) v.begin(),v.end()
#define HERE cout << "HERE: " << __LINE__ << endl;
#define INSP(v) cout << v << " at " << __LINE__ << endl;

using namespace std;
typedef long long ll;

int tax(int a, int t) {
    return static_cast<int>(a*(100+t)/100);
}

int main()
{
    int x, y, s, ans;
    
    for(;;) {
        cin >> x >> y >> s;
        if (x==0 && y==0 && s==0) break;

        ans = 0;
        for (int i = 0; i < s; i++) {
            for (int j = i; j < s; j++) {
                if (tax(i,x)+tax(j,x) == s) {
                    ans = max(ans, tax(i,y)+tax(j,y));
                }
            }
        }
        cout << ans << endl;
    }
}

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

#include <stdio.h>

//?¨????pct%??§?¨????yen????????¨???????¨??????????
int zeikomi(int yen, int pct){
	return yen*(100+pct)/100;
}

//?¨????pct%??§?¨????yen????????????????¨?????????????????????§???
int zeinuki(int yen, int pct){
	if( yen*100%(100+pct) == 0 )
		return yen*100/(100+pct);
	else
		return (yen+1)*100/(100+pct);
}

void main(){
	int x, y, s;
	int ans, tmp;
	int i, j;

	while( scanf("%d%d%d", &x, &y, &s) != EOF ){
		if( x*x+y*y+s*s==0 )	break;

		ans = 0;
		for(i=1; i<=s/2; i++){
			j = zeinuki(s-zeikomi(i,x), x);	//?¨????i,j???????????¢?????????????????????
			if( zeikomi(i,x)+zeikomi(j,x)!=s ) continue;
			tmp = zeikomi(i,y) + zeikomi(j,y);
			if(ans < tmp) ans = tmp;
		}

		printf("%d?\n", ans);
	}
}

Compiler output:
a.cc:16:1: error: '::main' must return 'int'
   16 | void main(){
      | ^~~~