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

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
using P = pair<int, int>; 
using ll = long long;
using M = map<int, int>;

int main()
{
  double a, b;
  cin >> a >> b;
  cout << ((int)(a / 0.08) == (int)(b / 0.1)) ? (int)(a / 0.08) : -1) << endl;


  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:69: error: expected ';' before ')' token
   15 |   cout << ((int)(a / 0.08) == (int)(b / 0.1)) ? (int)(a / 0.08) : -1) << endl;
      |                                                                     ^
      |                                                                     ;
Language: C++

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

int main(){
  int a,b;
  cin>>a>>b;
  for(int i=0;i<1010;++i)
    if(i*1.08==a || i*1.1==b) break;
  cout<<i<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'i' was not declared in this scope
    9 |   cout<<i<<endl;
      |         ^
Language: C++

#include <algorithm>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;

int main() {
 int a,b;
 cin >> a >> b;
 
 int x = 0;
 
 for(int i = 1; i < 1009; i++) {
 if(i * 8/100  == a && i * 10/100 == b) {
  x = i;
  break;
  }
   }
   
   if(x != 0) {
    cout << x;
    }
    else {
     cout << -1;
     }
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:2: error: 'cin' was not declared in this scope
    7 |  cin >> a >> b;
      |  ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <algorithm>
  +++ |+#include <iostream>
    2 | #define rep(i,n) for (int i = 0; i < (n); ++i)
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout << x;
      |     ^~~~
a.cc:19:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:6: error: 'cout' was not declared in this scope
   22 |      cout << -1;
      |      ^~~~
a.cc:22:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B;
  cin>>A>>B;
  for(int X=0;X<B*20;X++){
    if(X*8/100==A && X/10==B){
      cout<<X<<endl;
      break;
    }
  }
  if(X==B*20-1){
    cout<<-1<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: 'X' was not declared in this scope
   13 |   if(X==B*20-1){
      |      ^
Language: C++

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

int main() {
  int,A,B;
  int flg=-1;
  cin>>A>>B;
  for(int i=0;i<1010;i++){
    if(floor(i*0.08)==A && floor(i*0.1)==B){flg=i;break;}
  }
  cout<<flg<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected unqualified-id before ',' token
    7 |   int,A,B;
      |      ^
Language: C++

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

int main() {
  int A,B;
  int flg=-1;
  cin>>A>>B;
  for(int i=0;i<1010;i++){
    if(i*0.08%1==A && i*0.1%1==B){flg=i;break;}
  }
  cout<<flg<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 |     if(i*0.08%1==A && i*0.1%1==B){flg=i;break;}
      |        ~~~~~~^~
      |         |     |
      |         |     int
      |         double
a.cc:11:28: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 |     if(i*0.08%1==A && i*0.1%1==B){flg=i;break;}
      |                       ~~~~~^~
      |                        |    |
      |                        |    int
      |                        double
Language: C++

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

int main() {
  int,A,B;
  int flg=-1;
  cin>>A>>B;
  for(int i=0;i<1010;i++){
    if(i*0.08%1==A && i*0.1%1==B){flg=i;break;}
  }
  cout<<flg<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected unqualified-id before ',' token
    7 |   int,A,B;
      |      ^
a.cc:11:14: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 |     if(i*0.08%1==A && i*0.1%1==B){flg=i;break;}
      |        ~~~~~~^~
      |         |     |
      |         |     int
      |         double
a.cc:11:28: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 |     if(i*0.08%1==A && i*0.1%1==B){flg=i;break;}
      |                       ~~~~~^~
      |                        |    |
      |                        |    int
      |                        double
Language: C++

//CODING ME ACCHHA KARNEKA HAI TERKO TO BAS PRACTICE KARTE REH
#include <bits/stdc++.h>
#define pragma
using namespace std;
#define ll long long
#define ld long double
#define pb push_back
#define pf push_front
#define aisort sort(a,a+n)
#define adsort sort(a,a+n,greater<ll>())
#define PI 2 * acos(0)

typedef pair<ll, ll> pii;
typedef pair<ll, pii> piii;
typedef vector<ll> vi;
typedef vector<string> vs;
typedef vector<pii> vii;
typedef vector<piii> viii;
typedef set<ll> Set;

const ll maxs = 1e5+3;
const ll maxs1 = 1e3+4;
const ll mod = 1e9 + 7;

//MODULO OPEARTIONS
    inline ll add(ll a, ll b) { return (mod + a + b) % mod; }
    inline ll sub(ll a, ll b) { return (a - b + mod) % mod; }
    inline ll mul(ll a, ll b) { return (1ll * a * b) % mod; }

//POWER
    ll fastpow(ll x,ll y)
    {ll res = 1;x = x % mod;while (y > 0){ if (y & 1)res = (res * x) % mod; y = y >> 1 ; x = (x * x) % mod; } return res;}

//MODULAR INVERSE
    ll inv(ll x){ return fastpow(x , mod - 2);}
    
//PRIME
    bool isPrime(ll n) { if (n <= 1)  return false; if (n <= 3)  return true;if (n%2 == 0 || n%3 == 0) return false; for (int i=5; i*i<=n; i=i+6) if (n%i == 0 || n%(i+2) == 0) return false; return true; } 


int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    int A, B;
    cin >> A >> B;
    for(i=1;i<=1000;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:48:9: error: 'i' was not declared in this scope
   48 |     for(i=1;i<=1000;i++)
      |         ^
Language: C++

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

// Loops
#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#define _rrep(i, n) rrepi(i, n, 0)
#define rrepi(i, a, b) for (int i = int(a) - 1; i >= int(b); --i)

#define rep(...) _overload3(__VA_ARGS__, repi, _rep, )(__VA_ARGS__)
#define rrep(...) _overload3(__VA_ARGS__, rrepi, _rrep, )(__VA_ARGS__)
#define each(xi, x) for (auto &&xi : x)
// Note: we can use rep(i,N) or rep(i,from,to)

// typedef
template <class T> using vec = vector<T>;
using ll = long long;
using vi = vec<ll>;
using vvi = vec<vi>;
using vvvi = vec<vvi>;
using pii = pair<ll, ll>;

// Constants

// Shorter repr for frequently used terms
#define pb push_back
#define mp make_pair

// Algorithms
#define all(x) (x).begin(), (x).end()
#define uniq(v) v.erase(unique(all(v)), v.end())
#define perm(c)                                                                \
  sort(all(c));                                                                \
  for (bool c##p = 1; c##p; c##p = next_permutation(all(c)))

template <class T> pair<T, size_t> max(vector<T> &x) {
  auto it = max_element(all(x));
  return mp(*it, it - x.begin());
}
template <class T> pair<T, size_t> min(vector<T> &x) {
  auto it = min_element(all(x));
  return mp(*it, it - x.begin());
}

template <class T> inline bool chmax(T &maxval, const T &newval) {
  if (maxval < newval) {
    maxval = newval;
    return 1;
  }
  return 0;
}
template <class T> inline bool chmin(T &minval, const T &newval) {
  if (minval > newval) {
    minval = newval;
    return 1;
  }
  return 0;
}

// Utilities
// Grid world utilities
int dx[4] = {0, 1, 0, -1};
int dy[4] = {1, 0, -1, 0};
#define inside(H, W, y, x) 0 <= (x) && (x) < (W) && 0 <= (y) && (y) < (H)

// Debug
#ifdef LOCAL
#include "dump.hpp"
#define debug(x) cerr << #x << ": " << x << '\n'
#else
#define dump(...)
#define debug(x)
#endif

// Paste snippets here!!

//

void solve(long long A, long long B) {
  rep(X,1,1300){
    if(108*X/100-X==A && 110X/100-X==B){
      cout << X << endl;
      return;
    }
  }
  cout << -1 << endl;
}

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false); // Magic for faster cin
  cout.precision(12);
  long long A;
  std::cin >> A;
  long long B;
  std::cin >> B;
  solve(A, B);
  return 0;
}


Compiler output:
a.cc: In function 'void solve(long long int, long long int)':
a.cc:82:26: error: unable to find numeric literal operator 'operator""X'
   82 |     if(108*X/100-X==A && 110X/100-X==B){
      |                          ^~~~
Language: C++

/*
 * atcoder/abc089/b.cpp
 */

// C++ 14
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstring> // memset
#include <cassert>
using namespace std;
#define ll long long
#define loop(__x, __start, __end) for(int __x = __start; __x < __end; __x++)
template <class T> ostream & operator << (ostream & out, vector<T> const & v) {
  for (auto &&a: v) out << a << " "; out << endl; return out;
}
template <class T> void dump(T &a) { cout << a << endl; }
void solve();
int main() { solve(); return 0; }

void solve() {
  int a, b; cin >> a >> b;
  int c = ?;
  c * 8 / 100 = a;
  c / 10 = b;
  
  loop(c,1,2000) {
    if (c * 8 / 100 == a and c / 10 == b) {
      cout << c << endl;
      return;
    }
  }
  cout << -1 << endl;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:24:11: error: expected primary-expression before '?' token
   24 |   int c = ?;
      |           ^
a.cc:24:12: error: expected primary-expression before ';' token
   24 |   int c = ?;
      |            ^
a.cc:24:12: error: expected ':' before ';' token
   24 |   int c = ?;
      |            ^
      |            :
a.cc:24:12: error: expected primary-expression before ';' token
a.cc:25:9: error: lvalue required as left operand of assignment
   25 |   c * 8 / 100 = a;
      |   ~~~~~~^~~~~
a.cc:26:5: error: lvalue required as left operand of assignment
   26 |   c / 10 = b;
      |   ~~^~~~
Language: C

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <list>
#include <set>
#include <map>
#include <numeric>
#include <regex>
#include <tuple>
#include <iomanip>
#include <math.h>
using namespace std;

typedef long long ll;
typedef pair<int, int> P;
#define MOD 1000000007 // 10^9 + 7
#define INF 1000000000 // 10^9
#define LLINF 1LL<<60
const double PI = 3.14159265358979323846;

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);

	int a, b; cin >> a >> b;
	bool flag = false;
	for (int i = 1; i <= 1000 && !flag; i++) {
		if ((i * 8) / 100 == a && i / 10 == b) {
			cout << i << endl;
			flag = true;
		}
	}
	if (!flag) cout << -1 << endl;

	return 0;
}

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

##include<bits/stdc++.h>

using namespace std;

int main() { 
	double a,b;
	cin>>a>>b;
	for(double i=1.0;i<=1010.0;i+=1.0){
		if(int (i*0.08)==a&&int (i*0.1)==b){
			cout<<i;
			return 0;
		}
	}
	cout<<"-1";
	return 0;
}

Compiler output:
a.cc:1:1: error: stray '##' in program
    1 | ##include<bits/stdc++.h>
      | ^~
a.cc:1:3: error: 'include' does not name a type
    1 | ##include<bits/stdc++.h>
      |   ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>a>>b;
      |         ^~~
a.cc:10:25: error: 'cout' was not declared in this scope
   10 |                         cout<<i;
      |                         ^~~~
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout<<"-1";
      |         ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int a, b;
	cin >> a;
	cin >> b;
  	int Y_min=(a)/.08;
	int Y_max=(a+1)/.08-1;
	int X_min=b/.1;
	int X_max=(b+1)/.1-1;
 	int answer=0;
  	if(Y_min>X_max || Y_max<Y_min)
    {
      	answer=-1;
    }
  	if(Y_min=<X_min)
    {
      answer=X_min;
    }
    	if(Y_min=>X_min)
    {
      answer=Y_min;
    }
    cout << answer << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: expected primary-expression before '<' token
   18 |         if(Y_min=<X_min)
      |                  ^
a.cc:22:18: error: expected primary-expression before '>' token
   22 |         if(Y_min=>X_min)
      |                  ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0;i<(n);i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;
 
 
int main() {
    int a,b;
    cin >> a >> b;
    bool flaag=false;
    int c;
    rep(i,100){
        if(i*108/100==i*110/100){
            c=i;
            flag=true;
        }
    }
    if(flag) cout << c << endl;
    else cout << -1 << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: 'flag' was not declared in this scope; did you mean 'flaag'?
   16 |             flag=true;
      |             ^~~~
      |             flaag
a.cc:19:8: error: 'flag' was not declared in this scope; did you mean 'flaag'?
   19 |     if(flag) cout << c << endl;
      |        ^~~~
      |        flaag
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0;i<(n);i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;
 
 
int main() {
    int a,b;
    cin >> a >> b;
    bool falg=false;
    int c;
    rep(i,100){
        if(i*108/100==i*110/100){
            c=i;
            flag=true;
        }
    }
    if(flag) cout << c << endl;
    else cout << -1 << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: 'flag' was not declared in this scope; did you mean 'falg'?
   16 |             flag=true;
      |             ^~~~
      |             falg
a.cc:19:8: error: 'flag' was not declared in this scope; did you mean 'falg'?
   19 |     if(flag) cout << c << endl;
      |        ^~~~
      |        falg
Language: C++

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

int main(){
  int i=1;
  int a,b;
  cin>>a>>b;
  while(!(i*8=100*a&&i*10==100*b)){
    i++;
  }
  cout<<i<<endl;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: lvalue required as left operand of assignment
    8 |   while(!(i*8=100*a&&i*10==100*b)){
      |           ~^~
Language: C++

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

int main(){
  long long A,B;
  cin >> A >> B;
  for(long long i=1;i<=1000;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:8:18: error: lvalue required as left operand of assignment
    8 |     if(i*8/100=A && i*10/100=B){
      |                ~~^~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
	int A, B; 
    cin >> A >> B;
    for(int x=1 x<10001; ++x) {
        int a = x * 8 / 100;
        int b = x * 10 / 100;
        if (a == A && b == B) {
            cout << x << endl;
			return 0;
		}
	}
  cout << -1 << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'x'
    6 |     for(int x=1 x<10001; ++x) {
      |                ^~
      |                ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'x'
    6 |     for(int x=1 x<10001; ++x) {
      |                ^~
      |                ;
Language: C++

#include <bits/stdc++.h>

using namespace std;
#define FOR(i,a,b) for(int (i) = (a); (i) < (b); (i)++)
#define rep(i,n) for(int (i)=0; (i)<(n); (i)++)

int main(){
  int a,b;
  cin >> a >> b;
  int x8s, x8e;
  int x10s, x10e;
  x8s = ceil(a * 100 / 8);
  x8e = (a + 1) * 100 / 8;
  x10s = ceil(b * 100 / 10);
  x10e = (b+1) * 100 / 10)
  
  
  // cout << x8s << x8e << x10s << x10e << endl;
  if(x8e > x10s){
    cout << x10s << endl;
  }else
  {
    cout << -1 << endl;
  }
  

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:26: error: expected ';' before ')' token
   15 |   x10e = (b+1) * 100 / 10)
      |                          ^
      |                          ;
a.cc:21:4: error: 'else' without a previous 'if'
   21 |   }else
      |    ^~~~
Language: C++

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

int main() {
    ll n,a,b;float ans=0;
    cin >> a >>b;
    ll a[10000]=-1,b[10000]=-1;
    while(ans<=1010){
        if (ans*0.08==a&&ans*0.1==b){
            cout << ans << endl;
            break;
        }
    }
    if (ans==1010) cout << -1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: conflicting declaration 'll a [10000]'
   12 |     ll a[10000]=-1,b[10000]=-1;
      |        ^
a.cc:10:10: note: previous declaration as 'll a'
   10 |     ll n,a,b;float ans=0;
      |          ^
a.cc:12:20: error: conflicting declaration 'll b [10000]'
   12 |     ll a[10000]=-1,b[10000]=-1;
      |                    ^
a.cc:10:12: note: previous declaration as 'll b'
   10 |     ll n,a,b;float ans=0;
      |            ^
Language: C++

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

int main(){
  int nu=0;
  double a,b;
  cin>>a>>b;
  for(int i=1;i<=10000;i++){
    if(i*0.08=i*0.1){
      nu=i;
      break;
    }
  }
  if(nu==0) cout<<'-1'<<endl;
  else cout<<nu<<endl;
}

Compiler output:
a.cc:14:19: warning: multi-character character constant [-Wmultichar]
   14 |   if(nu==0) cout<<'-1'<<endl;
      |                   ^~~~
a.cc: In function 'int main()':
a.cc:9:9: error: lvalue required as left operand of assignment
    9 |     if(i*0.08=i*0.1){
      |        ~^~~~~
Language: C++

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

int main(){
  int A , B ;
  cin >> A >> B ;
  for(int i=1;i<=1009;i++){
    if(i*8/100==A&&i/10==B){
      cout << i << endl;
      break ;
      return 0 ;
    }
  }
    if(i==1009) cout << -1 << endl;
    
  }
    
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'i' was not declared in this scope
   14 |     if(i==1009) cout << -1 << endl;
      |        ^
Language: C++

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

int main(){
  int A , B ;
  cin >> A >> B ;
  for(int i=1;i<=1009;i++){
    if(i*8/100==A&&i/10==B){
      cout << i << endl;
      break ;
      return 0 ;
    }
    if(i==1009) cout << -1 << endl;
    
  }
    
    
    

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

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

int main()
{
    int a,b;
    cin>>a>>b;
  
    int  A = a/0.08;
    int B = b/0.1;

    if(A*0.1==b)
      cout<<A<<endl;
  
    else if(B*0.08==a)
       cout<<B<<endl;
  
    else
    {
       for(int i=1;i<13;i++)
       {
           int xa = A+i;
           int xb = B+i;
           int k=1000;
           
           if(xa*0.1==b)
           {
               k = min(k,xa);
           }
           if(i<10&&xb*0.08==a)
           {
                k= min(k,xb);
           }
         
       }
    }
       if(k==1000)
         cout<<"-1"<<endl;
       else
         cout<<k<<endl;


  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:11: error: 'k' was not declared in this scope
   37 |        if(k==1000)
      |           ^
Language: C++

#include <iostream>
#include <fstream>
#include <math.h>
#include <string>
#include <iomanip>

using namespace std;

int main(){

  int a, b, ans;
  cin >> a >> b;

  int x, xa_max, xa_min, xb_max, xb_min;
  xa_min = int(a/0.08+0.5); xa_max = int((a+1)/0.08+0.5);
  xb_min = b/0.1; xb_max = (b+1)/0.1;

    cout << xa_min <<" "<<xa_max << " " << endl;
    cout << xb_min <<" "<<xb_max << " " << endl;

  if(xa_min <= xb_min && xb_min <= xa_max) {
    cout << xb_min;
  } else if (xb_min <= xa_min && xa_min <= xb_max){
    cout << xa_min;
  } else {
    cout << -1;
  }


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

import java.util.*;

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

class Solver {

    public void run() {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        for (int i = 1; i <= 10000; i++) {
            if ((i / 10) == B && (i * 8 / 100) == A) {
                System.out.println(i);
                return;
            }
        }

        System.out.println(-1);
        return;
    }

}
oz

Compiler output:
Main.java:28: error: reached end of file while parsing
oz
^
1 error
Language: Java

import java.util.*;

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

class Solver {

    public void run() {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        int C = A * 1000/8 / 10;

        for (int i = 1; i <= 10000; i++) {
            if ((i / 10) == B && C == i) {
                System.out.println(i);
                return;
            }
        }

        System.out.println(-1);
        return;
    }

}
oz

Compiler output:
Main.java:30: error: reached end of file while parsing
oz
^
1 error
Language: C++

#include <iostream>
#include <vector>
#include <functional>
#include <algorithm>
#include <cmath>
#include <string>

using namespace std;

typedef long long ll;

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

    for(int i = 0; i < 1300; i++) {
        if(i * 0.08 == A && i * 0.1 ==B) {
            cout << i << endl;
            return 0
        }
    }
    cout << -1 << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:21: error: expected ';' before '}' token
   19 |             return 0
      |                     ^
      |                     ;
   20 |         }
      |         ~
Language: Java

import java.util.*;
public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int ans = -1;
		int max = 101 * 10;
		for(int i = 1;i < max;i++){
			boolean flg = false;
			if(i * 0.08 = A && i * 0.1 = B){
					flg = true;
					ans = i;
					break;
			}
			if(flg){
				break;
			}
		}
		System.out.println(ans);
	}
}

Compiler output:
Main.java:11: error: unexpected type
			if(i * 0.08 = A && i * 0.1 = B){
			     ^
  required: variable
  found:    value
Main.java:11: error: bad operand types for binary operator '&&'
			if(i * 0.08 = A && i * 0.1 = B){
			                ^
  first type:  int
  second type: double
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int ctoi(const char c) {
    if ('0' <= c && c <= '9') return (c - '0');
    return -1;
}
vector<int> input(int n) {
    vector<int> vec(n);
    for (int i = 0; i < n; i++) {
        cin >> vec.at(i);
    }
    return vec;
}
void output(vector<int> vec) {
    for (int i = 0; i < vec.size(); i++) {
        cout << vec[i] << " ";
    }
    return;
}
vector<vector<int>> input(int n, int m) {
    vector<vector<int>> table(n, vector<int>(m));
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
            cin >> table. at(i).at(j);
        }
    }
    return table;
}
void output(vector<vector<int>> table) {
    for (int i = 0; i < table.size(); i++) {
        for (int j = 0; j < table.at(0).size(); j++) {
            cout << table.at(i).at(j) << " ";
        }
        cout << endl;
    }
}
long long perm(int n, int r) {
    if (n < r) {
        cout << "error" << endl;
        return 0;
    }
    long long perm = 1;
    for (int i = n; i > n - r; i--) {
        perm *= i;
    }
    return perm;
}
long long comb(int n, int r) {
    if (n < r) {
        cout << "error" << endl;
        return 0;
    }
    long long comb = perm(n,r);
    for (int i = r; i > 0; i--) {
        comb /= i;
    }
    return comb;
}
long long homo(int n, int r) {
    return comb(n + r - 1, n - 1);
}
long long fact(int n) {
    long long fact = 1;
    for (int i = n; i > 0; i--) {
        fact *= i;
    }
    return fact;
}
int gcd(int a, int b)
{
    if (a % b == 0)
    {
        return(b);
    }
    else
    {
        return(gcd(b, a % b));
    }
}
int lcm(int a, int b) {
    return a * b / gcd(a, b);
}
int main() {
  int a,b;
  cin >> a >> b;
  for(int i=1;i<=1250;i++){
    if(a==floor(x*0.08)&&b==floor(x*0.1)){
      cout << i << endl;
      return 0;
    }
  }
  cout << -1 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:88:17: error: 'x' was not declared in this scope
   88 |     if(a==floor(x*0.08)&&b==floor(x*0.1)){
      |                 ^
Language: C

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

int main() {
	double l, length, ans;
	cin >> l;

	length = l / 3.0;

	ans = length * length * length;
	
	cout << ans << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
    int A,B,counter=0;
    cin>>A>>B;
   for(int i=1;i<92;i++){
   if( i*108/100==A&&i*110/100==B){
     cout<<i<<endl;
     break;}
   counter++;}
  if(i==91)
  cout<<-1<<endl;}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: 'i' was not declared in this scope
   11 |   if(i==91)
      |      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int A,B;
    cin>>A>>B;
   for(int i=1;i<92;i++){
   if( i*108/100==A&&i*110/100==B){
     cout<<i<<endl;
     break;}}
  if(i==92)
  cout<<-1<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 'i' was not declared in this scope
   10 |   if(i==92)
      |      ^
Language: C++

#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <string>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <stdio.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
int MOD = 1000000007;
signed main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);
	int a,b;
	cin >> a >> b;
	const double tax_8 = 0.08;
	const double tax_10 = 0.10;

	int r_a = 0;
	int r_b = 0;

	double a_1 = a / tax_8;
	if(a%2!=0) r_a = 1;
	double a_2 = (a+1.0) / tax_8;
	double b_1 = b / tax_10;
	double b_2 = (b+1.0) / tax_10;
	//cout << a_1 << "," << a_2 << "," <<  b_1 << "," << b_2 << endl;
	
	if(b_1 <= a_1 && a_1 < b_2) cout << (int)a_1+r << endl;
	else if(a_1 <= b_1 && b_1 < a_2) cout << (int)b_1 << endl;
	else cout << -1 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:54: error: 'r' was not declared in this scope
   34 |         if(b_1 <= a_1 && a_1 < b_2) cout << (int)a_1+r << endl;
      |                                                      ^
Language: C++

#include<bits/stdc++.h>
using namespace std; 
int main() 
{long long a,b,x,y;
 cin>>a>>b;
 long long start=1;
 while(1)
 {x=(start*8)/100,y=(start*10)/100;
  if(x==a && y==b){cout<<start;break}
 else if(x>a || y>b){cout<<-1;break;}
 start++;
 }
 return 0; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:37: error: expected ';' before '}' token
    9 |   if(x==a && y==b){cout<<start;break}
      |                                     ^
      |                                     ;
Language: C++

#include<bits/stdc++.h>
using namespace std; 
int main() 
{long long a,b;
 cin>>a>>b;
 long long start=1;
 while(1)
 {x=(start*8)/100,y=(start*10)/100;
  if(x==a && y==b)cout<<start;
 else if(x>a || y>b){cout<<-1;break;}
 start++;
 }
 return 0; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'x' was not declared in this scope
    8 |  {x=(start*8)/100,y=(start*10)/100;
      |   ^
a.cc:8:19: error: 'y' was not declared in this scope
    8 |  {x=(start*8)/100,y=(start*10)/100;
      |                   ^
Language: C++

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


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

 cout << -1 << endl;
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:36: error: expected ')' before '{' token
    9 |    if((i/10 == b) && ((i*8/100)==a){
      |      ~                             ^
      |                                    )
a.cc:13:2: error: expected primary-expression before '}' token
   13 |  }
      |  ^
Language: C++

#include<iostream>
#include<vector>

using namespace std;

double A, B;
vector<int> v;

int main(){
    cin >> A >> B;
    for(int i=(int) (12.5 * A); i< (int)(12.5*(A+1));i++){
        v.push_back(i);
    }
    for(int j=(int) 10*B; j<(int) (10*(B+1));j++){
        if(find(v.begin(), v.end(),j)!=v.end()){
            cout << j << endl;
            return 0;
        }
    }
    cout << -1 << endl;
    return 0;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
   15 |         if(find(v.begin(), v.end(),j)!=v.end()){
      |            ~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:15:16: note:   '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
   15 |         if(find(v.begin(), v.end(),j)!=v.end()){
      |            ~~~~^~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <set>
#include <vector>
#include <iomanip>
typedef long long int ll;

using namespace std;

int main()
{

    int A, B;


    cin  >>A >> B;


   int A_u = floor((A+1)*1. /0.08);

   int A_d = ceil((A)*1. /0.08);


   int B_u = floor((B+1)*1. /0.1);

   int B_d = ceil((B)*1. /0.1);


    int A_small = A_u + 1;




    int under = max(B_d,A_d);

    int upper = min(B_u,A_u);


    if(A_d <= A_u && B_d <= B_u){

         if(under <=upper){


        cout << under << endl;
    }
    else{

        cout << -1 << endl;
    }

        
    }
    else{


        cout << -1 << endl;
    }

   


    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:14: error: 'floor' was not declared in this scope
   18 |    int A_u = floor((A+1)*1. /0.08);
      |              ^~~~~
a.cc:20:14: error: 'ceil' was not declared in this scope
   20 |    int A_d = ceil((A)*1. /0.08);
      |              ^~~~
Language: C++

#include <iostream>
#include <set>
#include <vector>
#include <iomanip>
typedef long long int ll;

using namespace std;

int main()
{

    int A, B;


    cin A >> B;


    double A_u = (A+1)*1. /1.08;

    double A_d = (A -1)*1. /1.08;


    double B_u = (B+1)*1. /1.1;

    double B_d = (B -1)*1. /1.1;


    int A_small = (int)A_d;

    int A_large = (int)A_u + 1;


    int B_small = (int)B_d;

    int B_large = (int)B_u + 1;
    

    while(A_small*1.08 <A){
        A_small++;

    } 


    while(A_large*1.08 > A){
        A_large++;

    } 


    while(B_small*1.08 <B){
        B_small++;

    } 


    while(B_large*1.08 > B){
        B_large++;

    } 


    int under = max(B_small,A_small);

    int upper = min(B_large,A_large);

    if(under <=upper){


        cout << under << endl;
    }
    else{

        cout << -1 << endl;
    }


    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: expected ';' before 'A'
   15 |     cin A >> B;
      |        ^~
      |        ;
Language: C++

#include <iostream>
#include <string>
using namespace std;
using ll = long long;

#define rep(i,N) for(int i=0;i<(int)N;++i)

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

	int x, y;
	if ((A + 1) % 2 == 0) {
	for (x = ceil(A / 0.08); x < (A + 1) / 0.08; ++x) {
		for (y = B / 0.1; y < (B + 1) / 0.1; ++y) {
			if (x == y) { cout << x << endl; goto pqr; }
		}
	}
	cout << -1 << endl;
pqr:;
	}
	else {
		for (x = ceil(A / 0.08); x <= (A + 1) / 0.08; ++x) {
			for (y = B / 0.1; y < (B + 1) / 0.1; ++y) {
				if (x == y) { cout << x << endl; goto stu; }
			}
		}
		cout << -1 << endl;
	stu:;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: 'ceil' was not declared in this scope
   15 |         for (x = ceil(A / 0.08); x < (A + 1) / 0.08; ++x) {
      |                  ^~~~
a.cc:24:26: error: 'ceil' was not declared in this scope
   24 |                 for (x = ceil(A / 0.08); x <= (A + 1) / 0.08; ++x) {
      |                          ^~~~
Language: C++

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

#define pr pair<int, int>

using namespace std;

const ll mod = 1000000007;
const ll INF = (ll)1000000007 * 1000000007;

define DEBUG

#ifdef DEBUG
#define PRINT(A) std::cout << (#A) << ":" << (A) << std::endl;
#else
#define PRINT(A)
#endif

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

// int a[10010][10010], b[1000];
// int dp[10010][3];

int S[10][1000];


int main() {

    ll A, B; cin >> A >> B;

    rep(i, 100000){
        if(i*108/100 == A+i && i*110/100 == B+i) {
            cout << i << endl;
            return 0;
        }
        PRINT(i*108/100)
        PRINT(i*110/100)
        PRINT(i)
    }
    cout << -1 << endl;
    return 0;
}


Compiler output:
a.cc:13:1: error: 'define' does not name a type
   13 | define DEBUG
      | ^~~~~~
Language: C++





#include<stdio.h>
int main(void) {
  
  int a,b,en,oi=0;
  
  scanf("%d%d",&a,&b); 
  
  for(en=1; en<=1010 || oi=1; en++) {
    if(en*2/25==a) {
      if(en/10==b) oi=1;
    }
  }
  
  if(oi==0) printf("%d",en);
  else      printf("-1");
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: lvalue required as left operand of assignment
   12 |   for(en=1; en<=1010 || oi=1; en++) {
      |             ~~~~~~~~~^~~~~
Language: C++

#include <iostream>
#include <math.h>
#include <algorithm>
#include <string>
#include <string.h>
#include <queue>
#include <vector>
#include <set>
#include <map>
#include <tuple>
#include <stdlib.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
#define PI 3.14159265358979
typedef long long int ll;

const double pi=3.1415;
ll absc(ll a,ll b){return (a-b>0?a-b:b-a);
}
ll mini(ll a,ll b){return (a>b?b:a);}
ll gcd(ll a,ll b){
	if(a<b)swap(a,b);
	return (a%b?gcd(a%b,b):b);
}
int main()
{
   double a,b,c8,c0,d8,d0;
   cin>>a>>b;
   int ans;
   for(int i=1;i<1000000;++i)
   {
   	ans=i;
   	if(double(i)>=a*25/2&&double(i)>=a*10&&double(i)<b*25/2&&double(i)<b*10)
   	{
   		break;
   	}
   	if(i==1000000-1)ans=-1
   }
   cout<<ans;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:37:31: error: expected ';' before '}' token
   37 |         if(i==1000000-1)ans=-1
      |                               ^
      |                               ;
   38 |    }
      |    ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'floor' was not declared in this scope
    7 |         if(a==floor(i*0.08)&&b==floor(i*0.1)) {
      |               ^~~~~
Language: C++

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

int main () {
int A,B,i;
cin >> A >> B;
for (i=1;i<1000;i++) {
if (8*i==100*A&&i==10*B) {
cout << i << endl;
break;
}
}
else {
continue;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:1: error: 'else' without a previous 'if'
   14 | else {
      | ^~~~
a.cc:15:1: error: continue statement not within a loop
   15 | continue;
      | ^~~~~~~~
Language: C++

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

int main () {
int A,B,i;
cin >> A >> B;
for (i=1;i<1000;i++) {
if (8*i==100*A&&i==10*B) {
cout << i << endl;
break;
}
else {
continue;
}
}

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

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



int main()
{
	int A, B, X;

	cin >> A >> B;

	X = 100 * A / 8;
	

	if(floor(X * 0.1) != B ){
		cout << "-1";
	}
	else {
		cout << X;
	}

}



Compiler output:
a.cc: In function 'int main()':
a.cc:19:12: error: 'floor' was not declared in this scope
   19 |         if(floor(X * 0.1) != B ){
      |            ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
    int a,b;
    cin >> a >> b;

    for(int i = 1; i < 101; i++){
        int price = i*1.08;
        int price2 = i*1.1;

        if(a==price && b==price2){
            cout << i << endl;
            return;
        }
    }

    cout << -1 << endl;
    return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |             return;
      |             ^~~~~~
a.cc:19:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   19 |     return;
      |     ^~~~~~
Language: C++

using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const int INF=1001001001;

long long int answ(long long int x){
  if(x==1) return 1;
  if(x>1) return 2*answ(x/2)+1;
}
int main() {
  int a,b;
  cin>>a>>b;
  int ans=1009;
  bool x=false;
  for(int i=10;i<1010;i++){
  if(i*8/100==a&&i*10/100==b){
  if(ans>i){
    ans=i;
    x=true;
  }
  }
  }
  if(x==true) cout<<ans<<endl;
  if(x==false)cout<<"-1"<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'cin' was not declared in this scope
   11 |   cin>>a>>b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:22:15: error: 'cout' was not declared in this scope
   22 |   if(x==true) cout<<ans<<endl;
      |               ^~~~
a.cc:22:15: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:26: error: 'endl' was not declared in this scope
   22 |   if(x==true) cout<<ans<<endl;
      |                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:23:15: error: 'cout' was not declared in this scope
   23 |   if(x==false)cout<<"-1"<<endl;
      |               ^~~~
a.cc:23:15: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:27: error: 'endl' was not declared in this scope
   23 |   if(x==false)cout<<"-1"<<endl;
      |                           ^~~~
a.cc:23:27: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc: In function 'long long int answ(long long int)':
a.cc:8:1: warning: control reaches end of non-void function [-Wreturn-type]
    8 | }
      | ^
Language: C++

#include <stdio.h>
#include <string.h>
#define lop(i, n) for(i=0; i<n; i++)

int main()
{
	float a, b; /* a：８％ ｂ：１０％ */ 
	scanf("%f %f", &a, &b);
	
	for(int i=1; i<1001; i++){
		if(a*1.08==i && b*1.1==i)break;
	}
	
	printf("%f", i);
	
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: 'i' was not declared in this scope
   14 |         printf("%f", i);
      |                      ^
Language: C++

import math
a,b, = map(int,input().split())

for i in range(1,1000):
    price_a = 0.08 * i
    price_b = 0.1  * i

    if math.floor(price_a) == a and math.floor(price_b) == b:
        print(i)
        exit()
print(-1)

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#a-> 8%     b->10%
import math
a,b, = map(int,input().split())

for i in range(1,1000):
    price_a = 0.08 * i
    price_b = 0.1  * i

    if math.floor(price_a) == a and math.floor(price_b) == b:
        print(i)
        exit()
print(-1)

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #a
    1 | #a-> 8%     b->10%
      |  ^
a.cc:2:1: error: 'import' does not name a type
    2 | import math
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)

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

  double x_a, x_b, y_a, y_b;
  x_a = A*100/8.0;
  x_b = B*100/10.0;
  y_a = (A+1)*100/8.0;
  y_b = (B+1)*100/10.0;

  if(y_a<=x_b||y_b<=x_a) cout<<-1;
  else cout<<max(int(x_a), int(x_b) + 1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:40: error: expected ')' before ';' token
   18 |   else cout<<max(int(x_a), int(x_b) + 1;
      |                 ~                      ^
      |                                        )
Language: C++

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

int main(){
	// sengen
	int a,b;
	// nyuryoku
	cin >> a >> b;
	// keisan
	for(int i=1;i<1001;i++){
		int atax = i*8/100
		int btax = i/10;
		if(atax == a && btax == b){
			cout << i;
			break;
		}
		if(i == 1000){
			cout << "-1";
		}
	}
	// syutsuryoku
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected ',' or ';' before 'int'
   13 |                 int btax = i/10;
      |                 ^~~
a.cc:14:33: error: 'btax' was not declared in this scope; did you mean 'atax'?
   14 |                 if(atax == a && btax == b){
      |                                 ^~~~
      |                                 atax
Language: C++

#include <cstdio>
#include <iostream>
#include <algorithm>
#include <vector>
#include <utility>
#include <cstring>
#include <set>
#include <map>
#include <queue>
#include <stack>
#define rep(i, s, g) for (i = s; i < g; i++)
using namespace std;
using ll = long long;

int main(){

    int A,B;
    cin >> A >> B;

    int ans;

    //ans * 0.08 = A;
    //ans * 0.10 = B;

    rep(i,1,1001) {
        if(i*0.08==A){
            if(i*0.1==B){
                ans =i;
                cout << ans << endl;
                return 0;
            }
        }
    } 
    cout << -1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:9: error: 'i' was not declared in this scope
   25 |     rep(i,1,1001) {
      |         ^
a.cc:11:27: note: in definition of macro 'rep'
   11 | #define rep(i, s, g) for (i = s; i < g; i++)
      |                           ^
Language: C++

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

int main()
{
    int a, b;
    cin >> a >> b;
    int ans = -1;
    for(int i = 1; i <= ; i++){
        if(i * 0.08 == a){
            if(i * 0.10 == b);
            ans = i;
            break;
        }
    }

    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: expected primary-expression before ';' token
    9 |     for(int i = 1; i <= ; i++){
      |                         ^
Language: C++

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

int debug=0;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:21:25: error: expected ';' before 'return'
   21 |     cout << -1 << endl;a
      |                         ^
      |                         ;
   22 |     return 0;
      |     ~~~~~~
Language: C++

#pragma region template 2.4
#include <bits/stdc++.h>
using namespace std;
template <typename T>
using pq_asc = priority_queue<T, vector<T>, greater<T>>;
typedef long long ll;
typedef vector<ll> vi;
typedef vector<vi> vvi;
typedef pair<ll, ll> ii;
typedef vector<ii> vii;
typedef vector<string> vs;
#define REP(i, n) for (ll i = 0; i < (n); ++i)
#define REP1(i, n) for (ll i = 1; i <= (n); ++i)
#define FOR(i, a) for (auto &i : a)
#define CH(f, x, y) x = f(x, y)
#define IN(T, x) \
    T x;         \
    cin >> x;
#define AIN(T, a, n) \
    vector<T> a(n);  \
    FOR(i, a)        \
    cin >> i;
#define A2IN(T1, a, T2, b, n) \
    vector<T1> a(n);          \
    vector<T2> b(n);          \
    REP(i, n)                 \
    cin >> a[i] >> b[i];
#define OUT(x) cout << (x) << endl;
#define FOUT(x) cout << fixed << setprecision(15) << (x) << endl;
#define ALL(a) (a).begin(), (a).end()
#define SORT(a) sort(ALL(a))
#define RSORT(a) \
    SORT(a);     \
    reverse(ALL(a))
#define DUMP(x) cout << #x << " = " << (x) << endl;
#define DUMPA(a)          \
    cout << #a << " = {"; \
    JOUT(ALL(a), cout, ", ") << "}" << endl;

template <typename T>
ostream &JOUT(T s, T e, ostream &os = cout, string sep = " ")
{
    if (s != e)
    {
        os << *s;
        ++s;
    }
    while (s != e)
    {
        os << sep << *s;
        ++s;
    }
    return os;
}

ostream &YES(bool cond, string yes = "Yes", string no = "No", ostream &os = cout)
{
    if (cond)
    {
        os << yes << endl;
    }
    else
    {
        os << no << endl;
    }
    return os;
}

template <typename T1, typename T2>
ostream &operator<<(ostream &os, const pair<T1, T2> &p)
{
    os << '(' << p.first << ", " << p.second << ')';
    return os;
}

template <typename T>
ostream &operator<<(ostream &os, const vector<T> &v)
{
    os << '[';
    JOUT(ALL(v), os, ", ") << ']';
    return os;
}

const ll INF = 1e18;
const ll MOD = 1e9 + 7;
#pragma endregion template

int main()
{
    IN(ll, A);
    IN(ll, B);
    REP1(i, 2000)
    {
        if (8 * i / 100 == A and i / 10 == B)
        {
            OUT(i);
            return;
        }
    }
    OUT(-1);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:97:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   97 |             return;
      |             ^~~~~~