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

//#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<assert.h>
#include<cstring>
#include<cstdio>
#include<vector>
#include<queue>
#include<stack>
using namespace std;
#define de_x(x) cout<< #x <<"->debug_val: "<<x<<endl;
#define de_ve(x) for(auto it: x) cout<<it<<" ";
#define rep(i,a,n) for (int i=a;i<n;i++)
#define _rep(i,a,n) for (int i=a;i<=n;i++)
#define per(i,a,n) for (int i=n-1;i>=a;i--)
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define SZ(x) ((int)(x).size())
#define all(x) (x).begin(),(x).end()
typedef long long ll;
typedef vector<int> VI;
typedef pair<int,int> PII;
typedef double db;
//std::mt19937 mrand(random_device{}());
//int rnd(int x) { return mrand() % x ; }
const ll mod=1e7;
ll ksm(ll a,ll b) {ll res=1;a%=mod; assert(b>=0); for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}
ll gcd(ll a,ll b) { return b?gcd(b,a%b):a;}
int _,n,m;
/***********************/
void run(){
}
int main(){
//    for(scanf("%d",&_);_;_--) run();
    cin>>n>>m;
    double ans =0;
    _rep(i,1,1255){
        int x =floor(i*0.08), y =floor(i*0.1);
        if(x == n && y== m)
        {    
            cout<<i<<endl;
            return 0;
        }
    }
    cout<<-1<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:16: error: 'floor' was not declared in this scope
   40 |         int x =floor(i*0.08), y =floor(i*0.1);
      |                ^~~~~
a.cc:41:22: error: 'y' was not declared in this scope
   41 |         if(x == n && y== m)
      |                      ^
Language: C++

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

int main(){
    int A, B, ans;
    bool C = false;
    cin >> A >> B;
    for(int i = 0; i < 1001; i++){
        if(i * 0.08 == A && i * 0.1 == B){
            ans = i;
            C = true;
            goto ABC;
        }

    ABC:
    if(C == true){
        cout << ans << endl;
    }
    else{
        cout << -1 << endl;
    }
    return 0;
}

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

#include<stdio.h>
#include<math.h>
int main()
{
  int a,b,c,d,x=-1;
  float x,y;
  scanf("%d %d",&a,&b);
  x=(a*100)/8;
  y=(b*100)/10;
  c=round(x);
  d=round(y);
  if(c==d)
    printf("%d",&c);
  else
    printf("%d",x);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:9: error: conflicting types for 'x'; have 'float'
    6 |   float x,y;
      |         ^
main.c:5:15: note: previous definition of 'x' with type 'int'
    5 |   int a,b,c,d,x=-1;
      |               ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:46: error: expected ';' before '}' token
    9 |     if(8*i/100==a && i/10==b){cout << i;break}
      |                                              ^
      |                                              ;
Language: C++

//#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<assert.h>
#include<cstring>
#include<cstdio>
#include<vector>
#include<queue>
#include<stack>
using namespace std;
#define de_x(x) cout<< #x <<"->debug_val: "<<x<<endl;
#define de_ve(x) for(auto it: x) cout<<it<<" ";
#define rep(i,a,n) for (int i=a;i<n;i++)
#define _rep(i,a,n) for (int i=a;i<=n;i++)
#define per(i,a,n) for (int i=n-1;i>=a;i--)
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define SZ(x) ((int)(x).size())
#define all(x) (x).begin(),(x).end()
typedef long long ll;
typedef vector<int> VI;
typedef pair<int,int> PII;
typedef double db;
//std::mt19937 mrand(random_device{}());
//int rnd(int x) { return mrand() % x ; }
const ll mod=1e7;
ll ksm(ll a,ll b) {ll res=1;a%=mod; assert(b>=0); for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}
ll gcd(ll a,ll b) { return b?gcd(b,a%b):a;}
int _,n,m;
/***********************/
void run(){
}
int main(){
//    for(scanf("%d",&_);_;_--) run();
    cin>>n>>m;
    double ans =0;
    _rep(i,1,1255){
        if(floor(i *0.08)== n && floor(i*0.1) == m)
        {    
            cout<<i<<endl;
            return 0;
        }
    }
    cout<<-1<<endl;
}

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

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

int main(){
    int A, B, ans;
    bool C = false;
    cin >> A >> B;
    for(int i = 0; i < 1000; i++){
        if(A*100 / 108 == B*100 / 110){
            ans = i;
            C = true;
            goto ABC;
        }
    }
    ABC:
    if(C == true){
        cout << ans << endl;
    }
    else(){
        cout << -1 << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:10: error: expected primary-expression before ')' token
   19 |     else(){
      |          ^
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
  int a,b,x=-1;
  float c,d;
  scanf("%d %d",&a,&b);
  c=round((a*100)/8);
  d=round((b*100)/10);
  if(c==d)
    printf("%d",c);
  else
    print("%d",x);
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:13:5: error: implicit declaration of function 'print'; did you mean 'lrint'? [-Wimplicit-function-declaration]
   13 |     print("%d",x);
      |     ^~~~~
      |     lrint
Language: C++

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

int main() {
  double a,b;
  cin >> a >> b;
  int ans=-1;
  int aa=0, bb=0;
  for(int n=1;n<10001;n++){
    aa=(int)(n*0.08);
    bb=(int)(n*0.1);
    if(a==aa&&b==bb){
      ans=aa;
      break;
    }
  }
  cout << ans << endl;
  return 0;


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

using namespace std;

int main(){
    int A, B; cin >> A >> B;
    bool cannot = true;
    for(int i=B*10; i<B*10+9; i++){
        if(i*0.08 == A){
            cout << i << endl;
            cannot = false;
            break;
        }
    }
    if(cannot) cout << -1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:15: error: 'cin' was not declared in this scope
    4 |     int A, B; 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:8:13: error: 'cout' was not declared in this scope
    8 |             cout << i << endl;
      |             ^~~~
a.cc:8:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:26: error: 'endl' was not declared in this scope
    8 |             cout << i << 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:13:16: error: 'cout' was not declared in this scope
   13 |     if(cannot) cout << -1 << endl;
      |                ^~~~
a.cc:13:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:30: error: 'endl' was not declared in this scope
   13 |     if(cannot) cout << -1 << endl;
      |                              ^~~~
a.cc:13:30: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<bits/stdc++.h>
#define INF 1073741824
#define ll long long
#define PI (2*acos(0.0))
#define Hare printf("here\n")
#define fastIO ios_base::sync_with_stdio(false); cin.tie(NULL);
#define mp make_pair
#define pb push_back
#define pii pair<int,int>
#define x first
#define y second
#define on(val,pos) val|(1<<pos)
#define off(val,pos) val&(~(1<<pos))
#define check(val,pos) (val&(1<<pos))

//first four adjacent,second four corner
//int row[8]={0,-1,0,1,1,-1,-1,1};
//int col[8]={-1,0,1,0,-1,-1,1,1};
using namespace std;

int main(){
    int i,j,k,n,m,val,t=0,cnt,test;
    //freopen("000input.txt","r",stdin);
	cin>>k>>m;
  
  cnt=0;
  ans=0;
  while(p!=q and cnt<100000){
  	ans++;
    p=ans*0.08;
    q=ans*0.1;
    cnt++;
  }
  if(cnt<100000)cout<<ans<<endl;
  else cout<<-1<<endl;
    //free();   //if pointer array
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   27 |   ans=0;
      |   ^~~
      |   abs
a.cc:28:9: error: 'p' was not declared in this scope
   28 |   while(p!=q and cnt<100000){
      |         ^
a.cc:28:12: error: 'q' was not declared in this scope
   28 |   while(p!=q and cnt<100000){
      |            ^
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;
  int c=-1
  rep(i,1000) {
    if (i*2/25==a && i/10==b) {
      c=i;
    }
  }
  cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:18: error: expected ',' or ';' before 'for'
    2 | #define rep(i,n) for (int i = 0; i < (n); ++i)
      |                  ^~~
a.cc:11:3: note: in expansion of macro 'rep'
   11 |   rep(i,1000) {
      |   ^~~
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   rep(i,1000) {
      |       ^
a.cc:2:34: note: in definition of macro 'rep'
    2 | #define rep(i,n) for (int i = 0; i < (n); ++i)
      |                                  ^
Language: C++

#include<iostream>
using namespace std;
 
int main(){
  int a, b;
  cin >> a >> b;
  int x = (a*100)/8;
  int t = (x*10)/100;
  t = round(t);
  bool f1 = false;
  if(t == b ){
  	f1 = true;
  }
  
  int x2 = (b*100)/10;
  int t2 = (x2*8)/100;
  t2 = round(t2);
  bool f2 = false;
  if(t2 == a ){
  	f2 = true;
  }
  
  if(f1 == true && f2 == true)
    cout << min(x, x2) <<endl;
  else
    cout << "-1" <<endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'round' was not declared in this scope
    9 |   t = round(t);
      |       ^~~~~
Language: C++

#include <iostream>
#include<algorithm>
using namespace std;
typedef long long int ll;
int main(void) {
	int a, b;
	cin >> a >> b;
	for (int i = 1;i <= 510000;i++) {
		if (floor(i * 2 / 25) == a && floor(i * 1 / 10) == b) {
			cout << i << endl;
			break;
		}
		if (i == 510000)
			cout << -1 << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'floor' was not declared in this scope
    9 |                 if (floor(i * 2 / 25) == a && floor(i * 1 / 10) == b) {
      |                     ^~~~~
Language: Java

import java.util.*;

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

            double per8 = Integer.valueOf(sc.next());
            double per10 = Integer.valueOf(sc.next());

            double ans1 = Math.floor(per8/0.08);
            double ans2 = Math.floor(per10/0.1);

            if(ans1 == ans2){
                System.out.println(ans1);
            }else if(ans1 + 1 == ans2){
                System.out.println(ans2);
            }else if(ans1 == ans2 + 1){
                System.out.println(ans1);
            }else
                System.out.println(-1);
            }

        }catch(Exception e){
            e.printStackTrace();
        }        
    }
}

Compiler output:
Main.java:24: error: illegal start of type
        }catch(Exception e){
         ^
Main.java:24: error: ';' expected
        }catch(Exception e){
                          ^
Main.java:28: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

#include <iostream>
#include<algorithm>
using namespace std;
int main(void) {
	int a, b;
	cin >> a >> b;
	for (int i = 1;i <= 114514i++) {
		if (floor(i * 2 / 25) == a && floor(i * 1 / 10) == b) {
			cout << i << endl;
			break;
		}
		if (i == 114514)
			cout << -1 << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:36: error: lvalue required as increment operand
    7 |         for (int i = 1;i <= 114514i++) {
      |                                    ^~
a.cc:7:38: error: expected ';' before ')' token
    7 |         for (int i = 1;i <= 114514i++) {
      |                                      ^
      |                                      ;
a.cc:8:21: error: 'floor' was not declared in this scope
    8 |                 if (floor(i * 2 / 25) == a && floor(i * 1 / 10) == b) {
      |                     ^~~~~
Language: C++

#include <iostream>
#include <vector>
#include <queue>
#include <set>
#include <cmath>
#include <stack>
#include <string>
#include <deque>
#include <map>
#include <algorithm>

using namespace std;

//--------------------
int gcd(int a, int b) {
    return b == 0 ? a : gcd(b, a % b);
}

void func() {
    int A, B;s
    cin >> A >> B;
    if(A > B) {
        cout << -1 << endl;
    }
    int targetA = int(double(A) / 0.08);
    int targetB = B  * 10;
    for (int i = min(targetA,targetB); i <= max(targetA,targetB); ++i) {
        
        int a = int(double(i) * 0.08);
        int b = int(double(i) * 0.1);
        if(a == A && b == B) {
            cout << i << endl;
            return;
        }
    }
    cout << -1 << endl;
}

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

Compiler output:
a.cc: In function 'void func()':
a.cc:20:14: error: 's' was not declared in this scope
   20 |     int A, B;s
      |              ^
Language: C++


#include <bits/stdc++.h>
#include <bits/extc++.h>
using namespace std;
#define _rep(n, a, b) for (ll n = (a); n <= (b); ++n)
#define _rev(n, a, b) for (ll n = (a); n >= (b); --n)
#define _for(n, a, b) for (ll n = (a); n < (b); ++n)
#define _rof(n, a, b) for (ll n = (a); n > (b); --n)
#define oo 0x3f3f3f3f3f3fll
#define ll long long
#define db double
#define eps 1e-8
#define bin(x) cout << bitset<10>(x) << endl;
#define what_is(x) cerr << #x << " is " << x << endl
#define met(a, b) memset(a, b, sizeof(a))
#define all(x) x.begin(), x.end()
#define pii pair<ll, ll>
#define pdd pair<db, db>
#define pi acos(-1.0)
#define lowbit(x) x &(-x)
const ll maxn = 1e5 + 10;
const ll mod = 1e9;

signed main()
{
	int a, b;
	cin >> a >> b;
	int l = max((int)ceil(a*12.5), b*10);
	int r = min(floor((a+1)*12.5), (b+1)*10);
	if(l >= r)cout << -1 << endl;
	else {
		cout << (int)ceil(l) << endl;
	}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:20: error: no matching function for call to 'min(double, int)'
   29 |         int r = min(floor((a+1)*12.5), (b+1)*10);
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:29:20: note:   deduced conflicting types for parameter 'const _Tp' ('double' and 'int')
   29 |         int r = min(floor((a+1)*12.5), (b+1)*10);
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:29:20: note:   mismatched types 'std::initializer_list<_Tp>' and 'double'
   29 |         int r = min(floor((a+1)*12.5), (b+1)*10);
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
int  a, b;
cin >> a >> b;
for (int i = 1; i <= 100000; i++)
{
If (i  * 0.08 == a && i * 0.1 == b)
{
cout << i;
return 0;
}
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: 'If' was not declared in this scope
   11 | If (i  * 0.08 == a && i * 0.1 == b)
      | ^~
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 << floor( tax8 * 0.1)<<endl;
        int test10 = floor(tax8*0.1);
        if(test10==n10)
        {cout << tax8<<endl;
        return 0;}
      	else{
          cout << -1<< endl;
        }
    }
    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;
        }
      	else {
          cout << -1<< endl;
    }
  	

}


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

#include <bits/stdc++.h>
//登録しよう！→ https://www.youtube.com/channel/UCRXsI3FL_kvaVL9zoolBfbQ
using namespace std;
using ll = long long;
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}//a,bの最大公約数(gcd)を求める
ll lcm(ll a,ll b){return abs(a*b)/gcd(a,b);}//a,bの最小公倍数(lcm)を求める
vector<ll> enum_div(ll n){vector<ll> ret;for(int i=1 ; i*i<=n ; i++){if(n%i == 0){ret.push_back(i);if(i!=1 && i*i!=n)ret.push_back(n/i);}}ret.push_back(n);return ret;}
//↑nの約数を求める
vector<bool> IsPrime; void sieve(size_t max){if(max+1 > IsPrime.size())IsPrime.resize(max+1,true);IsPrime[0] = false;IsPrime[1] = false;for(size_t i=2; i*i<=max; ++i)if(IsPrime[i])for(size_t j=2; i*j<=max; ++j)IsPrime[i*j] = false;}
//↑エラトステネスの篩で素数を求める
#define roundup(divisor,dividend) (divisor + (dividend - 1)) / dividend //切り上げ割り算
#define all(x) (x).begin(),(x).end() //xの初めから終わりまでのポインタ
#define size_t ll //size_tは自動でllに変換される
#define pb(x) push_back(x)
#define gre greater //sortを降順にする
#define pri_queue priority_queue //優先度付きキュー
#define syo(x) fixed << setprecision(x) //iostreamで小数をx桁表示

void solve(long long A, long long B){
  int ans=0;
  for (size_t i = 0; i < 1000000; i++) {
    if(floor(i*0.08) == A && floor(i*0.1) == B){
      ans = i;
      break;
    }
  }
  if(A == 0 && B == 0){
    cout << 0 << endl;
    return 0;
  }
  cout << (ans == 0 ? -1 : ans) << endl;
}

// Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
int main(){
    long long A;
    scanf("%lld",&A);
    long long B;
    scanf("%lld",&B);a
    solve(A, B);
}


Compiler output:
a.cc: In function 'void solve(long long int, long long int)':
a.cc:29:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
   29 |     return 0;
      |            ^
a.cc: In function 'int main()':
a.cc:39:22: error: 'a' was not declared in this scope
   39 |     scanf("%lld",&B);a
      |                      ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
    int a,b;
    cin >> a >>b;
    long long int k = (int)a/0.08;
    long long int l = (int)b/0.1;
    for(long long int i=min(k,l);i<=max(k,l);i++){
        if(long long int(i*0.08)==a&&long long int(i*0.1)==b){cout<<i;return 0;}
    
    }

    cout << -1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected primary-expression before 'long'
   11 |         if(long long int(i*0.08)==a&&long long int(i*0.1)==b){cout<<i;return 0;}
      |            ^~~~
a.cc:11:12: error: expected ')' before 'long'
   11 |         if(long long int(i*0.08)==a&&long long int(i*0.1)==b){cout<<i;return 0;}
      |           ~^~~~
      |            )
Language: Java

import java.util.*;

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

            double per8 = Integer.valueOf(sc.next());
            double per10 = Integer.valueOf(sc.next());

            int ans1 = Math.floor(per8/0.08);
            int ans2 = Math.floor(per10/0.1);

            if(ans1 == ans2){
                System.out.println(ans1);
            }else{
                System.out.println(-1);
            }
            
        }catch(Exception e){
            e.printStackTrace();
        }        
    }
}

Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from double to int
            int ans1 = Math.floor(per8/0.08);
                                 ^
Main.java:12: error: incompatible types: possible lossy conversion from double to int
            int ans2 = Math.floor(per10/0.1);
                                 ^
2 errors
Language: C++

#define _CRT_SECURE_NO_WARNINGS
/*                   وتزودوا فإن خير الزاد التقوى                    */
/*       وما تدري نفس ماذا تکسب غدا وما تدري نفس باي ارض تموت      */
#include <bits/stdc++.h>
#include<unordered_map>
#include<iomanip>
#include<fstream>
using namespace std;
#include<iostream>
#define endl '\n'
#define ll long long
#define ull unsigned long long
#define dll double
#define PI acos(-1)
#define watch(x) cout<<#x<<" = { "<<x<<" }\n"
#define sz(n) n.size()
#define M_Sayed fast() 
#define all(v) v.begin(),v.end()
#define allr(v) v.rbegin(),v.rend()
#define RT(v) return cout<<v,0
int dx[] = { 0, 1, 0, -1, 1, 1, -1, -1 };
int dy[] = { 1, 0, -1, 0, 1, -1, 1, -1 };
const double EPS = (1e-7);
ll Ceil(ll x, ll y) { return (x + y - 1) / y; }
void run() {
ll gcd(ll a, ll b) { return !b ? abs(a) : gcd(b, a % b); }
ll lcm(ll a, ll b) { return abs(a / gcd(a, b)) * b; }
ll power(ll x, ll y, ll mod) {
	if (y == 0) return 1;
	if (y == 1) return x % mod;
	ll r = power(x, y >> 1, mod);
	return (((r * r) % mod) * power(x, y & 1, mod)) % mod;
}
void fast() { ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); }
ll n, m, t;
int main()
{
	M_Sayed;
	ll n, a, b;
	cin >> a >> b;
	for (ll i = 1 ;; i++) {
		if (i * .08 > a) {
			RT(-1);
		}
		ll k = (i * 8)/100;
		ll c= (i )/10;
		if (c ==b&&k==a)RT(i);
	}
	
	
}

Compiler output:
a.cc: In function 'void run()':
a.cc:26:20: error: a function-definition is not allowed here before '{' token
   26 | ll gcd(ll a, ll b) { return !b ? abs(a) : gcd(b, a % b); }
      |                    ^
a.cc:27:20: error: a function-definition is not allowed here before '{' token
   27 | ll lcm(ll a, ll b) { return abs(a / gcd(a, b)) * b; }
      |                    ^
a.cc:28:30: error: a function-definition is not allowed here before '{' token
   28 | ll power(ll x, ll y, ll mod) {
      |                              ^
a.cc:34:13: error: a function-definition is not allowed here before '{' token
   34 | void fast() { ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); }
      |             ^
a.cc:36:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   36 | int main()
      |         ^~
a.cc:36:9: note: remove parentheses to default-initialize a variable
   36 | int main()
      |         ^~
      |         --
a.cc:36:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:37:1: error: a function-definition is not allowed here before '{' token
   37 | {
      | ^
a.cc:51:2: error: expected '}' at end of input
   51 | }
      |  ^
a.cc:25:12: note: to match this '{'
   25 | void run() {
      |            ^
Language: C

#include <stdio.h>

int main(void)
{
    int a, b, A, B;
    float aa, bb;

    scanf("%d", &a);
    scanf("%d", &b);
    aa = a / 0.08;
    bb = b / 0.1;

    if (aa == bb)
    {
        printf("%lf", aa);
    }
    else if (aa != bb)
    {
        if (aa - bb < 1)
        {
            printf("%lf", aa)
        }
    }
    else
    {
        printf("-1");
    }

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:21:30: error: expected ';' before '}' token
   21 |             printf("%lf", aa)
      |                              ^
      |                              ;
   22 |         }
      |         ~
Language: C

#include <stdio.h>

int main(void)
{
    int a, b, A, B;
    float aa, bb;

    scanf("%d", &a);
    scanf("%d", &b);
    aa = a / 0.08;
    bb = b / 0.1;

    if (aa == bb)
    {
        printf("%d", aa);
    }
    else if (aa != bb)
    {
        if (aa - bb < 1)
        {
            printf("%d", aa)
        }
    }
    else
    {
        printf("-1");
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:29: error: expected ';' before '}' token
   21 |             printf("%d", aa)
      |                             ^
      |                             ;
   22 |         }
      |         ~
Language: C++

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

}

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

#include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <vector>
using namespace std;

int main() {
    long long A, B;
    cin >> A >> B;
    long long X_A = (int)((double)A / 0.08);
    long long X_B = (int)((double)B / 0.1);
    int ans;
    if (X_A > X_B)
        ans = X_A;
    else
        ans = X_B;
    if (100 * X_B - 100 * X_A > 2 * X)
        ans = -1;
    cout << ans << "\n";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:37: error: 'X' was not declared in this scope
   18 |     if (100 * X_B - 100 * X_A > 2 * X)
      |                                     ^
Language: C++

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

minA = A / 0.08
maxA = (A+1) / 0.08
minB = B / 0.1
maxB = (B+1) / 0.1

if minB <= minA and minA < maxB: print(int(minA))
elif minA <= minB and minB < maxA: print(int(minB))
else: print("-1")

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

vector<ll>g[200020];
int a[44444],b[44444];
vector<ll>v1,v2;
int main(){
    ll n,i,j,k,x,y,z,t,m;
    cin>>n>>m;
    double mi1=n/0.08,ma1=(n+1)/0.08,mi2=m/0.1,ma2=(m+1)/0.1;
    for(i=0;i<10000;i++){
        if(i>=mi1&&i<=ma1+9&&i>=mi2&&i<=ma2+9){cout<<i;return 0;}
    }
    cout<<-1;

}


Compiler output:
a.cc:1:1: error: 'vector' does not name a type
    1 | vector<ll>g[200020];
      | ^~~~~~
a.cc:3:1: error: 'vector' does not name a type
    3 | vector<ll>v1,v2;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'll' was not declared in this scope
    5 |     ll n,i,j,k,x,y,z,t,m;
      |     ^~
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>>n>>m;
      |     ^~~
a.cc:6:10: error: 'n' was not declared in this scope
    6 |     cin>>n>>m;
      |          ^
a.cc:6:13: error: 'm' was not declared in this scope
    6 |     cin>>n>>m;
      |             ^
a.cc:8:9: error: 'i' was not declared in this scope
    8 |     for(i=0;i<10000;i++){
      |         ^
a.cc:9:23: error: 'ma1' was not declared in this scope; did you mean 'mi1'?
    9 |         if(i>=mi1&&i<=ma1+9&&i>=mi2&&i<=ma2+9){cout<<i;return 0;}
      |                       ^~~
      |                       mi1
a.cc:9:33: error: 'mi2' was not declared in this scope; did you mean 'mi1'?
    9 |         if(i>=mi1&&i<=ma1+9&&i>=mi2&&i<=ma2+9){cout<<i;return 0;}
      |                                 ^~~
      |                                 mi1
a.cc:9:41: error: 'ma2' was not declared in this scope
    9 |         if(i>=mi1&&i<=ma1+9&&i>=mi2&&i<=ma2+9){cout<<i;return 0;}
      |                                         ^~~
a.cc:9:48: error: 'cout' was not declared in this scope
    9 |         if(i>=mi1&&i<=ma1+9&&i>=mi2&&i<=ma2+9){cout<<i;return 0;}
      |                                                ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<-1;
      |     ^~~~
Language: C

main(){int a,b,i=1;scanf("%d%d",&a,&b);do if(i*2/25==a and i/10==b)break;while(++i<1000);printf("%d\n",i==1000?-1:i);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){int a,b,i=1;scanf("%d%d",&a,&b);do if(i*2/25==a and i/10==b)break;while(++i<1000);printf("%d\n",i==1000?-1:i);}
      | ^~~~
main.c: In function 'main':
main.c:1:20: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(){int a,b,i=1;scanf("%d%d",&a,&b);do if(i*2/25==a and i/10==b)break;while(++i<1000);printf("%d\n",i==1000?-1:i);}
      |                    ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){int a,b,i=1;scanf("%d%d",&a,&b);do if(i*2/25==a and i/10==b)break;while(++i<1000);printf("%d\n",i==1000?-1:i);}
main.c:1:20: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(){int a,b,i=1;scanf("%d%d",&a,&b);do if(i*2/25==a and i/10==b)break;while(++i<1000);printf("%d\n",i==1000?-1:i);}
      |                    ^~~~~
main.c:1:20: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:55: error: expected ')' before 'and'
    1 | main(){int a,b,i=1;scanf("%d%d",&a,&b);do if(i*2/25==a and i/10==b)break;while(++i<1000);printf("%d\n",i==1000?-1:i);}
      |                                             ~         ^~~~
      |                                                       )
main.c:1:90: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(){int a,b,i=1;scanf("%d%d",&a,&b);do if(i*2/25==a and i/10==b)break;while(++i<1000);printf("%d\n",i==1000?-1:i);}
      |                                                                                          ^~~~~~
main.c:1:90: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:90: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:90: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<iostream>
using namespace std;
#define ll long long int
int main(){
  ll a,b;
  cin>>a>>b;
  if(a%2==1)
    cout<<"-1";
  else{
    ll k=a/2;
    cout<<max(k*25,b*10);
  return 0;
}

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

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
  long long a;
  long long b;
  cin >> a >>b;
  int c=-1;
  for (int i = 0; i < 1300; i++) {
    if (i * 0.08 == a and i * 0.1 == b) {
      if(c==-1)c=i;
    }
  }
  cout <<c
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: expected ';' before 'return'
   15 |   cout <<c
      |           ^
      |           ;
   16 |   return 0;
      |   ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:14: error: invalid operands to binary % (have 'int' and 'double')
    6 |     if((int)a%0.08==0&&(int)b%0.1==0){
      |        ~~~~~~^
      |        |
      |        int
main.c:6:30: error: invalid operands to binary % (have 'int' and 'double')
    6 |     if((int)a%0.08==0&&(int)b%0.1==0){
      |                        ~~~~~~^
      |                        |
      |                        int
main.c:12:3: error: expected declaration or statement at end of input
   12 |   }
      |   ^
Language: C

main(){int a,b,i(1);scanf("%d%d",&a,&b);do if(i*2/25==a and i/10==b)break;while(++i<1000);printf("%d\n",i==1000?-1:i);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){int a,b,i(1);scanf("%d%d",&a,&b);do if(i*2/25==a and i/10==b)break;while(++i<1000);printf("%d\n",i==1000?-1:i);}
      | ^~~~
main.c: In function 'main':
main.c:1:18: error: expected declaration specifiers or '...' before numeric constant
    1 | main(){int a,b,i(1);scanf("%d%d",&a,&b);do if(i*2/25==a and i/10==b)break;while(++i<1000);printf("%d\n",i==1000?-1:i);}
      |                  ^
main.c:1:21: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(){int a,b,i(1);scanf("%d%d",&a,&b);do if(i*2/25==a and i/10==b)break;while(++i<1000);printf("%d\n",i==1000?-1:i);}
      |                     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){int a,b,i(1);scanf("%d%d",&a,&b);do if(i*2/25==a and i/10==b)break;while(++i<1000);printf("%d\n",i==1000?-1:i);}
main.c:1:21: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(){int a,b,i(1);scanf("%d%d",&a,&b);do if(i*2/25==a and i/10==b)break;while(++i<1000);printf("%d\n",i==1000?-1:i);}
      |                     ^~~~~
main.c:1:21: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:47: error: 'i' undeclared (first use in this function)
    1 | main(){int a,b,i(1);scanf("%d%d",&a,&b);do if(i*2/25==a and i/10==b)break;while(++i<1000);printf("%d\n",i==1000?-1:i);}
      |                                               ^
main.c:1:47: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:56: error: expected ')' before 'and'
    1 | main(){int a,b,i(1);scanf("%d%d",&a,&b);do if(i*2/25==a and i/10==b)break;while(++i<1000);printf("%d\n",i==1000?-1:i);}
      |                                              ~         ^~~~
      |                                                        )
main.c:1:91: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(){int a,b,i(1);scanf("%d%d",&a,&b);do if(i*2/25==a and i/10==b)break;while(++i<1000);printf("%d\n",i==1000?-1:i);}
      |                                                                                           ^~~~~~
main.c:1:91: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:91: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:91: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A,B,i=1;cin>>A>>B; 
  while(i<10000&&!(25*A<=2*i&&2*i<25*(A+1)&&10*B<=i&&i<10*(B+1))i++; 
  if(i=10000)i=-1; 
  cout<<i<<endl; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:65: error: expected ')' before 'i'
    5 |   while(i<10000&&!(25*A<=2*i&&2*i<25*(A+1)&&10*B<=i&&i<10*(B+1))i++;
      |        ~                                                        ^
      |                                                                 )
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
using namespace std;
int main() {
	double a, b;
	cin >> a >> b;
	if (a/0.8<(b+1)/0.1) {
		cout << ceil((a + 1) / 0.8) << endl;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: 'ceil' was not declared in this scope
   11 |                 cout << ceil((a + 1) / 0.8) << endl;
      |                         ^~~~
a.cc:15:25: error: 'ceil' was not declared in this scope
   15 |                 cout << ceil(b / 0.1) << endl;
      |                         ^~~~
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <math.h>

int main(){
  double a,b,a1,b1;
  cin >> a >> b;
  a1 = a * 12.5;
  b1 = b * 10.0;
  int a2 = b1 * 0.08, b2 = a1 / 10;
  if(a2 == a || b2 == b){
    cout << max(a1,b1) << endl;
  }
  else{
    cout << -1 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   22 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:27:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   27 |     cout << max(a1,b1) << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:27:13: error: 'max' was not declared in this scope; did you mean 'std::max'?
   27 |     cout << max(a1,b1) << endl;
      |             ^~~
      |             std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:4:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:27:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   27 |     cout << max(a1,b1) << endl;
      |                           ^~~~
      |                           std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:30:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   30 |     cout << -1 << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:30:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   30 |     cout << -1 << endl;
      |                   ^~~~
      |                   std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A,B,i=1;cin>>A>>B;
  for(i<10000&&25*A<=2*i&&2*i<25*(A+1)&&10*B<=i&&i<10*(B+1))i++;
  if(i=10000)i=-1;
  cout<<i<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:60: error: expected ';' before ')' token
    5 |   for(i<10000&&25*A<=2*i&&2*i<25*(A+1)&&10*B<=i&&i<10*(B+1))i++;
      |                                                            ^
      |                                                            ;
a.cc:6:3: error: expected primary-expression before 'if'
    6 |   if(i=10000)i=-1;
      |   ^~
a.cc:5:65: error: expected ';' before 'if'
    5 |   for(i<10000&&25*A<=2*i&&2*i<25*(A+1)&&10*B<=i&&i<10*(B+1))i++;
      |                                                                 ^
      |                                                                 ;
    6 |   if(i=10000)i=-1;
      |   ~~                                                             
a.cc:6:3: error: expected primary-expression before 'if'
    6 |   if(i=10000)i=-1;
      |   ^~
a.cc:5:65: error: expected ')' before 'if'
    5 |   for(i<10000&&25*A<=2*i&&2*i<25*(A+1)&&10*B<=i&&i<10*(B+1))i++;
      |      ~                                                          ^
      |                                                                 )
    6 |   if(i=10000)i=-1;
      |   ~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <string>
#include <unordered_map>
#include <unordered_set>

using namespace std;

typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vii;
typedef vector<pair<int,int>> vip;

#define pb push_back
#define ZOOM ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define fi first
#define se second
#define all(v) (v).begin(),(v).end()
#define LOOP_IT(s) for(auto it=(s).begin();it!=(s).end();++it)
#define loop for(int i=0;i<n;++i)


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

    double a,b;bool f=0;
    cin>>a>>b;
    double c=static_cast<double>(a/(0.08));
    c=floor(c);
    double d=static_cast<double>(b/(0.1));
    d=floor(d);
    if(c==d)
    {
        cout<<c;
        return 0;
    }
    double x;
    for(x=d;x<=c;++x)
    {
        if(floor(x*(0.08))==floor(x*(0.1)))
            {f=1;break;}
    }
    cout<<(f?x:-1);


    return 0;
}



Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:33:7: error: 'floor' was not declared in this scope
   33 |     c=floor(c);
      |       ^~~~~
Language: Java

import java.util.Scanner;

public class TaxIncrease {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int a = sc.nextInt();
        int b = sc.nextInt();

        double ad = (double)a;
        double bd = (double)b;

        if (Math.floor(ad/0.08) == Math.floor(bd /0.1)){
            if ((ad/0.08)=<25){
                System.out.println("25");
            }else {
                System.out.println(Math.floor(ad/0.08));
            }
        }else {
            System.out.println("-1");
        }
    }
}


Compiler output:
Main.java:14: error: illegal start of type
            if ((ad/0.08)=<25){
                           ^
Main.java:14: error: ';' expected
            if ((ad/0.08)=<25){
                             ^
Main.java:16: error: 'else' without 'if'
            }else {
             ^
3 errors
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;
   for(int i = 1 ; i<=100 ; i++)
   {
     if(i*0.08==A && i*0.1 = B)
     {
       ans = i;
       break;
     }
   }
   System.out.print(ans);
 }
}

Compiler output:
Main.java:11: error: bad operand types for binary operator '&&'
     if(i*0.08==A && i*0.1 = B)
                  ^
  first type:  boolean
  second type: double
1 error
Language: C++

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

int main()
{
	ll a,b;
	cin>>a>>b;
	double p=a/0.08;
	ll f=(ll)p;
	for(i=f;i<=f+5;i++)
	{
		ll p=floor(i*0.08);
		ll q=floor(i*0.1);
		if(p==a && q==b)
		{
			cout<<i;
			return 0;
		}
	}
	cout<<-1<<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'i' was not declared in this scope
   11 |         for(i=f;i<=f+5;i++)
      |             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mp make_pair
#define vi vector<int>
#define vl vaector<long>
#define vll vector<long long int>
#define vC  vector<char>
#define FastIO ios::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define db(...) ZZ(#__VA_ARGS__, __VA_ARGS__)
ll pow(ll x, ll y,ll m) { ll res = 1;x=x%m; while (y > 0) { if (y & 1) res = ((res%m) * (x%m))%m; y = y >> 1; x = ((x%m) * (x%m))%m; } return res%m; }
template <typename Arg1> void ZZ(const char* name, Arg1&& arg1){std::cerr << name << " = " << arg1 << endl;}
template <typename Arg1, typename... Args>void ZZ(const char* names, Arg1&& arg1, Args&&... args)
{
	const char* comma = strchr(names + 1, ',');
	std::cerr.write(names, comma - names) << " = " << arg1;
	ZZ(comma, args...);
}
const ll INF = 0xFFFFFFFFFFFFFFFL;
clock_t time_p=clock();
void abhigyan10()
{time_p=clock()-time_p;cerr<<"Time Taken : "<<(float)(time_p)/CLOCKS_PER_SEC<<"\n";}
ll seed;
mt19937 rng(seed=chrono::steady_clock::now().time_since_epoch().count());
inline ll rnd(ll l=0,ll r=INF){return uniform_int_distribution<ll>(l,r)(rng);}
#define clrbuf cin.ignore(numeric_limits<streamsize>::max(),'\n');
#define preciset(x) cout<<setprecision(x)<<fixed;
const ll mod =1000000007;
int main()
{
    
	
    	#ifndef ONLINE_JUDGE
        FastIO

        int l,h,m,a,b,ans=INT_MAX;
        cin>>a>>b;

        l=1;h=100000;

        while(l<=h)
        {
        	m=(l+h)/2;

        	int A= (int)m*(0.08);
        	int B= (int)m*(0.10);
        	
        	if(a== A && B==b)
        	{
        		
        		ans= min(m,ans);
        		h=m-1;
        	}
        	else if(A<a || B<b)
        	{
        		l=m+1;
        	}
        	else
        	{
        		h=m-1;
        	}
        }

        if(ans==INT_MAX)
        	cout<<-1;
        else
        	cout<<ans;
        return 0;
    }



Compiler output:
a.cc:34: error: unterminated #ifndef
   34 |         #ifndef ONLINE_JUDGE
Language: C++

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

int main(){
	double A, B;
	cin >> A >> B;
	while (cin){
		bool b = true;
		double c = A / 0.08, d = B / 0.1, m = d;
		if (c < d){
			m = d;
			if (floor(d * 0.08) == B) b = true;
			else b = false;
		}
		else if (d < c){
			m = c;
			if (floor(c * 0.1) == A) b = true;
			else b = false;
		}
		if (b) cout << m << "\n";
		else cout << -1 << "\n";
		cin >> A >> B;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:29: error: 'floor' was not declared in this scope
   13 |                         if (floor(d * 0.08) == B) b = true;
      |                             ^~~~~
a.cc:18:29: error: 'floor' was not declared in this scope
   18 |                         if (floor(c * 0.1) == A) b = true;
      |                             ^~~~~