criyle/codenet-compile-errors huggingface dataset:
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();
      　if (20 < (a - b) || (a - b) < 0) {
            System.out.println(-1);
        } else {
            for (int i = 1; i <= 1000; i++) {
                int at = (int) (i * 0.08);
                int bt = (int) (i * 0.1);
                if (at == a && bt == b) {
                    System.out.println(i);
                    break;
                }
            }
        }
    }
}


Compiler output:
Main.java:9: error: illegal character: '\u3000'
      ?if (20 < (a - b) || (a - b) < 0) {
      ^
1 error
Language: C++

#define _USE_NATH_DEFINES
#include <cstdio>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <complex>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <limits>
#include <climits>
#include <cfloat>
#include <functional>
#include <iterator>
#include <random>
#include <tuple>


using namespace std;
#define REP(i,m,n) for(int i=(int)m ; i < (int) n ; ++i )
#define rep(i,n) REP(i,0,n)
using ll = long long;
#define EPS 1e-9
const int INF = 1050000000;
const long long LINF = 1LL << 60;
const ll MOD = 1e9 + 7;
const int MINF = -1050000000;

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }



int main() {
	double a, b;
	cin >> a >> b;
	//double ans = floor(a / 0.08);
	cout << ans << endl;
	if (a == floor(ans*0.08) && b == floor(ans * 0.1)) cout << ans << endl;
	else cout << -1 << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:47:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   47 |         cout << ans << endl;
      |                 ^~~
      |                 abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
 
int main(){
  int A,B,X,Y;
  cin>>A>>B;
  X=B/0.1;
  Y=(B+1)/0.1;
  
  int Z,W;
  rep2(i,X,Y){
    Z=i*0.08;
    if(Z==A){
      W=i;
      break;
    }
    if(i=Y-1)
      W=-1;
  }
  

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

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

int main(){
    int a,b;
    cin>>a>>b;

    int ans=-1;

    for(int i;i<100000;i++){
        int A,B;
        A=i*8/10;
        B=i/10;
        if(a=A&&b=B){
            ans=i;
            break;
        }
    }
    cout<<ans<<endl;
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: lvalue required as left operand of assignment
   14 |         if(a=A&&b=B){
      |              ~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
char s[210];
map < string , int > cn, cn2;
map < pair < string , string > , char > us;
int main(){
	//freopen("t.in", "r", stdin);
	int a1 = 0, a2 = 0;
	while (scanf("%s", s) != EOF){
		int l = strlen(s);
		bool f = 1;
		string sp;
		int d = 0;
		while (1){
			while (s[l-1] != '\\') l--;
			l--;
			if (l == 2) break;
			s[l] = 0;
			string ss = s;
			if (!f){
				if (us[mp(ss, sp)] == 0) d++;
				cn[ss] += d;
				a1 = max(a1, cn[ss]);
				us[mp(ss, sp)] = 1;
			}
			cn2[ss]++;
			a2 = max(a2, cn2[ss]);
			f = 0;
			sp = ss;
		}
	}
	printf("%d %d\n", a1, a2);
	return 0;
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:22:40: error: 'mp' was not declared in this scope; did you mean 'sp'?
   22 |                                 if (us[mp(ss, sp)] == 0) d++;
      |                                        ^~
      |                                        sp
a.cc:25:36: error: 'mp' was not declared in this scope; did you mean 'sp'?
   25 |                                 us[mp(ss, sp)] = 1;
      |                                    ^~
      |                                    sp
Language: C++

#include <iostream>
#include <math.h>
using namespace std;
int eghit[2147483647];
int ten[2147483647];

int main(){
    int as, ab, bs, bb, a, b;
    cin >> a >> b;
    as = (a * 12.5);
    ab = ceil((a+1) * 12.5);
    bs = ceil(b * 12.5);
    bb = ceil((b+1) * 12.5);
    ab -= 1;
    bb -= 1;
    for(int i=as;i<=ab;i++){
        for(int j=0;j<=ab-as-1;j++){
            eghit[j]=i;
        }
    }
    for(int i=bs;i<=bb;i++){
        for(int j=0;j<=bb-bs-1;j++){
            ten[j]=i;
        }
    }
    for(int i=0;i<=bb-bs-1;i++){
        for(int j=0;j<=ab-as-1;j++){
            if(ten[i] == eghit[j]){
                cout << eghit[j] << endl;
                return 0;
            }
        }
    }
    
}


Compiler output:
/tmp/ccvKOnx5.o: in function `main':
a.cc:(.text+0x14a): relocation truncated to fit: R_X86_64_PC32 against symbol `ten' defined in .bss section in /tmp/ccvKOnx5.o
a.cc:(.text+0x194): relocation truncated to fit: R_X86_64_PC32 against symbol `ten' defined in .bss section in /tmp/ccvKOnx5.o
collect2: error: ld returned 1 exit status
Language: C++

//organize and stay in moment - Abhinav IIIT-A
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define f(i,x,n) for(int i=x;i<n;++i)
#define ar array
#define MAXN (int)2e5+5
#define pb push_back
int mod= 998244353;
int arr[MAXN];
int as;
void input(){
  cin>>as;
  f(i,0,as) cin>>arr[i];
}
void q1(){
  string s; cin>>s;
  int a=0,b=0;
  f(i,0,3)
  s[i]=='A'  ? ++a : ++b;
  if(a&&b)
    cout<<"Yes";
  else cout<<"No";
}
void q2(){
  int n,a,b;
  cin>>n>>a>>b;
  int t=a+b;
  int q=n/t;
  int ans=q*a;
  int r=n%t;
  ans+=min(r,a);
  cout<<ans;
}
void q3(){
  int a,b; cin>>a>>b;
  for(int i=1;i<=100000;++i){
    int x=i*8; x/=100;
    int y=i*10; y/=100;
    if(x==a && y==b){
      cout<<i;
      return ;
    }
  }
  cout<<-1;
}
void q4(){
  string s; cin>>s;
  dequeue<int> q;
  f(i,0,s.size())
  q.push_back(s[i]);
  int Q; cin>>>Q;
  int curr=0;
  while(Q--){
    int t;
    cin>>t;
    if(t==1){
      curr=1-curr;
    }else{
      // 0 0 begin
      //0 1 end
      //1 0 end
      //1 1 begin
      int f;char c; cin>>f>>c;
      if((f+curr)%2==0)
        q.push_front(c);
      else q.push_back(c);
    }
  }
  string ret="";
  while(!q.empty()){
    ret+=q.front();
    q.pop_front();
  }
  if(curr)
     reverse(ret.begin(),ret.end());
   cout<<ret;
   return ;
}
void q5(){
  int n,p; cin>>n>>p;
  string s; cin>>s;
  int ans=0;
  if(p==2){
    f(i,0,n)
    if((s[i]-'0')%2==0)
      ans+=i+1;
  }else if(p==5){
    f(i,0,n)
    if((s[i]-'0')%5==0)
      ans+=i+1;
  }else {
    int tt=1;
    int curr=0;
     map<int,int> mp;
     mp[0]++;
     for(int i=n-1;i>=0;--i){
        curr+=(s[i]-'0')*tt;
        tt*=10;
        tt%=p; curr%=p;
        ans+=mp[curr];
        ++mp[curr];
     }
  }
  cout<<ans;
}
int mod2=998244353;
void solve(){
 
}
int32_t main()
{
  int t; t=1; //cin>>t;
  while(t--) q3();
  return 0;
}


Compiler output:
a.cc: In function 'void q4()':
a.cc:49:3: error: 'dequeue' was not declared in this scope
   49 |   dequeue<int> q;
      |   ^~~~~~~
a.cc:4:13: error: expected primary-expression before 'long'
    4 | #define int long long
      |             ^~~~
a.cc:49:11: note: in expansion of macro 'int'
   49 |   dequeue<int> q;
      |           ^~~
a.cc:51:3: error: 'q' was not declared in this scope
   51 |   q.push_back(s[i]);
      |   ^
a.cc:52:15: error: expected primary-expression before '>' token
   52 |   int Q; cin>>>Q;
      |               ^
a.cc:66:9: error: 'q' was not declared in this scope
   66 |         q.push_front(c);
      |         ^
a.cc:67:12: error: 'q' was not declared in this scope
   67 |       else q.push_back(c);
      |            ^
a.cc:71:10: error: 'q' was not declared in this scope
   71 |   while(!q.empty()){
      |          ^
Language: C++

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

int main(){
  int a,b;
  cin >> a >> b;
  int ans;
  for(int i=1; i <=1000; i++){
    if(i*108/100=a&&i*110/100=b) ans=i;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: lvalue required as left operand of assignment
    9 |     if(i*108/100=a&&i*110/100=b) ans=i;
      |                  ~^~~~~~~~~~~
Language: C++

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

int main(){
  int a,b;
  cin >> a >> b;
  int ans;
  for(int i=1; i <=1000; i++){
    if(i*108/100=a&&i*110/100=b) ans=i
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: lvalue required as left operand of assignment
    9 |     if(i*108/100=a&&i*110/100=b) ans=i
      |                  ~^~~~~~~~~~~
a.cc:9:39: error: expected ';' before '}' token
    9 |     if(i*108/100=a&&i*110/100=b) ans=i
      |                                       ^
      |                                       ;
   10 |   }
      |   ~
Language: C++

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

int main(){
  int a,b;
  cin >> a >> b;
  int ans;
  for(i=1; i <=1000; i++){
    if(i*108/100=a&&i*110/100=b) ans=i
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=1; i <=1000; i++){
      |       ^
Language: C++

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

int main()
{


    int A,B;
    cin >> A >> B;
    int XA[10000],XB[10000];

    for (int i = 0; i < 10000; i++){
        XA[i] = (A + 0.0001*i) / 0.08;
        XB[i] = (B + 0.0001*i) / 0.10;
    }

    int XC = -1;

    for (int i = 9999; i >= 0; i--){
        if(XA[i] == XB[k]){
            XC = XA[i];
        }
    }

    cout << XC << endl;
    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:24: error: 'k' was not declared in this scope
   20 |         if(XA[i] == XB[k]){
      |                        ^
Language: C++

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

int main(void){
    double a, b;
    cin >> a >> b;

    if(ceil((a+1)/0.08) <= ceil(b/0.1) | ceil((a)/0.08) => ceil((b+1)/0.1)){
      cout << -1 << endl;
    } else if (ceil((a)/0.08) >= ceil(b/0.1)){
        cout << ceil(a/0.08) << endl;
    } else {
        cout << ceil(b/0.1) << endl;
    }
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:40: error: invalid operands of types 'bool' and 'double' to binary 'operator|'
   10 |     if(ceil((a+1)/0.08) <= ceil(b/0.1) | ceil((a)/0.08) => ceil((b+1)/0.1)){
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
      |                         |                    |
      |                         bool                 double
a.cc:10:58: error: expected primary-expression before '>' token
   10 |     if(ceil((a+1)/0.08) <= ceil(b/0.1) | ceil((a)/0.08) => ceil((b+1)/0.1)){
      |                                                          ^
Language: C++

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

int main(void){
    double a, b;
    int ans, max;
    cin >> a >> b;

    for(int i=0; i < 1010; i++){
      if(floor(i*0.08) == a && floor(i*0.1) ==b) {
        ans = i;
        cout << ans << endl;
        break
      }

      cout << -1 << endl;

    }

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: expected ';' before '}' token
   15 |         break
      |              ^
      |              ;
   16 |       }
      |       ~
Language: C++

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

int main(void){
    double a, b;
    int ans, max;
    cin >> a >> b;

    for(int i=0; i < 1010; i+){
      if(floor(i*0.08) == a && floor(i*0.1) ==b) {
        ans = i;
        cout << ans << endl;
        break
      }

      cout << -1 << endl;

    }

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected primary-expression before ')' token
   11 |     for(int i=0; i < 1010; i+){
      |                              ^
a.cc:15:14: error: expected ';' before '}' token
   15 |         break
      |              ^
      |              ;
   16 |       }
      |       ~
Language: C++

#include<iostream>
using namespace std;
int main(){
 	int a, b;
  	for(int i = 1; i < 2000; i++){
     	if((int)(i*0.08) == a && (int)(i*0.1) == b){
        	cout<<i<<endl;
          	return 0;
        }
    }
  	cout<<-1<<endl
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: expected ';' before '}' token
   11 |         cout<<-1<<endl
      |                       ^
      |                       ;
   12 | }
      | ~
Language: C++

// Problem03.cpp : アプリケーションのエントリ ポイントを定義します。
//

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

int main()
{
	int a, b;
	cin >> a >> b;

	int start = max(ceil(a / 0.08), ceil(b / 0.1));
	int end = min(floor((a + 1) / 0.08), floor((b + 1) / 0.1));
	if (start >= end)
		cout << -1 << endl;
	else
		cout << start << endl;

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: 'ceil' was not declared in this scope
   14 |         int start = max(ceil(a / 0.08), ceil(b / 0.1));
      |                         ^~~~
a.cc:15:23: error: 'floor' was not declared in this scope
   15 |         int end = min(floor((a + 1) / 0.08), floor((b + 1) / 0.1));
      |                       ^~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0; i<(n); i++)
using namespace std;
typedef long long ll;

int main(){
    int A,B; cin >> A >> B;
    //floorメソッドは切捨て
    for (int i=1; i<=1000; i++){
        if (floor(i*0.08)==a && floor(i*0.1)==b){
            cout << i << endl;
            return 0;
        }
    }
    cout << "-1";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:28: error: 'a' was not declared in this scope
   10 |         if (floor(i*0.08)==a && floor(i*0.1)==b){
      |                            ^
a.cc:10:47: error: 'b' was not declared in this scope
   10 |         if (floor(i*0.08)==a && floor(i*0.1)==b){
      |                                               ^
Language: Java

import java.util.Scanner;
/**
 * @author yamato
 *
 */
public class taxincrease {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int A = scanner.nextInt();
		int B = scanner.nextInt();
		int p = Math.max((25*A-1)/2+1,10*B);
		if (p >= 10*B || 2 * p >= 25 * A + 25) {
			System.out.println(-1);
		}else {
			System.out.println(p);
		}
	}
}


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

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

int main() {
  	int A,B;
  	cin >> A,B;
  	int hontai = B * 10 ;
  	if((B - 1) / A < 0.25 || 0.25 > B / (A - 1) {
      	cout << -1 <<endl;
    }else{	for(int i = 0; i < hontai ;	i ++ ) { 
      			if(hontai / 12.5 < A){
    				hontai ++ ;
   				}else{ break; }
    		}
  	cout << hontai << endl;
         }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:52: error: expected ')' before '{' token
    8 |         if((B - 1) / A < 0.25 || 0.25 > B / (A - 1) {
      |           ~                                        ^~
      |                                                    )
a.cc:17:1: error: expected primary-expression before '}' token
   17 | }
      | ^
Language: C++

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

int main() {
  	int A,B;
  	cin >> A,B;
  	int hontai = B * 10 ;
    for(int i = 0; i < hontai ;	i ++ ) { 
      	if(hontai * 0.08 = A){
    		hontai ++ ;
   		 }else{ break; }
    }
  	cout << hontai << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: lvalue required as left operand of assignment
    9 |         if(hontai * 0.08 = A){
      |            ~~~~~~~^~~~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
  itn A, B;
  for (int i = 1; i <= 1100; i++) {
    if (i*8/100==A && i*10/100==B) {
      cout << i << endl;
      return 0;
    }
  }
  cout << -1 << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'itn' was not declared in this scope; did you mean 'int'?
    5 |   itn A, B;
      |   ^~~
      |   int
a.cc:7:18: error: 'A' was not declared in this scope
    7 |     if (i*8/100==A && i*10/100==B) {
      |                  ^
a.cc:7:33: error: 'B' was not declared in this scope
    7 |     if (i*8/100==A && i*10/100==B) {
      |                                 ^
Language: C++

#include<stdio.h>
#include<iostream>
#include<algorithm> 
using namespace std;

int main() {

    int A, B;
    cin >> A >> B;
    int A1, B1, A2, B2;
    
    A1 = A * 12.5 -1;
    A2 = (A+ 1) * 12.5;
    B1 = B * 10;
    B2 = (B + 1) * 10-1;
    printf("%d\n%d\n%d\n%d\n", A1, B1, A2, B2);
    if ((A1 < B2) && (B1 < A2)) {
        printf("%d\n", max((25 * A + 1) / 2, 10 * B));
    }else {
        printf("%d", -1);
    }


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

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

int main(){
	double a,b;cin>>a>>b;
    double a1=a/0.08;
    double a2=(a+1)/0.08;
    double b1=b/0.1;
    double b2=(b+1)/0.1;
    vector <int>vec;
    for(double i=a1;i<a2;i++){
        if(i<b2&&i>=b1){
            if(i==a1&&a1>((double(int)a1)))
            vec.push_back(i+1);
            else vec.push_back(i);
        }
    }
    sort(vec.begin(),vec.end());
    if(vec.empty())cout<<"-1";
    else cout<<vec[0];

}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: expected primary-expression before 'double'
   13 |             if(i==a1&&a1>((double(int)a1)))
      |                            ^~~~~~
a.cc:13:28: error: expected ')' before 'double'
   13 |             if(i==a1&&a1>((double(int)a1)))
      |                           ~^~~~~~
      |                            )
a.cc:14:31: error: expected ')' before ';' token
   14 |             vec.push_back(i+1);
      |                               ^
      |                               )
a.cc:13:26: note: to match this '('
   13 |             if(i==a1&&a1>((double(int)a1)))
      |                          ^
a.cc:14:31: error: expected ')' before ';' token
   14 |             vec.push_back(i+1);
      |                               ^
      |                               )
a.cc:13:15: note: to match this '('
   13 |             if(i==a1&&a1>((double(int)a1)))
      |               ^
Language: C

#include<stdio.h>
int main(void)
{
  double a,b,amin,amax,bmin,bmax,i;
  scanf("%d",&a);
  scanf("%d",&b);
  
  amin=rounddown(a/0.08,0);
  amax=rounddown((a+1)/0.08,0);
  bmin=rounddown(b/0.1,0);
  bmax=rounddown((b+1)/0.1,0);
  
  if(amin<=bmax&&bmin<=amax){
    if(amin<=bmin)
      i=amin;
    else
      i=bmin;
    printf("%d",i);
  }
  
  else 
    printf("-1");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:8: error: implicit declaration of function 'rounddown' [-Wimplicit-function-declaration]
    8 |   amin=rounddown(a/0.08,0);
      |        ^~~~~~~~~
Language: C++

A,B=map(int,input().split())
ans=-1
for i in range(1,10001):
  if int(i*0.08)==A and int(i*0.1)==B:
    ans=i
    break
print(ans)

Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A,B=map(int,input().split())
      | ^
Language: C

#include<stdio.h>
int main(void)
{
  int a,b,amin,amax,bmin,bmax,i;
  scanf("%d",&a);
  scanf("%d",&b);
  
  amin=a/0.08;
  amax=(a+1)/0.08;
  bmin=b/0.1;
  bmax=(b+1)/0.1;
  
  if(amin<=bmax&&bmin<=bmax){
    if(amin<=bmin)
      i=amin;
    else
      i=bmin;
    printf("%d",i);
  else
    printf("-1");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:3: error: expected '}' before 'else'
   19 |   else
      |   ^~~~
Language: C

#include<stdio.h>
int main(void)
{
  int a,b,amin,amax,bmin,bmax,i;
  scanf("%d",&a);
  scanf("%d",&b);
  
  amin=a/0.08;
  amax=(a+1)/0.08;
  bmin=b/0.1;
  bmax=(b+1)/0.1;
  
  if(amin<=bmax&&bmin<=bmax)
    printf("%d",min(amin,bmin));
  else
    printf("-1");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:17: error: implicit declaration of function 'min'; did you mean 'main'? [-Wimplicit-function-declaration]
   14 |     printf("%d",min(amin,bmin));
      |                 ^~~
      |                 main
Language: C++

#include<iostream>
#include <bits/stdc++.h>
#include <string>
#include <algorithm>

using namespace std;
int main()
{
  int a,b ;
  cin >> a >> b ;
  
  int ans=-1;
  for(float i=10.0;i<1010){
    if(int(i*0.08)==a && int(i*0.1)==b){ 
      ans=i;
      break;
    }
  }
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: expected ';' before ')' token
   13 |   for(float i=10.0;i<1010){
      |                          ^
      |                          ;
Language: C++

#include<iostream>
#include <bits/stdc++.h>
#include <string>
#include <algorithm>

using namespace std;
int main()
{
  int a,b ;
  cin >> a >> b ;
  
  int ans=-1
  for(float i=10.0;i<1010){
    if(int(i*0.08)==a && int(i*0.1)==b){ 
      ans=i;
      break;
    }
  }
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: expected ',' or ';' before 'for'
   13 |   for(float i=10.0;i<1010){
      |   ^~~
a.cc:13:20: error: 'i' was not declared in this scope
   13 |   for(float i=10.0;i<1010){
      |                    ^
Language: C++

#include <iostream>
#include <cmath>

void solve() {
  int a, b;
  std::cin >> a >> b;
  for (int i = 13; i <= 1000; ++i)
    if ((int)(i*0.08) == a && (int)(i*0.10) == b)) {
      std::cout << i << std::endl;
      return;
    }
  std::cout << -1 << std::endl;
}

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

Compiler output:
a.cc: In function 'void solve()':
a.cc:8:50: error: expected primary-expression before ')' token
    8 |     if ((int)(i*0.08) == a && (int)(i*0.10) == b)) {
      |                                                  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repe(i, n) for (int i = 0; i <= (int)(n); i++)
#define YES cout<<"YES"<<endl
#define NO cout<<"NO"<<endl
#define Yes cout<<"Yes"<<endl
#define No cout<<"No"<<endl
#define ANS cout << ans << endl
#define all(a) a.begin(),a.end()
#define SORT(a) sort(all(a))
#define REVERSE(a) reverse(all(a))
#define KOZYUN(a) sort(all(a),greater<int>())
#define int ll
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORe(i, m, n) for(int i = m;i <= n;i++)
#define VIin(a) for(int i=0; i<a.size(); i++) cin >> a[i]
#define OUT(a) cout << a << endl
#define IN(a) cin >> a
#define INT(a) int a; cin >> a
typedef vector<int> VI;
typedef vector<VI> VVI;
const int MOD=1e9+7;
const long long INF = 1LL << 60;
/*最大公約数*/int gcd(int x, int y) { return y ? gcd(y,x%y) : x;}
/*最小公倍数*/int lcm(int a, int b) { int g = gcd(a, b); return a / g * b; }
/*素数判定*/int isPrime(int n){if(n<2){return 0;}for(int i=2; i*i<=n; i++){if(n%i==0){return 0;}}return 1;}
/*約数列挙*/vector<int> getDivisor(int n){vector<int> v; for(int i=1; i*i<=n; i++){if(n%i==0){v.push_back(i);if(i!=n/i){v.push_back(n/i);}}}sort(v.begin(),v.end()); return v;}
//----------------------------------------------
signed main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    
    int a,b;
    while(cin >> a >> b){
        int ans = -1;
        FORe(i,1,1000){
            if(floor(0.08 * i) == a and floor(0.1 * i) == b){
                ans = i;
                break;
            }
        }
    }
    ANS;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 | #define ANS cout << ans << endl
      |                     ^~~
a.cc:45:5: note: in expansion of macro 'ANS'
   45 |     ANS;
      |     ^~~
Language: C

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

int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
 
	int a, b;
	cin >> a >> b;
	for(int i=1; i<=1e4; ++i) {
		int a2=i*8/100, b2=i*10/100;
		if(a2==a&&b2==b) {
			cout << i;
			return 0;
		}
	}
	cout << -1;
}



Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++



#include <bits/stdc++.h>
using namespace std;
 
 
int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
 
	int a, b;
	cin >> a >> b;
	for(int i=1; i<=1e4; ++i) {
		int a2=i*8/100, b2=i*10/100;
		if(a2==a&&b2==b) {
			cout << i;
			return 0;
		}
	}
	cout << -1;
}




Code 2：


#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
template<class T>
inline bool chmax(T &a, T b) {
    if(a < b) {
        a = b;
        return true;
    }
    return false;
}
 
template<class T>
inline bool chmin(T &a, T b) {
    if(a > b) {
        a = b;
        return true;
    }
    return false;
}
 
const long double EPS = 1e-10;
const long long INF = 1e18;
const long double PI = acos(-1.0L);
//const ll mod = 1000000007;
 
int main() {
    //cout.precision(10);
    cin.tie(0);
    ios::sync_with_stdio(false);
    int A, B;
    cin >> A >> B;
    for(int i = 0; i <= 1e5; i++) {
        if(i * 8 / 100 != A) continue;
        if(i * 10 / 100 != B) continue;
        cout << i << endl;
        return 0;
    }
    cout << -1 << endl;
    return 0;
}

Compiler output:
a.cc:26:1: error: 'Code' does not name a type
   26 | Code 2：
      | ^~~~
a.cc:57:5: error: redefinition of 'int main()'
   57 | int main() {
      |     ^~~~
a.cc:7:5: note: 'int main()' previously defined here
    7 | int main() {
      |     ^~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
 
 
int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
 
	int a, b;
	cin >> a >> b;
	for(int i=1; i<=8e4; ++i) {
		int a2=i*8/100, b2=i*10/100;
		if(a2==a&&b2==b) {
			cout << i;
			return 0;
		}
	}
	cout << -1;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
 int a,b;
 cin>>a>>b;
  
 for(int i=0;i<10000;++i){
     int za=i*8/100;
     int zb=i*10/100;
     if(a==za&&b==zb){
       cout<<i<<endl; return 0;
       }
   }
  cout<<"-1"<<endl;
  
  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: expected '}' at end of input
   18 |   return 0;
      |            ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String args[]){
  	Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int x = (int)a/0.08;//a=x*0.08
      //消費税がa円である範囲(とりあえずxは範囲内)
    int min = a;
    int max = a;
    int xmin = x;
    int xmax = x;
    int i = 0;
    while(min==a){
      min = (int)xmin*0.08;
      xmin--;
    }
    while(max==a){
      max = (int)xmax*0.08;
      xmax++;
    }
    //xmin<x<xmaxの間の数のうち最小のものが答
   	for(int j = xmin+1; j<xmax; j++){
      if(b==j*0.1){
        System.out.println(j);
        return;
      }
    }
  }
}

Compiler output:
Main.java:7: error: incompatible types: possible lossy conversion from double to int
    int x = (int)a/0.08;//a=x*0.08
                  ^
Main.java:15: error: incompatible types: possible lossy conversion from double to int
      min = (int)xmin*0.08;
                     ^
Main.java:19: error: incompatible types: possible lossy conversion from double to int
      max = (int)xmax*0.08;
                     ^
3 errors
Language: Java

ort java.util.Scanner;
public class Main{
  public static void main(String args[]){
  	Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int x = (int)a/0.08;//a=x*0.08
      //消費税がa円である範囲(とりあえずxは範囲内)
    int min = a;
    int max = a;
    int xmin = x;
    int xmax = x;
    int i = 0;
    while(min==a){
      min = (int)xmin*0.08;
      xmin--;
    }
    while(max==a){
      max = (int)xmax*0.08;
      xmax++;
    }
    //xmin<x<xmaxの間の数のうち最小のものが答
   	for(int j = xmin+1; j<xmax; j++){
      if(b==j*0.1){
        System.out.println(j);
        return;
      }
    }
  }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
ort java.util.Scanner;
^
1 error
Language: Java

ort java.util.Scanner;
public class Main{
  public static void main(String args[]){
  	Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int x = int(a/0.08);//a=x*0.08
      //消費税がa円である範囲(とりあえずxは範囲内)
    int min = a;
    int max = a;
    int xmin = x;
    int xmax = x;
    int i = 0;
    while(min==a){
      min = int(xmin*0.08);
      xmin--;
    }
    while(max==a){
      max = int(xmax*0.08);
      xmax++;
    }
    //xmin<x<xmaxの間の数のうち最小のものが答
   	for(int j = xmin+1; j<xmax; j++){
      if(b==j*0.1){
        System.out.println(j);
        return;
      }
    }
  }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
ort java.util.Scanner;
^
Main.java:7: error: '.class' expected
    int x = int(a/0.08);//a=x*0.08
               ^
Main.java:7: error: not a statement
    int x = int(a/0.08);//a=x*0.08
                 ^
Main.java:7: error: ';' expected
    int x = int(a/0.08);//a=x*0.08
                      ^
Main.java:15: error: '.class' expected
      min = int(xmin*0.08);
               ^
Main.java:15: error: not a statement
      min = int(xmin*0.08);
                    ^
Main.java:15: error: ';' expected
      min = int(xmin*0.08);
                         ^
Main.java:19: error: '.class' expected
      max = int(xmax*0.08);
               ^
Main.java:19: error: not a statement
      max = int(xmax*0.08);
                    ^
Main.java:19: error: ';' expected
      max = int(xmax*0.08);
                         ^
10 errors
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String args[]){
  	Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int x = a/0.08;//a=x*0.08
      //消費税がa円である範囲(とりあえずxは範囲内)
    int min = a;
    int max = a;
    int xmin = x;
    int xmax = x;
    int i = 0;
    while(min==a){
      min = xmin*0.08
      xmin--;
    }
    while(max==a){
      max = xmax*0.08
      xmax++;
    }
    //xmin<x<xmaxの間の数のうち最小のものが答
   	for(int j = xmin+1; j<xmax; j++){
      if(b==j*0.1){
        System.out.println(j);
        return;
    }
  }
}

Compiler output:
Main.java:15: error: ';' expected
      min = xmin*0.08
                     ^
Main.java:19: error: ';' expected
      max = xmax*0.08
                     ^
Main.java:29: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String args[]){
  	Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int x = a/0.08//a=x*0.08
      //消費税がa円である範囲(とりあえずxは範囲内)
    int min = a;
    int max = a;
    int xmin = x;
    int xmax = x;
    int i = 0;
    while(min==a){
      min = xmin*0.08
      xmin--;
    }
    while(max==a){
      max = xmax*0.08
      xmax++;
    }
    //xmin<x<xmaxの間の数のうち最小のものが答
   	for(int j = xmin+1; j<xmax; j++){
      if(b==j*0.1){
        System.out.println(j);
        return;
    }
  }
}


Compiler output:
Main.java:7: error: ';' expected
    int x = a/0.08//a=x*0.08
                  ^
Main.java:15: error: ';' expected
      min = xmin*0.08
                     ^
Main.java:19: error: ';' expected
      max = xmax*0.08
                     ^
Main.java:29: error: reached end of file while parsing
}
 ^
4 errors
Language: C++

#include<bits/stdc++.h>
 
#define REP(i,s,N) for (int i=s;i<(N); ++i)
#define ALL(x) (x).begin(), (x).end()
typedef long long ll;
using namespace std;


ll ans=0;

int main(){
	int A,B;
	cin >> A >> B;
	
	float a = A / 0.08;
	float b = B / 0.10;
	int aa = A / 0.08;
	int bb = B / 0.10;
	
	deque<int> q;
	if((float)(a-aa)==0){
		for(int i=0;i<12;i++){
			q.push_back(aa+i);
		}
	}else{
		for(int i=0;i<11;i++){
			q.push_back(aa+i+1);
		}
	}
	deque<int> q2;
	if((float)(b-bb)==0){
		for(int i=0;i<9;i++){
			q2.push_back(bb+i);
		}
	}else{
		for(int i=0;i<8;i++){
			q2.push_back(bb+i+1);
		}
	}
	if(q.front()<=q2.front() && q2.front <= q.at(q.size()-1)){
		cout << q2.front() << endl;
	}else if(q2.front()<=q.front() && q.front <= q2.at(q2.size()-1)){
		cout << q.front() << endl;
	}else{
		cout << -1 << endl;
	}
	

}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:46: error: invalid operands of types '<unresolved overloaded function type>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to binary 'operator<='
   40 |         if(q.front()<=q2.front() && q2.front <= q.at(q.size()-1)){
      |                                     ~~~~~~~~ ^~ ~~~~~~~~~~~~~~~~
      |                                        |            |
      |                                        |            __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
      |                                        <unresolved overloaded function type>
a.cc:42:51: error: invalid operands of types '<unresolved overloaded function type>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to binary 'operator<='
   42 |         }else if(q2.front()<=q.front() && q.front <= q2.at(q2.size()-1)){
      |                                           ~~~~~~~ ^~ ~~~~~~~~~~~~~~~~~~
      |                                             |             |
      |                                             |             __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
      |                                             <unresolved overloaded function type>
Language: C++

#include<bits/stdc++.h>
 
#define REP(i,s,N) for (int i=s;i<(N); ++i)
#define ALL(x) (x).begin(), (x).end()
typedef long long ll;
using namespace std;


ll ans=0;

int main(){
	int A,B;
	cin >> A >> B;
	
	float a = A / 0.08;
	float b = B / 0.10;
	int aa = A / 0.08;
	int bb = B / 0.10;
	
	deque<int> q;
	if((float)(a-aa)==0){
		for(int i=0;i<12;i++){
			q.push_back(aa+i);
		}
	}else{
		for(int i=0;i<11;i++){
			q.push_back(aa+i+1);
		}
	}
	deque<int> q2;
	if((float)(b-bb)==0){
		for(int i=0;i<9;i++){
			q2.push_back(bb+i);
		}
	}else{
		for(int i=0;i<8;i++){
			q2.push_back(bb+i+1);
		}
	}
	if(q.front()<=q2.front() && q2.front <= q.back()){
		cout << q2.front() << endl;
	}else if(q2.front()<=q.front() && q.front <= q2.back()){
		cout << q.front() << endl;
	}else{
		cout << -1 << endl;
	}
	

}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:46: error: invalid operands of types '<unresolved overloaded function type>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to binary 'operator<='
   40 |         if(q.front()<=q2.front() && q2.front <= q.back()){
      |                                     ~~~~~~~~ ^~ ~~~~~~~~
      |                                        |              |
      |                                        |              __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
      |                                        <unresolved overloaded function type>
a.cc:42:51: error: invalid operands of types '<unresolved overloaded function type>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to binary 'operator<='
   42 |         }else if(q2.front()<=q.front() && q.front <= q2.back()){
      |                                           ~~~~~~~ ^~ ~~~~~~~~~
      |                                             |               |
      |                                             |               __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
      |                                             <unresolved overloaded function type>
Language: C++

#include<bits/stdc++.h>
 
#define REP(i,s,N) for (int i=s;i<(N); ++i)
#define ALL(x) (x).begin(), (x).end()
typedef long long ll;
using namespace std;


ll ans=0;

int main(){
	int A,B;
	cin >> A >> B;
	
	float a = A / 0.08;
	float b = B / 0.10;
	int aa = A / 0.08;
	int bb = B / 0.10;
	
	deque<int> q;
	if((float)(a-aa)==0){
		for(int i=0;i<12;i++){
			q.push(aa+i);
		}
	}else{
		for(int i=0;i<11;i++){
			q.push(aa+i+1);
		}
	}
	deque<int> q2;
	if((float)(b-bb)==0){
		for(int i=0;i<9;i++){
			q2.push(bb+i);
		}
	}else{
		for(int i=0;i<8;i++){
			q2.push(bb+i+1);
		}
	}
	if(q.front()<=q2.front() && q2.front <= q.back()){
		cout << q2.front() << endl;
	}else if(q2.front()<=q.front() && q.front <= q2.back()){
		cout << q.front() << endl;
	}else{
		cout << -1 << endl;
	}
	

}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:27: error: 'class std::deque<int>' has no member named 'push'
   23 |                         q.push(aa+i);
      |                           ^~~~
a.cc:27:27: error: 'class std::deque<int>' has no member named 'push'
   27 |                         q.push(aa+i+1);
      |                           ^~~~
a.cc:33:28: error: 'class std::deque<int>' has no member named 'push'
   33 |                         q2.push(bb+i);
      |                            ^~~~
a.cc:37:28: error: 'class std::deque<int>' has no member named 'push'
   37 |                         q2.push(bb+i+1);
      |                            ^~~~
a.cc:40:46: error: invalid operands of types '<unresolved overloaded function type>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to binary 'operator<='
   40 |         if(q.front()<=q2.front() && q2.front <= q.back()){
      |                                     ~~~~~~~~ ^~ ~~~~~~~~
      |                                        |              |
      |                                        |              __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
      |                                        <unresolved overloaded function type>
a.cc:42:51: error: invalid operands of types '<unresolved overloaded function type>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to binary 'operator<='
   42 |         }else if(q2.front()<=q.front() && q.front <= q2.back()){
      |                                           ~~~~~~~ ^~ ~~~~~~~~~
      |                                             |               |
      |                                             |               __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
      |                                             <unresolved overloaded function type>
Language: C++

#include<bits/stdc++.h>
 
#define REP(i,s,N) for (int i=s;i<(N); ++i)
#define ALL(x) (x).begin(), (x).end()
typedef long long ll;
using namespace std;


ll ans=0;

int main(){
	int A,B;
	cin >> A >> B;
	
	float a = A / 0.08;
	float b = B / 0.10;
	int aa = A / 0.08;
	int bb = B / 0.10;
	
	queue<int> q;
	if((float)(a-aa)==0){
		for(int i=0;i<12;i++){
			q.push(aa+i);
		}
	}else{
		for(int i=0;i<11;i++){
			q.push(aa+i+1);
		}
	}
	queue<int> q2;
	if((float)(b-bb)==0){
		for(int i=0;i<9;i++){
			q2.push(bb+i);
		}
	}else{
		for(int i=0;i<8;i++){
			q2.push(bb+i+1);
		}
	}
	if(q.front()<=q2.front() && q2.front <= q.back()){
		cout << q2.front() << endl;
	}else if(q2.front()<=q.front() && q.front <= q2.back()){
		cout << q.front() << endl;
	}else{
		cout << -1 << endl;
	}
	

}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:46: error: invalid operands of types '<unresolved overloaded function type>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to binary 'operator<='
   40 |         if(q.front()<=q2.front() && q2.front <= q.back()){
      |                                     ~~~~~~~~ ^~ ~~~~~~~~
      |                                        |              |
      |                                        |              __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
      |                                        <unresolved overloaded function type>
a.cc:42:51: error: invalid operands of types '<unresolved overloaded function type>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to binary 'operator<='
   42 |         }else if(q2.front()<=q.front() && q.front <= q2.back()){
      |                                           ~~~~~~~ ^~ ~~~~~~~~~
      |                                             |               |
      |                                             |               __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
      |                                             <unresolved overloaded function type>
Language: C++

#include <iostream>
#include <fstream>
#include <stdio.h>
#include <algorithm>
#include <string>
#include <cmath>
#define REP(i, n) for(int i = 0; i < n; i++)
using namespace std;

int main() { //int argc, const char * argv[]

    cin.tie(0);
    ios::sync_with_stdio(false);

    ll a, b, c, ans, amax, amin, bmax, bmin;
    cin >> a >> b;
    double at, bt, at1, bt1;

    at = a / 0.08;
    at1 = (a+1) / 0.08;
    bt = b / 0.10;
    bt1 = (b+1) / 0.10;

    amin = ceil(at);
    amax = floor(at1);
    bmin = ceil(bt);
    bmax = floor(bt1);
    
    if (bmin <= amin) {
        ans = amin;
    } else {
        ans = bmin;
    }

    if (amax < bmin || bmax < amin) {
        ans = -1;
    }

    cout << ans;
   
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'll' was not declared in this scope
   15 |     ll a, b, c, ans, amax, amin, bmax, bmin;
      |     ^~
a.cc:16:12: error: 'a' was not declared in this scope
   16 |     cin >> a >> b;
      |            ^
a.cc:16:17: error: 'b' was not declared in this scope
   16 |     cin >> a >> b;
      |                 ^
a.cc:24:5: error: 'amin' was not declared in this scope; did you mean 'main'?
   24 |     amin = ceil(at);
      |     ^~~~
      |     main
a.cc:25:5: error: 'amax' was not declared in this scope; did you mean 'fmax'?
   25 |     amax = floor(at1);
      |     ^~~~
      |     fmax
a.cc:26:5: error: 'bmin' was not declared in this scope; did you mean 'fmin'?
   26 |     bmin = ceil(bt);
      |     ^~~~
      |     fmin
a.cc:27:5: error: 'bmax' was not declared in this scope; did you mean 'fmax'?
   27 |     bmax = floor(bt1);
      |     ^~~~
      |     fmax
a.cc:30:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   30 |         ans = amin;
      |         ^~~
      |         abs
a.cc:32:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   32 |         ans = bmin;
      |         ^~~
      |         abs
a.cc:36:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   36 |         ans = -1;
      |         ^~~
      |         abs
a.cc:39:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   39 |     cout << ans;
      |             ^~~
      |             abs
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int
main()
{
    int a,b;
    cin >> a >> b;

    vector<int> v1;
    vector<int> v2;    

    for(int i=1;i<=100;i++){
        v1.push_back(i*0.08);
        v2.push_back(i*0.1);        
    }

    int x = -1;
    for(int i=0;i<100;i++){
        if(v1[i] == 0)
            continue;

        if(v1[i] == a && v2[i] == b){
            x = i+1;
            break;
        }

    }

    cout << x << endl;

    return 0;
}
S

Compiler output:
a.cc:36:1: error: 'S' does not name a type
   36 | S
      | ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
#include <string>
#include <cmath>
using namespace std;

int A, B;

int main()
{
  cin >> A >> B;

  int a = ceil(A/0.08)
  // int a_ = -((-A - 1) / 0.08) - 1;

  int b = ceil(B/0.1)
  // int b_ = -((-B - 1) / 0.1) - 1;

  int lb = max(a, b);
  // int ub = min(a_, b_);

  int A_, B_;
  A_ = lb * 0.08;
  B_ = lb * 0.1;

  if (A_ == A && B_ == B)
  {
    cout << lb << endl;
  }
  else
  {
    cout << -1 << endl;
  }

  // if (lb <= ub)
  // {
  //   cout << lb << endl;
  // }
  // else
  // {
  //   cout << -1 << endl;
  // }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:3: error: expected ',' or ';' before 'int'
   18 |   int b = ceil(B/0.1)
      |   ^~~
a.cc:25:8: error: 'lb' was not declared in this scope
   25 |   A_ = lb * 0.08;
      |        ^~
Language: C++

int main(){
  int a,b;
  cin>>a>>b;
  int c=b*10;
  int d=(b+1)*10;
  int ans=-1;
  for(int i=c;i<d;i++){
    if(i*50==a){
      ans=i;
      break;
    }
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin>>a>>b;
      |   ^~~
a.cc:13:3: error: 'cout' was not declared in this scope
   13 |   cout<<ans<<endl;
      |   ^~~~
a.cc:13:14: error: 'endl' was not declared in this scope
   13 |   cout<<ans<<endl;
      |              ^~~~
Language: C++

A, B = map(int, input().split())

p = max((25*A+1)//2,(20*B+1)//2)
if p * 2 >= min(25*(A+1), 20*(B+1)):
    p = -1

print(p)

Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A, B = map(int, input().split())
      | ^
Language: C++

#include<bits/stdc++.h>
  #define f(i,a,b) for(int i=a;i<b;i++)
  #define ll long long
  #define vll vector<long long>
  #define mll map<ll,ll>
  #define pll pair<long long,long long>
  #define pb(x) push_back(x)
  #define F first
  #define S second
  #define print(v) for(auto it:v)cout<<it<<" "
  #define mod 1000000007   //10^9 +7
  #define sorty(v) sort(v.begin(),v.end())
  #define it(v) v.begin(),v.end()
using namespace std;  

int main() {
  ll A,B,flag=0,x1,x2;
  cin>>A>>B;
  x1=(A*100)/8;
  x2=(B*100)/10;
  if(x1>x2)swap(x1,x2);
  // cout<<x1<<" "<<x2<<endl;
  if(ll(x1*0.08)==A && ll(x1*0.1)==B){
    flag=1;
  }
  else if(ll(x2*0.08)==A && ll(x2*0.1)==B){
    flag=2;
  }
  if(flag==1)cout<<x1<<endl;
  else if(flag==2)cout<<x2;
  else cout<<-1;




	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:14: error: expected primary-expression before 'long'
    3 |   #define ll long long
      |              ^~~~
a.cc:23:6: note: in expansion of macro 'll'
   23 |   if(ll(x1*0.08)==A && ll(x1*0.1)==B){
      |      ^~
a.cc:23:6: error: expected ')' before 'long'
   23 |   if(ll(x1*0.08)==A && ll(x1*0.1)==B){
      |     ~^
      |      )
a.cc:3:14: error: expected primary-expression before 'long'
    3 |   #define ll long long
      |              ^~~~
a.cc:26:11: note: in expansion of macro 'll'
   26 |   else if(ll(x2*0.08)==A && ll(x2*0.1)==B){
      |           ^~
a.cc:26:11: error: expected ')' before 'long'
   26 |   else if(ll(x2*0.08)==A && ll(x2*0.1)==B){
      |          ~^
      |           )
Language: C

#include <stdio.h>

int main(){
  int i,a,b;
  scanf("%d",&a);
  scanf("%d",&b);
  for(i=1;i<1010;i++){
    if((i*25/2==a)&&(i/10=b)) break;
  }
  if(i==1010) i=-1;
  printf("%d",i);
  return(0);
}


Compiler output:
main.c: In function 'main':
main.c:8:26: error: lvalue required as left operand of assignment
    8 |     if((i*25/2==a)&&(i/10=b)) break;
      |                          ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int A, B;
    cin >> A >> B;
    double Amin, Amax, Bmin, Bmax;
    Amin= A/0.08;
    Amax= (A+1)/0.08;
    Bmin= B/0.1;
    Bmax= (B+1)/0.1;

    if(Amin<Bmax){
        for(int i=0; i<Bmax; i++){
            if(i>=Amin){
                cout << i << endl;
                return 0;
            }
        }
    }
    if else(Bmin<Amax){
        for(int i=0; i<Amax; i++){
            if(i>=Bmin){
                cout << i << endl;
                return 0;
            }
        }
    }
    else{
        cout << -1 << endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:8: error: expected '(' before 'else'
   21 |     if else(Bmin<Amax){
      |        ^~~~
      |        (
a.cc:29:5: error: 'else' without a previous 'if'
   29 |     else{
      |     ^~~~