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

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

int main(){
  int A, B, i, count = 0;
  cin >> A >> B;
    
  while (i <= 1009){
    
    if (i * 2 / 25 == A && i / 10 == B){
      cout << i << endl;
    }
    else{
       count++;
    }
  
    i++;
  }
  
  if (count == 1009){
    cout << "-1" << endl;
  }
}
    

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

#include<iostream>
using namespace std;

int main(){
    int A, B;
    cin >> A >> B;
    double Amin, 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:9:5: error: 'Amax' was not declared in this scope; did you mean 'Bmax'?
    9 |     Amax= (A+1)/0.08;
      |     ^~~~
      |     Bmax
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{
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
#include<string>
#include<deque>
#include<iostream>
#include<algorithm>
using namespace std;
#define int long long
#define double long double
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())
#define fi first
#define se second
#define pb push_back
#define pp() pop_back()
#define V vector
#define P pair
#define yuko(a) setprecision(a)
#define uni(a) a.erase(unique(a.begin(),a.end()),a.end())
#define Q queue
#define all(a)  (a).begin(),(a).end()
#define elif else if

signed main(){
  string s;
  cin>>s;
  int q;
  cin>>q;
  fo(i,q){
    int c;
    cin>>c;
    if(c==1){
      rev(s);
    }
    else{
      int a;
      cin>>a;
      string b;
      cin>>b;
      if(a==1){
        s=b+s;
      }
      else{
        s.pb(b);
      }
    }
  }
  cout<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:44:14: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char'
   44 |         s.pb(b);
      |              ^
      |              |
      |              std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1572:24: note:   initializing argument 1 of 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::push_back(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
 1572 |       push_back(_CharT __c)
      |                 ~~~~~~~^~~
Language: C

#include<stdio.h>
int main()
{int b=0,r=0,n=0,c=0,i;

     scanf("%d%d",&a,&b);
     c=a/(a/100);
     int d=b/(b/100);
     if(c==d)
        printf("%d\n",c);
     else
        printf("-1\n");


    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:20: error: 'a' undeclared (first use in this function)
    5 |      scanf("%d%d",&a,&b);
      |                    ^
main.c:5:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main(){
  int a,b;
  rep(i,1100) {
    if(a/0.08==b/0.1==i){ cout << i <<endl; return;}
  }
  cout <<-1<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:45: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |     if(a/0.08==b/0.1==i){ cout << i <<endl; return;}
      |                                             ^~~~~~
Language: C++

#include<iostream>

int main(void){
    int A,B;
    std::cin >> A >> B;
    double aL,aR,bL,bR, ans;
    aL = 100.0*A/8.0;
    aR = 100.0*(A+1)/8.0;
    bL = 10*B;
    bR = 10*(B+1);

    if(aL < bL && bL < aR){
        ans = (int)bL;
    }else if(bL < aL && aL < bR){
        ans = (int)aL;
        if(100.0*A/8.0!=0){
            if(bR < aL+1) ans = bR;
            else{

            }            ans += 1;
    }else{
        ans = -1;
    }
    std::cout << ans << std::endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: Java

import java.util.*;
public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int ans = -1;
		double ansA;
		double ansB;
		int A = sc.nextInt();
		int B = sc.nextInt();
		ansB = B * 10.0;
		ansA = A * 12.5;
      	System.out.println(ansAsub);
		if(ansA - ansB > 10.0 || ansA - ansB < -10.0){
			ans = -1;
		}else if(ansA > ansB){
			ans = (int)ansB;
		}else{
			ans = (int)ansA;
		}
		System.out.println(ans);
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
      	System.out.println(ansAsub);
      	                   ^
  symbol:   variable ansAsub
  location: class Main
1 error
Language: C

#include<stdio.h>

int main(void){
  int a,b,ans;
  double max,min;
  scanf("%d %d"&a,&b);
  min=a/0.08;
  max=(b+0.99999)/0.10;
  if(max-min>=0){
    ans=min+0.99999;
  }else{
    ans=-1;
  }

  printf("%d",ans);


  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:16: error: invalid operands to binary & (have 'char *' and 'int')
    6 |   scanf("%d %d"&a,&b);
      |         ~~~~~~~^
      |         |
      |         char *
Language: Java

import java.util.*;
import java.lang.*;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		int A = scan.nextInt();
		int B = scan.nextInt();
		
		int atai = -1;
		int c = 0;
		int d = 0;
		
		c = A/0.08;
		d = B/0.10;
		
		if(c==d){
			atai = c;
		}
	}
}

Compiler output:
Main.java:15: error: incompatible types: possible lossy conversion from double to int
		c = A/0.08;
		     ^
Main.java:16: error: incompatible types: possible lossy conversion from double to int
		d = B/0.10;
		     ^
2 errors
Language: Java

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        int result = -1;
        for(int i = 1; i < 1250; i++) {
            if((int)(i * 0.08) == a && (int)(i * 0.1) == b) {
                result = (int) (b / 0.1);
            }
        }
        System.out.println(result);
    }
}


Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include<iostream>
using namespace std;

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

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:35: error: 'X' was not declared in this scope
   12 |     if(Bmin<=Amin && Amin<Bmax && X!=0){
      |                                   ^
a.cc:20:8: error: expected '(' before 'else'
   20 |     if else(){
      |        ^~~~
      |        (
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;
  
  cin >> A >> B;
  
  if(B=>10 && (10 * B*0.08)==A)
    cout << B*10 << endl;
  else{
    if(A*12.5 * 0.1 == B)
      cout << A * 12.5 << endl;
    else
      cout << -1 << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: expected primary-expression before '>' token
   12 |   if(B=>10 && (10 * B*0.08)==A)
      |        ^
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();

		int hachi = (int) (A / 0.08);

		int ans = 0;
		double s = 0.1;
		while(s == 1.0){
			ans = (int)(hachi * 0.1);
			if (B == ans) {
				System.out.println(hachi);
				break;
			hachi = (int) ((A + s) / 0.08);
			s = s +0.1;
		}
		if (s <= 1) {
			System.out.println(-1);
		} 

	}
}

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

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        int result = -1;
        for(int i = 1; i < ; i++) {
            if((int)(i * 0.08) == a && (int)(i * 0.1) == b) {
                result = (int) (b / 0.1);
            }
        }
        System.out.println(result);
    }
}


Compiler output:
Main.java:10: error: illegal start of expression
        for(int i = 1; i < ; i++) {
                           ^
1 error
Language: C++

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

int main(){
  int a, b; cin >> a >> b;
  if (b > 0 && a > 0) {
  if(b*10 == a*25/2 || b*10+1 == a*25/2 || 
     b*10+2 == a*25/2 ||a*25/2 == b*10+3 || 
     b*10+4 == a*25/2 || b*10+5 == a*25/2 || 
    b*10+6 == a*25/2 || b*10+7 == a*25/2 || 
    b*10+8 == a*25/2 || b*10+9 == a*25/2) cout << a*25/2;
  else cout << -1;
  }
  else if (b = 0){
  if (a = 0) cout << 0;
    else cout << -1;
  }
  else if (a = 0){
  if (b = 1) cout << 10;
    else cout << -1;
}

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

#include<stdio.h>
int main(void){
  int a,b,c;
  int i;
  
  scanf("%d %d",&a,&b);
  
  for(i=0;i<=1001;i++){
    if(int((a*i)*110)==int((b*i)*108)){
      printf("%d",i);
      return 0;
    }
  }
  
  c = -1
  printf("%d",c);
  
  return 1;
}

Compiler output:
main.c: In function 'main':
main.c:9:8: error: expected expression before 'int'
    9 |     if(int((a*i)*110)==int((b*i)*108)){
      |        ^~~
main.c:15:9: error: expected ';' before 'printf'
   15 |   c = -1
      |         ^
      |         ;
   16 |   printf("%d",c);
      |   ~~~~~~
Language: C++

#include<bits/stdc++.h>
 
using namespace std;
 
 
#define mod(cans) cans%10**9+7
#define debug(x) cout << "Debug" << x << "\n"
#define rep(i,n) for(int i=0;i<n;i++)
#define repr(i,n) for(int i=n-1;i>=0;i--)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define cin_pl(n,x) rep(i,n){cin>>x[i];}
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(),(a).rend()
#define prians(Answer) cout<<Answer<<"\n"
#define TF(X) X==1?cout<<"Yes\n":cout<<"No\n"
#define elcon else{continue;}
 
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<string> vs;
typedef vector<vector<int> > matrix;
typedef pair<int,int> pii;
typedef vector<pii> vpi;
typedef greater<int> gi;
typedef vector<unsigned> vu;


ll gcd(ll x, ll y) { return (y == 0) ? x : gcd(y, x % y); }
bool is_prime(const unsigned n){
    switch(n){
        case 0:
        case 1: return false;
        case 2: return true;
    }
 
 
    for(unsigned i=2;i<n;++i){
        if(n%i == 0) return false;
    }
 
    return true;
}

int main()
{
    int a,b;
    cin>>a>>b;
    
    if(b/a>2)int ans=-1;
    else{
    int ans=0;
    while(ans*0.08!=a&&ans*0.1!=b)
    {
        ans++;
        if(ans>=2*max(a*13,a*10)){ans=-1;break;}
    }
    }
    cout<<ans;
    }

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

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

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

  if (100*A.0/8.0%==0&&100*A.0/8.0==10*B.0/1.0) {
    cout << 10*B.0/1.0 << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ')' before numeric constant
    8 |   if (100*A.0/8.0%==0&&100*A.0/8.0==10*B.0/1.0) {
      |      ~     ^~
      |            )
a.cc:9:17: error: expected ';' before numeric constant
    9 |     cout << 10*B.0/1.0 << endl;
      |                 ^~
      |                 ;
Language: C++

/*BY-ADITYA OJHA
  LEARN DSA SINCERELY*/
#include <bits/stdc++.h>
#define ll long long int
#define forin for(int i=0;i<n;i++)
#define forjn for(int j=0;j<n;j++)
#define pb push_back
#define vx vector<ll> x
#define fas1  ios_base::sync_with_stdio(false)
#define fas2   cin.tie(NULL)
using namespace std;


int main()
{
     fas1;
     fas2;
      ll a,b;
      cin>>a>>b;
  ll i=0;
  if(a*100/8>=b*10)
  {
      if(a*100/8<(b+1)*10)
        cout<<a*100/8;
      else
        cout<<-1<<endl;
  }
 else  if(a*100/8<=b*10)
  {
      if((a+1)*100/8>(b)*10)
        cout<<(b)*10;
      else
        cout<<-1<<endl;
        return 0;
  }





 

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

#include <bits/stdc++.h>
#include <vector>
#include <string>
#include <stdlib.h>
#include <algorithm>
#include <functional>
 
using namespace std;
 
int main(void) {
    unsigned long int a = 0, b = 0, x = 0, y = 0, min = 0, max = 0, ans = 0;
    bool flag = false;
    
    cin >> a >> b;
    x = a / 0.08;
    y = b / 0.1;
    if(x < y){
        min = x;
        max = y;
    }else{
        min = y;
        max = x;
    }
    for(int i = min ; i <= max ; i++){
        if(int(i * 0.08) == a && int(i * 0.1) == b){
            ans = i;
            flag = true;
            break;
    }
    if(flag){
        cout << ans << endl;   
    }else{
        cout << -1 << endl;
    }
    return 0;
}

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

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace std;

int main(){
    int a,b;
    cin >> a >> b;
    int a1 = a/0.08;//25
    if(a1%0.08 !=0) a1++;
    int a2 = a/0.07;//28
    if(a2%0.07 !=0) a2++;
    int flag = 0;
    // cout << a1 << b1;
    if(a1<=100){
        for(int i = a1; i<=(a2 < 100 ? a2 :100); i++){
            if(int(i *0.1) == b) {
                cout << i << endl;
                flag = 1;
                break;
            }
        }
    }
    if(flag == 0) cout<< "-1"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: invalid operands of types 'int' and 'double' to binary 'operator%'
   11 |     if(a1%0.08 !=0) a1++;
      |        ~~^~~~~
      |        |  |
      |        |  double
      |        int
a.cc:13:10: error: invalid operands of types 'int' and 'double' to binary 'operator%'
   13 |     if(a2%0.07 !=0) a2++;
      |        ~~^~~~~
      |        |  |
      |        |  double
      |        int
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace std;

int main(){
    int a,b;
    cin >> a >> b;
    int a1 = a/0.08;//25
    if(a%0.08 !=0) a1++;
    int a2 = a/0.07;//28
    if(a%0.07 !=0) a2++;
    int flag = 0;
    // cout << a1 << b1;
    if(a1<=100){
        for(int i = a1; i<=(a2 < 100 ? a2 :100); i++){
            if(int(i *0.1) == b) {
                cout << i << endl;
                flag = 1;
                break;
            }
        }
    }
    if(flag == 0) cout<< "-1"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: invalid operands of types 'int' and 'double' to binary 'operator%'
   11 |     if(a%0.08 !=0) a1++;
      |        ~^~~~~
      |        | |
      |        | double
      |        int
a.cc:13:9: error: invalid operands of types 'int' and 'double' to binary 'operator%'
   13 |     if(a%0.07 !=0) a2++;
      |        ~^~~~~
      |        | |
      |        | double
      |        int
Language: C++

#include <iostream>
using namespace std;
int eghit[2147483647];
int ten[2147483647];
int roundup(int x){
    int y, z;
    y = x % 1;
    z = x - y;
    return z;
}
int main(){
    int as, ab, bs, bb, a, b;
    cin >> a >> b;
    as = roudup(a * 12.5);
    ab = roudup((a+1) * 12.5);
    bs = roundup(b * 12.5);
    bb = roundup((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:
a.cc: In function 'int main()':
a.cc:14:10: error: 'roudup' was not declared in this scope; did you mean 'roundup'?
   14 |     as = roudup(a * 12.5);
      |          ^~~~~~
      |          roundup
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	double a,b;
	cin>>a>>b;
	double mina,maxa,minb,maxb;
	mina=ceil(a/0.08);
	maxa=floor((a+1)/0.08);
	minb=ceil(b/0.1);
	maxb=floor((b+1)/0.1);
	if(maxa<minb||mina>maxb)
	{
		cout<<-1;
		return 0;
	}
	else 
	{
		if(minb<<mina)cout<<mina;
		else cout<<minb;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:24: error: invalid operands of types 'double' and 'double' to binary 'operator<<'
   19 |                 if(minb<<mina)cout<<mina;
      |                    ~~~~^~~~~~
      |                    |     |
      |                    |     double
      |                    double
Language: C++

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

int main(){
  int a,b,v,ans = -1,x;
  bool flag = true;
  cin >> a >> b;
  v = a/0.08;
  x = v;
  while(flag){
    int tmp1,tmp2, y = x*0.1, z = x*0.08;
    tmp1 = y;
    tmp2 = z;
    if(tmp2 != a)
      break;
    if(tmp1 == b)
      ans = x;
    x--;
  }
  
  cout << ans;
  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:23:12: error: expected '}' at end of input
   23 |   return 0;
      |            ^
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;
  bool check = false;
  int start = B * 10, int end = B * 11;
  int ans;
  for(int i = start; i < end; i++)
  {
    if(int(i * 0.08) == A)
    {
      ans = i;
      check = true;
      break;
    }
  }
  if(check)
    cout << ans << endl;
  else
    cout << -1 << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected unqualified-id before 'int'
    9 |   int start = B * 10, int end = B * 11;
      |                       ^~~
a.cc:11:24: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<'
   11 |   for(int i = start; i < end; i++)
      |                      ~~^~~~~
Language: C

#include<stdio.h>
#include<conio.h>
int n,A,B;
float a=0.08,b=1.00;
{ 
  printf("enter the numbers A and B");
  scanf("%d %d",&a &b);
  while(n>0)
  { A=n*a;
    B=n*a;
    printf(" minimum possible no. is %d",n);
    n++;
  }
  getch();
  return 0;
}
    

Compiler output:
main.c:2:9: fatal error: conio.h: No such file or directory
    2 | #include<conio.h>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
 
 int a,b , n = 0 ,k;

    cin >> a >> b;

    for (int i = 0; n <= 1000; n++)
    {
        if((int)n*0.08 == a && (int) n*0.1 == b)
            k = n;
            break;
        else{
            k = -1;
        }
    }
    cout<< k<< "\n";

    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'else' without a previous 'if'
   16 |         else{
      |         ^~~~
Language: C++

#include <algorithm>
#include <iomanip>
#include <ctime>
#include <iostream>
#include <cstdlib>
#define sbc __builtin_popcount
#define pb push_back
#define em emplace
#define emb emplace_back
int mod = 1e9+7;
using namespace std;
// template<typename T>
	// T pwm(T a,T b)
    // {
        // T p=1,one=1;
        // while(b)
        // {
            // if(b&one) p=p*a%mod;
            // a=a*a%mod;
            // b >>=1;
        // }
        // return p;
    // }

    void solve() {
		int a,b;
		float w,x,y,z;
		cin>>a>>b;
		w=a/12.5;
		x=(a+1)/12.5;
		y=b/10;
		z=(b+1)/10;
		w=min(W,x);
		x=min(y,z);
		if(((int)w%10)*10==w) {a=w;}
		else a=w+1;
		b=x+1;
		if(a<=b){
			cout<<(a+b)/2;
		}
		else {
			cout<<-1;
		}
		
    }

int main()
{
	
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
	
	
	
   // int t;
   // cin>>t;
   // while(t--)
	  solve();
  
	
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:33:23: error: 'W' was not declared in this scope
   33 |                 w=min(W,x);
      |                       ^
Language: C

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

int main(){
  int x, y, ans = -1;
  double a, b, x, y;
  
  scanf("%lf %lf", &a, &b);
  x = floor(a / 0.08);
  y = floor(b / 0.1);
  
  //printf("%f %f\n", x, y);
  //printf("%d %d\n", (int)(x * 0.08) , (int)(x * 0.1));
  if(x == y){
    ans = x;
  }
  else if(x > y){
    if((int)(y * 0.08) == (int)(y * 0.1)){
      ans = y;
    }
    else{
      while((int)(y * 0.1) == (int)((y + 1) * 0.1)){
        y++;
        if((int)(y * 0.08) == (int)(y * 0.1)){
      	  ans = y;
          break;
    	}
      }
    }
  }
  
  printf("%d\n", ans);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:16: error: conflicting types for 'x'; have 'double'
    6 |   double a, b, x, y;
      |                ^
main.c:5:7: note: previous declaration of 'x' with type 'int'
    5 |   int x, y, ans = -1;
      |       ^
main.c:6:19: error: conflicting types for 'y'; have 'double'
    6 |   double a, b, x, y;
      |                   ^
main.c:5:10: note: previous declaration of 'y' with type 'int'
    5 |   int x, y, ans = -1;
      |          ^
Language: C++

include <iostream>
using namespace std;
int main(void){
    int A,B;
    cin>>A>>B;
    float ans[5];
    ans[0]=0;
    ans[1]=A*100/8;
    ans[2]=(A+1)*100/8;//ans1~ans2
    ans[3]=B*10;
    ans[4]=(B+1)*10;//ans3~ans4
    if(ans[1]<ans[3]&&ans[2]<=ans[3]){
        cout<<-1<<endl;
    }
    else if(ans[1]<ans[3]&&ans[2]>ans[3]){
        cout<<ans[3]<<endl;
    }
    else if(ans[4]>ans[1]&&ans[1]>=ans[3]){
        cout<<ans[1]<<endl;
    }
    else if(ans[4]<=ans[1]){
        cout<<-1<<endl;
    }
    else if(ans[1]<=ans[3]&&ans[4]<=ans[2]){
        cout<<ans[3]<<endl;
    }
    else if(ans[3]<ans[1]&&ans[2]<ans[4]){
        cout<<ans[1]<<endl;
    }
    return 0;
    
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin>>A>>B;
      |     ^~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout<<-1<<endl;
      |         ^~~~
a.cc:13:19: error: 'endl' was not declared in this scope
   13 |         cout<<-1<<endl;
      |                   ^~~~
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout<<ans[3]<<endl;
      |         ^~~~
a.cc:16:23: error: 'endl' was not declared in this scope
   16 |         cout<<ans[3]<<endl;
      |                       ^~~~
a.cc:19:9: error: 'cout' was not declared in this scope
   19 |         cout<<ans[1]<<endl;
      |         ^~~~
a.cc:19:23: error: 'endl' was not declared in this scope
   19 |         cout<<ans[1]<<endl;
      |                       ^~~~
a.cc:22:9: error: 'cout' was not declared in this scope
   22 |         cout<<-1<<endl;
      |         ^~~~
a.cc:22:19: error: 'endl' was not declared in this scope
   22 |         cout<<-1<<endl;
      |                   ^~~~
a.cc:25:9: error: 'cout' was not declared in this scope
   25 |         cout<<ans[3]<<endl;
      |         ^~~~
a.cc:25:23: error: 'endl' was not declared in this scope
   25 |         cout<<ans[3]<<endl;
      |                       ^~~~
a.cc:28:9: error: 'cout' was not declared in this scope
   28 |         cout<<ans[1]<<endl;
      |         ^~~~
a.cc:28:23: error: 'endl' was not declared in this scope
   28 |         cout<<ans[1]<<endl;
      |                       ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A, B;
  int x, y, xx, yy;
  cin >> A >> B;
  x = int(A / 0.08);
  y = int(B / 0.1);
  xx = int((A+1) / 0.08) - 1;
  yy = int((B+1) / 0.1) - 1;
  if ((x < y && xx < y) || (x > y && x > yy)) {
  	cout << "-1" << endl;
  }
  else if (x < y && xx > y) {
  	cout << y << endl;
  }
  else if (x > y %% x < yy) {
  	cout << x << endl;
  }
  else if (x < y && xx > yy) {
  	cout << y << endl;
  }
  else if (x > y && xx < yy) {
  	cout << x << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: expected primary-expression before '%' token
   18 |   else if (x > y %% x < yy) {
      |                   ^
Language: C

#include <stdio.h>


int main(void){
    double a, b;
    scanf("%lf &lf", &a, &b);
    if((a + 1.0) / 1.08 < b / 1.10 \\ a / 1.08 > (b + 1) / 1.10){
        printf("-1\n");
        return 0;
    }
    double ansa, ansb;
    ansa = a / 1.08;
    ansb = b / 1.10;
    if(ansa < ansb){
        printf("%.0lf\n", ansb);
    }
    else{
        printf("%.0lf\n", ansa);
    }


    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:36: error: stray '\' in program
    7 |     if((a + 1.0) / 1.08 < b / 1.10 \\ a / 1.08 > (b + 1) / 1.10){
      |                                    ^
main.c:7:37: error: stray '\' in program
    7 |     if((a + 1.0) / 1.08 < b / 1.10 \\ a / 1.08 > (b + 1) / 1.10){
      |                                     ^
main.c:7:35: error: expected ')' before 'a'
    7 |     if((a + 1.0) / 1.08 < b / 1.10 \\ a / 1.08 > (b + 1) / 1.10){
      |       ~                           ^   ~
      |                                   )
Language: C++

 
int main() {
	int a,b;
  cin >> a >> b;
  int answer = -1;
  
	int x,y;
  for(int i = 1; i <= 1000; i++){
    x = i*0.08;
    y = i*0.1;
    if((x == a) && (y == b))
      answer = i;
  }
  
  
  cout << answer << endl;
  
}

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

#include <iostream>
using namespace std;

int main() {
 int A, B;
  bool P;
  P = false;
  cin >> A >> B;
  for(int i = 0; i > 10000; i++){
    int x, y;
    x = floor(i * 0.08);
    y = floor(i * 0.10);
    if(x == A && y == B){
     cout << i << endl;
      P = true;
      break;
    }
  }
  if(P == false){
    cout << -1 << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'floor' was not declared in this scope
   11 |     x = floor(i * 0.08);
      |         ^~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
	int a, b;
	cin >> a;
	cin >> b;

	int x = -1;
	for(int i = 1; i <= 100; i++) {
		double y = (i * 0.08);
		double z = (i* 0.10);
		if (a == (int)floor(y) && b == (int)floor(z)) {
			x = i;
			break;
		}
	}
	//int x = 100 * a / 108;
	//int y = 100 * b / 110;

	cout << x << endl;
}

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

#include <iostream>
using namespace std;

int main() {
 int A, B;
  bool P;
  P = false;
  cin >> A >> B;
  for(int i = 0; i > 10000; i++){
    if(floor(i * 0.08) == A && floor(i * 0.10) == B){
     cout << i << endl;
      P = true;
      break;
    }
  }
  if(P == false){
    cout << -1 << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'floor' was not declared in this scope
   10 |     if(floor(i * 0.08) == A && floor(i * 0.10) == B){
      |        ^~~~~
Language: C++

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

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

int C,D;
C = floor(c*0.08);
D = floor(c*0.1);
E = floor((c+1)*0.08);
F = floor((c+1)*0.1);



if(C==A&&D==B){
	cout << c << endl;
}
else if(E==A&&F==B){
	cout << c+1 << endl;
}
else{
	cout << -1 << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:1: error: 'E' was not declared in this scope
   15 | E = floor((c+1)*0.08);
      | ^
a.cc:16:1: error: 'F' was not declared in this scope
   16 | F = floor((c+1)*0.1);
      | ^
Language: C

#include<iostream>

using namespace std;

int main()
{
    int a,b,d;
    cin>>a>>b;
    float c=a/.08;
    d=c*.1;
    if(b==d)
        cout<<c;
    else
        cout<<"-1";
    return 0;
}



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

#include<stdio.h>
#include<conio.h>
int n,A,B;
float a=0.08,b=1.00
{ 
  printf("enter the numbers A and B");
  scanf("%d %d",&a &b);
  while(n>0)
  { A=n*a;
    B=n*a;
    printf(" minimum possible no. is %d",n);
    n++;
  }
  getch();
  return 0;
}
    

Compiler output:
main.c:2:9: fatal error: conio.h: No such file or directory
    2 | #include<conio.h>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<vector>
#include<stdio.h>
#include<algorithm>
using namespace std;
int main(){
vector<string> s;
double n=1,a,b,c,ans,d,e,left,right,count;
string s1,s2,s3;
cin >>a>>b;
left=b*10;
count=left;
right=left+10;
for(double i=left;i<right;i++){
if(i/12.5>=a&&i/12.5<a+1){
cout<<i<<endl;
  break;
}
  if(i==right-1)cout<<"-1"<<endl;
}
return 0;
} } 

Compiler output:
a.cc:22:3: error: expected declaration before '}' token
   22 | } }
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> l_l;
typedef pair<int , int> i_i;
typedef vector<ll> vl;
typedef vector<int> vi;
typedef vector<char> vec;
typedef vector<bool> veb;
typedef vector<string> ves;
typedef vector<vector<ll>> vvl;
typedef vector<vector<int>> vvi;
typedef vector<vector<char>> vvec;
typedef vector<vector<bool>> vveb;
typedef vector<vector<string>> vves;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define rep2(i,n) for(int i=2;i<(int)(n);i++)
#define repk(i,k,n) for(int i=k;i<(int)(n);i++)
#define fs first
#define sc second
#define pb push_back
#define pp pop_back
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define maxel(a) *max_element(all(a))
#define minel(a) *min_element(all(a))
#define acc accumulate
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define mod (1000000007)
typedef long long int64;
//const int64 INF = 1LL << 58;
#define dame { puts("-1"); return 0;}
#define YES { cout << "YES" << endl; return 0; }
#define NO { cout << "NO" << endl; return 0; }
#define Yes { cout << "Yes" << endl; return 0; }
#define No { cout << "No" << endl; return 0; }
template<class T> bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T> bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; }
int dx[] = {0, 0, -1, 1};
int dy[] = {1, -1, 0, 0};

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

	int a,b;
	int n =1000;
	cin >> a;
	cin >> b;
	if(a>b){dame}
	rep0(i,n){

	if(int{i*0.08} == a && int{i*0.1} == b){cout << i << endl;return 0;}
	
	}
	dame
	return 0;
	

}

Compiler output:
a.cc: In function 'int main()':
a.cc:55:14: error: 'i' was not declared in this scope
   55 |         rep0(i,n){
      |              ^
a.cc:55:9: error: 'rep0' was not declared in this scope; did you mean 'rep'?
   55 |         rep0(i,n){
      |         ^~~~
      |         rep
Language: C

#include<stdio.h>
int main(){
int A,B,Eight,Ten,C=0;
  while(B!=1){
    i++;
  Eight=i*0.08;
  Ten=i*0.1;
    if(Eight==Ten) C=1;
  }
  printf("%d"Eight);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: 'i' undeclared (first use in this function)
    5 |     i++;
      |     ^
main.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:14: error: expected ')' before 'Eight'
   10 |   printf("%d"Eight);
      |         ~    ^~~~~
      |              )
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
// a,b,cの最大値、最小値をそれぞれminimumの参照先、maximumの参照先に代入する

int main() {
    int64_t n8,n10;
    cin >> n8 >> n10;
    int tax8 =n8 / 0.08;
    int tax10 =n10 / 0.1;
    if(tax8==tax10){
        cout << tax8<<endl;
    }
    if(tax8>tax10){
        // cout << tax8 << floor( tax8 * 0.1)<<endl;
        int test10 = floor(tax8*0.1);
        if(test10==n10)
        {cout << tax8<<endl;
        return 0;}
    }
    else if(tax10>tax8){
        // cout << tax8 << floor( tax8 * 0.1)<<endl;
        int test8 = floor(tax10*0.08);
        if(test8==n8)
        {cout << tax10<<endl;
            return  0;
        }
    
    cout << -1<< endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:2: error: expected '}' at end of input
   31 | }
      |  ^
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 a,b,c,d;
a = A/0.08;
b = B/0.1;
c = max(a,b);
d = min(a,b);
int C,D;
C = floor(c*0.08);
D = floor(c*0.1);
E = floor(d*0.08);
F = floor(d*0.1);

if(E==A&&F==B){
	cout << d << endl;
}
else if(C==A&&D==B){
	cout << c << endl;
}
else{
	cout << -1 << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:1: error: 'E' was not declared in this scope
   15 | E = floor(d*0.08);
      | ^
a.cc:16:1: error: 'F' was not declared in this scope
   16 | F = floor(d*0.1);
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
 int A, B;
  bool P;
  P = false
  cin >> A >> B;
  for(int i = 0; i > 10000; i++){
    if(i * 0.08 == A && i * 0.10 == B){
     cout << i << endl;
      P = true;
      break;
    }
  }
  if(P == false){
    cout << -1 << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before 'cin'
    7 |   P = false
      |            ^
      |            ;
    8 |   cin >> A >> B;
      |   ~~~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

/**
 * for (int i = 0; i < N; i++) {}
 * System.out.println();
 * HashMap<Integer, Integer> hm = new HashMap<>();
 * int[] s = new int[M];
 * ArrayDeque<Integer> deq = new ArrayDeque<>();
 * @author mj
 *
 */
public class Main implements Runnable { //クラス名はMain3

	public static void main(String[] args) {
		Thread.setDefaultUncaughtExceptionHandler((t, e) -> System.exit(1));
		new Thread(null, new Main3(), "", 16 * 1024 * 1024).start(); //16MBスタックを確保して実行
	}

	public void run() {
		FastScannerMain sc = new FastScannerMain3(System.in);

		try {
			int A = sc.nextInt();
			int B = sc.nextInt();

			double itemA1 = 0;
			double itemB1 = 0;
			double itemA2 = 0;
			double itemB2 = 0;

			double taxA = 0.08;
			double taxB = 0.1;

			itemA1 = A / taxA;
			itemB1 = B / taxB;
			itemA2 = (A + 1) / taxA;
			itemB2 = (B + 1) / taxB;

			/*
			System.out.println(itemA1);
			System.out.println(itemA2);
			
			System.out.println(itemB1);
			System.out.println(itemB2);
			*/

			boolean ans = false;
			for (int i = (int) itemA1; i <= (int) itemA2; i++) {
				for (int j = (int) itemB1; j <= (int) itemB2; j++) {
					if (i == j) {
						System.out.println(i);
						ans = true;
						break;
					}
				}
				if (ans) {
					break;
				}
			}
			if (!ans) {
				System.out.println(-1);
			}

			System.out.println();
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
}

//高速なScanner
class FastScannerMain3 {
	private BufferedReader reader = null;
	private StringTokenizer tokenizer = null;

	public FastScannerMain3(InputStream in) {
		reader = new BufferedReader(new InputStreamReader(in));
		tokenizer = null;
	}

	public String next() {
		if (tokenizer == null || !tokenizer.hasMoreTokens()) {
			try {
				tokenizer = new StringTokenizer(reader.readLine());
			} catch (IOException e) {
				throw new RuntimeException(e);
			}
		}
		return tokenizer.nextToken();
	}

	public String nextLine() {
		if (tokenizer == null || !tokenizer.hasMoreTokens()) {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new RuntimeException(e);
			}
		}
		return tokenizer.nextToken("\n");
	}

	public long nextLong() {
		return Long.parseLong(next());
	}

	public int nextInt() {
		return Integer.parseInt(next());
	}

	public double nextDouble() {
		return Double.parseDouble(next());
	}

	public int[] nextIntArray(int n) {
		int[] a = new int[n];
		for (int i = 0; i < n; i++)
			a[i] = nextInt();
		return a;
	}

	public long[] nextLongArray(int n) {
		long[] a = new long[n];
		for (int i = 0; i < n; i++)
			a[i] = nextLong();
		return a;
	}
}


Compiler output:
Main.java:20: error: cannot find symbol
		new Thread(null, new Main3(), "", 16 * 1024 * 1024).start(); //16MB???????????
		                     ^
  symbol:   class Main3
  location: class Main
Main.java:24: error: cannot find symbol
		FastScannerMain sc = new FastScannerMain3(System.in);
		^
  symbol:   class FastScannerMain
  location: class Main
2 errors
Language: C++

#include <iostream>
using namespace std;
int eghit[2147483647];
int ten[2147483647];
int main(){
    int as, ab, bs, bb, a, b;
    cin >> a >> b;
    as = (int)a * 12.5;
    ab = (int)(a+1) * 12.5;
    bs = (int)b * 12.5;
    bb = (int)(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/ccF1Liwo.o: in function `main':
a.cc:(.text+0x11d): relocation truncated to fit: R_X86_64_PC32 against symbol `ten' defined in .bss section in /tmp/ccF1Liwo.o
a.cc:(.text+0x167): relocation truncated to fit: R_X86_64_PC32 against symbol `ten' defined in .bss section in /tmp/ccF1Liwo.o
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected primary-expression before '>>' token
    6 |   cin >> A, >> B;
      |             ^~
Language: C++

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


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

#include <iostream>
using namespace std;
int eghit[2147483647];
int ten[2147483647];
int main(){
    int as, ab, bs, bb, a, b;
    cin >> a >> b;
    as = (int)a * 12.5;
    ab = (int)(a+1) * 12.5;
    bs = (int)b * 12.5;
    bb = (int)(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/ccgJE5LS.o: in function `main':
a.cc:(.text+0x11d): relocation truncated to fit: R_X86_64_PC32 against symbol `ten' defined in .bss section in /tmp/ccgJE5LS.o
a.cc:(.text+0x167): relocation truncated to fit: R_X86_64_PC32 against symbol `ten' defined in .bss section in /tmp/ccgJE5LS.o
collect2: error: ld returned 1 exit status
Language: C++

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

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

#include <iomanip>
#include <sstream>
#include <algorithm>
#include <string>
#include <tuple>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <iterator>
#include <random>
#include <cmath>
#include <functional>


using namespace std;
using lint = long long int;


lint solve(lint a, lint b) {
	auto x_min = ceil(a / 0.08);
	auto y_min = ceil(b / 0.1);
	auto x_max = (a + 1) / 0.08 - 0.0000001;
	auto y_max = (b + 1) / 0.1 - 0.0000001;
	if (x_max < y_min || y_max < x_min) {
		return -1;

	}
	return max((lint)x_min, (lint)y_min);
}

int main() {
	lint a, b;
	cin >> a >> b;
	cout << solve(a, b);

	//lint pre_solution = 0;
	//for (int a = 1; a <= 100; a++) {
	//	for (int b = 1; b <= 100; b++) {
	//		lint solution = solve(a, b);
	//		if (solution >= 0) {
	//			int a_sol = int(solution * 0.08);
	//			int b_sol = int(solution * 0.1);
	//			if (a_sol != a || b_sol != b) {
	//				cout << a_sol << " " << b_sol << " " << a << " " << b << endl;
	//				lint solution = solve(a, b);
	//			}
	//		}
	//	}
	//}

	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:34:9: error: 'cin' was not declared in this scope
   34 |         cin >> a >> b;
      |         ^~~
a.cc:14:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
   13 | #include <functional>
  +++ |+#include <iostream>
   14 | 
a.cc:35:9: error: 'cout' was not declared in this scope
   35 |         cout << solve(a, b);
      |         ^~~~
a.cc:35:9: 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;
using ll = long long;

int main() {

  int a, b;
  cin >> a >> b;
  
  vector<double> tmp(2);
  for(int i = 1; i < 100000; i++) {
    tmp.at(0) = i * 0.08;
    tmp.at(1) = i * 0.1;
    if(tmp.at(0) >= a && tmp.at(0) = a+1) {
      if(tmp.at(1) >= b && tmp.at(1) = b+1) {
        cout << i << endl;
        return 0;
      }
    }
  }
  cout << "-1" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: lvalue required as left operand of assignment
   14 |     if(tmp.at(0) >= a && tmp.at(0) = a+1) {
      |        ~~~~~~~~~~~~~~~^~~~~~~~~~~~
a.cc:15:25: error: lvalue required as left operand of assignment
   15 |       if(tmp.at(1) >= b && tmp.at(1) = b+1) {
      |          ~~~~~~~~~~~~~~~^~~~~~~~~~~~
Language: C++

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

int main(){
  int a, b;
  cin >> a >> b;
  
  if(a*12.5>=b*10){    
    if(b*10<=a*12.5 && a*12.5<(b+1)*10) dunk(ceil(a*12.5));
    else dunk(-1);
  }
  else{
    if(b*10>=a*12.5 && (a+1)*12.5>b*10) dunk(b*10);
    else dunk(-1);
  }

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

#include <iostream>
using namespace std;
int main(){
    int a=0,b=0;
    cin>>a>>b;
    int upperl=min(int((a+1)*12.5),(b+1)*10);
    int lowerl=max(int(a*12.5),b*10);
    int p=lower,flag=0;
    while(p<upperl){
        if(int(p*0.08)==a && int(p*0.1)==b){
            flag=1;
            break;
        }
        p++;
    }
    if(flag==1)
        cout << p;
    else
        cout << "-1";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'lower' was not declared in this scope; did you mean 'lowerl'?
    8 |     int p=lower,flag=0;
      |           ^~~~~
      |           lowerl
a.cc:11:13: error: 'flag' was not declared in this scope
   11 |             flag=1;
      |             ^~~~
a.cc:16:8: error: 'flag' was not declared in this scope
   16 |     if(flag==1)
      |        ^~~~
Language: C

#include<stdio.h>
int main(){
  int a, b, i=0, j=0;
  
  scanf("%d %d",&a,&b);
  
  while(1){
    i++;
    if(i*8/100==a){
      break ;
    }
  }
  
    while(1){
    j++;
    if(j*10/100==b){
      break ;
    }
  }
  
  while(1){
    if(i==j){
      printf("%d\n", i);
      return 0;
    }
    if(i>j){
      j++;
      if(j*10/100!=b){
        printf("-1\n");
        return 0;
      }
      if(i<j){
        i++;
      if(i*8/100!=a){
        printf("-1\n");
        return 0;
      }
      }
    }
  
}

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

using ll = long long;
const ll INF = 1e16;
const ll mod = 1000000007;

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
template<class T> inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template<class T> inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
int ctoi(char c) {
  if (c >= '0' && c <= '9') {
    return c - '0';
  }
  return 0;
}
ll factorial(ll n) {
  if (n == 1) {
    return 1;
  }
  ll ans = factorial(n-1);
  return ans*n;
}
ll gcd(ll a, ll b) {
  if (b == 0) return a;
  return gcd(b, a%b);
}
ll lcm(ll a, ll b) {
  return (a/gcd(a, b))*b;
}
bool prime(ll n) {
  if (n == 1) {
    return false;
  } else {
    for (ll i = 2; i <= (ll)pow(n, 0.5); i++) {
      if (n%i == 0) return false;
    }
  }
  return true;
}
ll RepeatSquaring(ll n, ll p, ll m) {
  if (p == 0) return 1;
  if (p%2 == 0) {
    ll t = RepeatSquaring(n, p/2, m);
    return (t*t)%m;
  }
  return (n*RepeatSquaring(n, p-1, m))%m;
}

int main() {
  ll n, m;
  cin >> n >> m;
  ll tmp = 0;
  for (ll i = m*10; i < m*10+10; i++) {
    if ((i*8)/100 == n) {
      cout << i << endl;
      tmp++;
      break;
    }
  }
  if (!tmp) cout << -1 << endl;
}

Compiler output:
a.cc: In function 'bool prime(ll)':
a.cc:44:29: error: 'pow' was not declared in this scope
   44 |     for (ll i = 2; i <= (ll)pow(n, 0.5); i++) {
      |                             ^~~
a.cc: In function 'int main()':
a.cc:61:3: error: 'cin' was not declared in this scope
   61 |   cin >> n >> m;
      |   ^~~
a.cc:65:7: error: 'cout' was not declared in this scope
   65 |       cout << i << endl;
      |       ^~~~
a.cc:65:20: error: 'endl' was not declared in this scope
   65 |       cout << i << endl;
      |                    ^~~~
a.cc:70:13: error: 'cout' was not declared in this scope
   70 |   if (!tmp) cout << -1 << endl;
      |             ^~~~
a.cc:70:27: error: 'endl' was not declared in this scope
   70 |   if (!tmp) cout << -1 << endl;
      |                           ^~~~