criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner scn=new Scanner(System.in);
    int a=scn.nextInt();
     int b=scn.nextInt();
    int p;
    
    if((a*100)/8==p && b*10==p)
      System.out.println(p);
    
    else
      System.out.println("-1");
  }
}

Compiler output:
Main.java:9: error: variable p might not have been initialized
    if((a*100)/8==p && b*10==p)
                  ^
1 error
Language: Java

import java.util.*;
public class Main{
  public static void main{
    Scanner scn=new Scanner(System.in);
    int a=scn.nextInt();
     int b=scn.nextInt();
    int p;
    
    if((a*100)/8==p && b*10==p)
      System.out.println(p);
    
    else
      System.out.println("-1");
  }
}
    

Compiler output:
Main.java:3: error: '(' expected
  public static void main{
                         ^
1 error
Language: C++

#include<vector>
#include<string>
#include<algorithm>
#include<iomanip>

using namespace std;

int main()
{
	int a, b;
	cin >> a >> b;
	int ans = -1;
	for (int i = 0; i < 1300; i++) {
		int n = i * 0.08;
		int m = i * 0.1;
		if (n == a && m == b) {
			ans = i;
			i = 1300;
		}
	}
	cout << ans << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'cin' was not declared in this scope
   11 |         cin >> a >> b;
      |         ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include<iomanip>
  +++ |+#include <iostream>
    5 | 
a.cc:21:9: error: 'cout' was not declared in this scope
   21 |         cout << ans << endl;
      |         ^~~~
a.cc:21:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

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

# include <bits/stdc++.h>
# define rep(i, n) for(int i=0, i##_len=(n); i<i##_len; ++i)
# define reps(i, n) for(int i=1, i##_len=(n); i<=i##_len; ++i)
# define rrep(i, n) for(int i=((int)(n)-1); i>=0; --i)
# define rreps(i, n) for(int i=((int)(n)); i>0; --i)
# define ALL(x) (x).begin(), (x).end()
# define SZ(x) ((int)(x).size())
# define pb push_back
# define optimize_cin() cin.tie(0); ios::sync_with_stdio(false)
using namespace std;
using ll = long long;
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 (b<a) { a=b; return 1; } return 0; }
const long long INF = 1LL << 60;

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

    int ans = -1;

    reps(i,1000){
        int x = i * 8/100;
        int y = i * 1/10;
        if(x == a && y == b) {
            ans = i;
            break;
    }

    cout << ans << endl;
    return 0;
}

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

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected ')' before ';' token
   12 |   if(10*(B;1)<(25*A+1)/2)
      |         ~ ^
      |           )
a.cc:12:11: error: expected ')' before ';' token
   12 |   if(10*(B;1)<(25*A+1)/2)
      |     ~     ^
      |           )
a.cc:12:13: error: expected ';' before ')' token
   12 |   if(10*(B;1)<(25*A+1)/2)
      |             ^
      |             ;
Language: C++

import math

A, B = map(int, input().split())
ans = -1
a1 = math.ceil(A*12.5)
a2 = (A+1)*12.5

a = [i for i in range(a1, int(a2)) if i < a2]

b1 = B*10
b2 = (B+1)*10

b = list(range(b1, b2))

for i in a:
    if i in b:
        ans = i
        break

print(ans)




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

#include <stdio.h>
int main(){
  int a,b,A,B,n;
  scanf("%d %d",&a,&b);
  A=12.5*a;
  B=10*b;
  if((int)12.5*(a+1)<=10*b||(int)12.5*a>=10*(b+1)){
    puts("-1");
  }else if(A<B){
    printf("%d",B);
  }else{
    printf("%d",A);
  }
  
  return 0;
}turn 0;
}

Compiler output:
main.c:16:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
   16 | }turn 0;
      |       ^
main.c:17:1: error: expected identifier or '(' before '}' token
   17 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void){
  int a,b;
  cin>>a>>b;
  int s=-1;   
  for(double i=1.0;i<=1000;i+=1.0){
    if(int(floor(i*0.08))==a&&int(floor(i*0.1))==b){
      s=int(i);
      break;
    }
  }
  cout<<ans<<endl;
}


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

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

int main() {
  int a,b;
  cin >> a >> b;
  amin = a*100/8;
  amax = (a+1)*100/8;
  bmin = b*10;
  bmax = (b+1)*10;
  for(i=0;i<1001;i++){
    if(i>=amin&&i<amax){
      if(i>=bmin&&i<bmax){
        cout << i << endl;
        break;
      }
    }
  }
  cout << -1 << endl;  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'amin' was not declared in this scope; did you mean 'main'?
    7 |   amin = a*100/8;
      |   ^~~~
      |   main
a.cc:8:3: error: 'amax' was not declared in this scope; did you mean 'fmax'?
    8 |   amax = (a+1)*100/8;
      |   ^~~~
      |   fmax
a.cc:9:3: error: 'bmin' was not declared in this scope; did you mean 'fmin'?
    9 |   bmin = b*10;
      |   ^~~~
      |   fmin
a.cc:10:3: error: 'bmax' was not declared in this scope; did you mean 'fmax'?
   10 |   bmax = (b+1)*10;
      |   ^~~~
      |   fmax
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   for(i=0;i<1001;i++){
      |       ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'A' was not declared in this scope
   14 |                 A=i*8/100; B=i*10/100;
      |                 ^
a.cc:14:28: error: 'B' was not declared in this scope
   14 |                 A=i*8/100; B=i*10/100;
      |                            ^
Language: C

#include <stdio.h>

int main(void)
{
  int A, B, ans;
  scanf("%d %d", &A, &B);
  if((A + 1) * 12.5 < B * 10.0 || (B + 1) * 10.0 < A * 12.5)
    ans = -1;
  else if(A * 12.5 > B * 10.0){
    if(A % 2 == 0)
      ans = A * 12.5;
    else
      ans = A * 12.5 + 1
  }else
    ans = B * 10.0;
  
  printf("%d", ans);
  
  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:13:25: error: expected ';' before '}' token
   13 |       ans = A * 12.5 + 1
      |                         ^
      |                         ;
   14 |   }else
      |   ~
Language: C++

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

  int main() {
    double A,B;
    int C;
    int D;
    cin >> A >> B;
    
    if(10*B<=25*A/2){
      if(10*(B+1)>25*A/2){
        C=25*A/2;
        D=A;
        if(A%2==0)
          cout << C;
        
        else
          cout << 13*A;
      }

      else
        cout << -1;
      
    }

    if(25*A/2<10*B){
      if(25*(A+1)/2>10*B)
        cout << 10*B;

      else
        cout << -1;
      
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   14 |         if(A%2==0)
      |            ~^~
      |            | |
      |            | int
      |            double
Language: C++

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

  int main() {
    double A,B;
    int C;
    cin >> A >> B;
    
    if(10*B<=25*A/2){
      if(10*(B+1)>25*A/2){
        C=25*A/2;
        if(A%2==0)
          cout << C;
        
        else
          cout << 13*A;
      }

      else
        cout << -1;
      
    }

    if(25*A/2<10*B){
      if(25*(A+1)/2>10*B)
        cout << 10*B;

      else
        cout << -1;
      
    }
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   12 |         if(A%2==0)
      |            ~^~
      |            | |
      |            | int
      |            double
Language: C++

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

  int main() {
    double A,B;
    int C;
    cin >> A >> B;
    
    if(10*B<=25*A/2){
      if(10*(B+1)>=25*A/2)
        C=25*A/2;
        cout << C;

      else
        cout << -1;
      
    }

    if(25*A/2<10*B){
      if(25*(A+1)/2>=10*B)
        cout << 10*B;

      else
        cout << -1;
      
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: expected '}' before 'else'
   14 |       else
      |       ^~~~
a.cc:9:21: note: to match this '{'
    9 |     if(10*B<=25*A/2){
      |                     ^
a.cc: At global scope:
a.cc:19:5: error: expected unqualified-id before 'if'
   19 |     if(25*A/2<10*B){
      |     ^~
a.cc:27:3: error: expected declaration before '}' token
   27 |   }
      |   ^
Language: C++

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

  int main() {
    double A,B;
    int C
    cin >> A >> B;
    
    if(10*B<=25*A/2){
      if(10*(B+1)>=25*A/2)
        C=25*A/2;
        cout << C;

      else
        cout << -1;
      
    }

    if(25*A/2<10*B){
      if(25*(A+1)/2>=10*B)
        cout << 10*B;

      else
        cout << -1;
      
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'cin'
    7 |     cin >> A >> B;
      |     ^~~
a.cc:11:9: error: 'C' was not declared in this scope
   11 |         C=25*A/2;
      |         ^
a.cc:12:17: error: 'C' was not declared in this scope
   12 |         cout << C;
      |                 ^
a.cc:14:7: error: expected '}' before 'else'
   14 |       else
      |       ^~~~
a.cc:9:21: note: to match this '{'
    9 |     if(10*B<=25*A/2){
      |                     ^
a.cc: At global scope:
a.cc:19:5: error: expected unqualified-id before 'if'
   19 |     if(25*A/2<10*B){
      |     ^~
a.cc:27:3: error: expected declaration before '}' token
   27 |   }
      |   ^
Language: C++

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

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

#include<iostream>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  int flag=0;
  for(int ans=0;ans<=1500;ans++){
    if((ans*8)/100)==(ans*10)/100){
      	flag=1;
      break;
    }
  }
  if(flag)cout<<ans<<endl;
  else cout<<-1<<endl;
  return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected primary-expression before '==' token
    8 |     if((ans*8)/100)==(ans*10)/100){
      |                    ^~
a.cc:13:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |   if(flag)cout<<ans<<endl;
      |                 ^~~
      |                 abs
Language: C++

#include<iostream>
using namespace std;
#define int long long int
signed main(){
  int a,b;
  cin>>a>>b;
  int ans1=(100*a)/8;
  int ans2=(100*b)/10;
  if(ans1!=ans2){
    cout<<-1<<endl;
   else
     cout<<ans1<<endl;
    return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:4: error: expected '}' before 'else'
   11 |    else
      |    ^~~~
a.cc:9:17: note: to match this '{'
    9 |   if(ans1!=ans2){
      |                 ^
Language: C++

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

int tax8(int n) {
  int t = (n * 8) / 100;
  return t;
}

int tax10(int n) {
  int t = (n * 10) / 100;
  return t;
}

int main(){
  
  int A,B;
  cin >> A >> B;
  
  rep1(i,1010) {
    if (tax8(i) == A && tax10(i) == B) {
      cout << i << endl;
      flag = false;
      return 0;
    }
    
  }
  
  cout << -1 << endl;
  

}


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

include <bits/stdc++.h>

int main(int, char**) {
        int A, B;
        std::cin >> A >> B;
        for (int i=1; i<=1000; i++) {
                int a = int(i * 0.08);
                int b = int(i * 0.1);
                if (a==A && b==B) {
                        std::cout << i << std::endl;
                        return 0;
                }
        }
        std::cout << "-1" << std::endl;
        return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
Language: C++

#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<string>
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define ll long long 
using namespace std;
int main(){
  int a,b;
  cin >>a>>b;
  int ans=10000;
  for(int i=0;i<10000;i++){
    if(0.08*i>=a&&0.08*i<a+1&&0.1*i>=b&&0.1*i<b){
      ans=i;
      break;
    }
  }
  if(ans==10000){
    cout <<-1<<endl;
  }else{
    cout <<ans<<endl
  }
}
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:29:21: error: expected ';' before '}' token
   29 |     cout <<ans<<endl
      |                     ^
      |                     ;
   30 |   }
      |   ~
Language: C++

#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<string>
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define ll long long 
using namespace std;
int main(){
  int a,b;
  cin >>a>>b;
  int ans=10000;
  for(int i=0;i<10000<i++){
    if(0.08*i>=a&&0.08*i<a+1&&0.1*i>=b&&0.1*i<b){
      ans=i;
      break;
    }
  }
  if(ans==10000){
    cout <<-1<<endl;
  }else{
    cout <<ans<<endl
  }
}
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:20:26: error: expected ';' before ')' token
   20 |   for(int i=0;i<10000<i++){
      |                          ^
      |                          ;
a.cc:29:21: error: expected ';' before '}' token
   29 |     cout <<ans<<endl
      |                     ^
      |                     ;
   30 |   }
      |   ~
Language: C++

a,b = [int(i) for i in input().split()]
flag = False
for i in range(b*10,b*10+9):
  if i * 0.08 // 1 == a:
    print(i)
    flag = True
    break
if not flag:
  print(-1)

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b = [int(i) for i in input().split()]
      | ^
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected ',' or ';' before 'int'
   10 |                 int zb=n*10/100;
      |                 ^~~
a.cc:12:30: error: 'zb' was not declared in this scope; did you mean 'za'?
   12 |                 if(a==za&&b==zb){
      |                              ^~
      |                              za
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<utility>
#include<algorithm>
#include<map>
#include<cstdlib>
#include<cmath>
using namespace std;
using ll =long long;
int main() {
	double A, B;
	int C;
	cin >> A >> B;
	C = A / 0.08 + (B - A) * 0.02;
	cout <<noshowpoint<<C;


}
	/*

Compiler output:
a.cc:20:9: error: unterminated comment
   20 |         /*
      |         ^
Language: C++

 #include "bits/stdc++.h"

using namespace std;

#define sp(x) cout<<setprecision(x);
#define all(a) (a).begin(), (a).end()
#define inf 10000000
#define linf INT64_MAX*0.99
#define int long long
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)
#define yes "Yes"
#define no "No"
#define divs 1000000007
#define dive 1000000009

typedef pair<int, int> P;

lint ctoi(char c) {
	if (c >= '0' && c <= '9') {
		return c - '0';
	}
	return 0;
}
 
signed main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
	int a,b; cin>>a>>b;
	int ans = a*100/8;
	bool flag = false;
	while(ans*8/100<a+1){
		if(ans/10==b){
			cout<<ans<<endl;
			flag = true;
			break;
		}
		else {
			ans++;
		}
	}
	if(!flag) cout<<-1<<endl;
    return 0;
}

Compiler output:
a.cc:19:1: error: 'lint' does not name a type; did you mean 'uint'?
   19 | lint ctoi(char c) {
      | ^~~~
      | uint
Language: C++

 #include "bits/stdc++.h"

using namespace std;

#define sp(x) cout<<setprecision(x);
#define all(a) (a).begin(), (a).end()
#define inf 10000000
#define linf INT64_MAX*0.99
#define int long long
#define FOR(i,a,b) for(lint i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)
#define yes "Yes"
#define no "No"
#define divs 1000000007
#define dive 1000000009

typedef pair<int, int> P;

lint ctoi(char c) {
	if (c >= '0' && c <= '9') {
		return c - '0';
	}
	return 0;
}
 
signed main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
	int a,b; cin>>a>>b;
	int ans = a*100/8;
	bool flag = false;
	while(ans*8/100<a+1){
		if(ans/10==b){
			cout<<ans<<endl;
			flag = true;
			break;
		}
		else {
			ans++;
		}
	}
	if(!flag) cout<<-1<<endl;
    return 0;
}

Compiler output:
a.cc:19:1: error: 'lint' does not name a type; did you mean 'uint'?
   19 | lint ctoi(char c) {
      | ^~~~
      | uint
Language: C++

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

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

    int ans = -1;
    
    for (int i = 0, i <= 1001; i++) {
        int temp = i * 0.08;
        int temp2 = i * 0.1;
        if (temp == a && temp2 == b) {
            ans = i;
            cout << ans << endl;
            exit(0);
        }
    }
    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: expected ';' before '<=' token
   11 |     for (int i = 0, i <= 1001; i++) {
      |                      ^~~
      |                      ;
a.cc:11:23: error: expected primary-expression before '<=' token
   11 |     for (int i = 0, i <= 1001; i++) {
      |                       ^~
Language: C++

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

int main () {
	int a, b,
  	cin >> a >> b;
  	for (int i = 0; i < 1100; i++) {
    if (i * 2 / 25 == a && i / 10 == b) {
    cout << i << endl; 
    break;
    }
    else if (i == 1099) {
    cout << -1 << endl;
    }
    }
  return -1
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected initializer before '>>' token
    6 |         cin >> a >> b;
      |             ^~
a.cc:16:12: error: expected ';' before '}' token
   16 |   return -1
      |            ^
      |            ;
   17 | }
      | ~
Language: C

#include <cstdio>
using namespace std;
int a,b;
bool u[1260];

int main(){
	scanf("%d%d",&a,&b);
	for(int i=1;i<=1250;i++)if(i*8/100==a)u[i]=1;
	for(int i=1;i<=1250;i++)
		if(u[i] && i/10==b){
			printf("%d\n",i);
			return 0;
		}
	puts("-1");
	return 0;
}

Compiler output:
main.c:1:10: fatal error: cstdio: No such file or directory
    1 | #include <cstdio>
      |          ^~~~~~~~
compilation terminated.
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();
			
			for(int i=2;i<1100;i++) {
				if((int)(i*0.08)==a  && (int)(i*0.1))==b) {
					System.out.println(i);
					return;
				}
			}
			
			
			System.out.println(-1);
			
		}

	}

Compiler output:
Main.java:12: error: illegal start of expression
				if((int)(i*0.08)==a  && (int)(i*0.1))==b) {
				                                     ^
Main.java:12: error: ';' expected
				if((int)(i*0.08)==a  && (int)(i*0.1))==b) {
				                                        ^
2 errors
Language: C++

int main() {
  long int A,B;
  cin >> A >> B;
  
  
  long double ans = 1000;
  bool a = false;
  for(int i=0;i<10;i++){
    for(int j=0;j<10;j++){
    if((A+i*0.1)/0.08 == (B+j*0.1)/0.1){
      ans = min(ans,(A+i*0.1)/0.08);
      a = true;
    }
    }
  }
  if(a) cout << ans << endl;
  else cout << -1 << endl;    
}
        

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> A >> B;
      |   ^~~
a.cc:11:13: error: 'min' was not declared in this scope; did you mean 'main'?
   11 |       ans = min(ans,(A+i*0.1)/0.08);
      |             ^~~
      |             main
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |   if(a) cout << ans << endl;
      |         ^~~~
a.cc:16:24: error: 'endl' was not declared in this scope
   16 |   if(a) cout << ans << endl;
      |                        ^~~~
a.cc:17:8: error: 'cout' was not declared in this scope
   17 |   else cout << -1 << endl;
      |        ^~~~
a.cc:17:22: error: 'endl' was not declared in this scope
   17 |   else cout << -1 << endl;
      |                      ^~~~
Language: C++

int main() {
  int A,B;
  cin >> A >> B;
  
  
  double ans = 1000;
  bool a = false;
  for(int i=0;i<10;i++){
    for(int j=0;j<10;j++){
    if((A+i*0.1)/0.08 == (B+j*0.1)/0.1){
      ans = min(ans,(A+i*0.1)/0.08);
      a = true;
    }
    }
  }
  if(a) cout << ans << endl;
  else cout << -1 << endl;    
}
        

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> A >> B;
      |   ^~~
a.cc:11:13: error: 'min' was not declared in this scope; did you mean 'main'?
   11 |       ans = min(ans,(A+i*0.1)/0.08);
      |             ^~~
      |             main
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |   if(a) cout << ans << endl;
      |         ^~~~
a.cc:16:24: error: 'endl' was not declared in this scope
   16 |   if(a) cout << ans << endl;
      |                        ^~~~
a.cc:17:8: error: 'cout' was not declared in this scope
   17 |   else cout << -1 << endl;
      |        ^~~~
a.cc:17:22: error: 'endl' was not declared in this scope
   17 |   else cout << -1 << endl;
      |                      ^~~~
Language: C++

a,b = map(int, input().split())
for i in range(1,1001):
    if (i*0.08)//1 == a and (i*0.1)//1 == b:
        print(i)
        break
else:
    print(-1)

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

import java.util.Scanner;
class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    sc.close();
    int[] arr = new int[1];
    for(int i = 0; i < 100; i++) {
      if(i/a == i/b) {
		arr[0] = i;
        break;
      }
    }
    if(arr.lenght == 0) {
      System.out.println("-1"); 
    } else {
      System.out.println(arr[0]); 
    }
  }
}

Compiler output:
Main.java:15: error: cannot find symbol
    if(arr.lenght == 0) {
          ^
  symbol:   variable lenght
  location: variable arr of type int[]
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int  a,b;
  cin>>a>>b;
 
  for(int n=0;n<10000;n++){
    int za=n*8/100;
    int zb=n*10/100;
    if(a==za &&b==zb){
      cout<<n<<endl;
      return 0;
    }
  }

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

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int  a,b;
  cin>>a>>b;
 
  for(int n=0;n<10000;n++){
    int za=n*8/100;
    int zb=n*10/100;
    if(a==za &&b==zb){
      cout<<n<<endl;
      return 0;
    }
    

Compiler output:
a.cc: In function 'int main()':
a.cc:14:6: error: expected '}' at end of input
   14 |     }
      |      ^
a.cc:8:27: note: to match this '{'
    8 |   for(int n=0;n<10000;n++){
      |                           ^
a.cc:14:6: error: expected '}' at end of input
   14 |     }
      |      ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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

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

int main(){
  int x,y;
  cin>>x>>y;
  if(y*10*8/100==x){
  cout<<y*10<<endl;
  }
  else{
  cout<<-1<<endl;
  }
}

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

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



int main() {
    double a, b;
    int A, B
    cin >> a >> b;
    int ans = -1;
    for (int i = 0; i < 1000; i++) {
        A = a * 0.08;
        B = b * 0.1;
        if (a == A && b == B) {
            ans = i;
        }
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected initializer before 'cin'
    9 |     cin >> a >> b;
      |     ^~~
a.cc:13:9: error: 'B' was not declared in this scope
   13 |         B = b * 0.1;
      |         ^
Language: C++

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

using namespace std;

int main()
{
   int a,b,p,q,r;
   
   cin >> a>>b;
   
   for(p=0;p<1500;p++){
   	
   	q = floor(p*0.08);
   	r = floor(p*0.1);
   	if(q==a){
   		
   	    if(b == floor(p*0.1)){
   	    	
   	    	cout << p << "\n";
   	    	break;
		   }
		else{
			cout << -1;
			break;
		}
		   }
	
	   }
     else{
     	cout << -1;
	 }
   
   
   
}

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

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

int main() {
  int a, b;
  cin >> a >> b;
  
  int ans = max(a / 0.08, b / 0.1) + 0.9;
  if (ans < (int)min((a+1) / 0.08, ans < (b+1) / 0.1))
    cout << ans << endl;
  else
    cout << -1 << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: no matching function for call to 'min(double, bool)'
    9 |   if (ans < (int)min((a+1) / 0.08, ans < (b+1) / 0.1))
      |                  ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:1:
/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:9:21: note:   deduced conflicting types for parameter 'const _Tp' ('double' and 'bool')
    9 |   if (ans < (int)min((a+1) / 0.08, ans < (b+1) / 0.1))
      |                  ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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:9:21: note:   mismatched types 'std::initializer_list<_Tp>' and 'double'
    9 |   if (ans < (int)min((a+1) / 0.08, ans < (b+1) / 0.1))
      |                  ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

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

#ifdef _MSC_VER
#pragma warning(disable:4996)
#endif

using namespace std;

int main() {
	double a, b;
	cin >> a >> b;
	
	int value = (int)(a / 0.08);
	if (floor(value * 0.08) == a && floor(value * 0.10) == b) {
		cout << value;
	}
	else if(floor((value+1) * 0.08) == a && floor((value+1) * 0.10) == b){
		cout << value+1;
	}
	else {
		cout << -1;
	}

	return 0;
}



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

#include<iostream>
#include <malloc.h>
#include <vector>
#include<queue>
#include <algorithm>

using namespace std;


int main(){
  double a,b;
  cin >>a >> b;
  //int A_i = 12*a;
  double A = a*12.5;
  double B = b*10;

  double A_ = A
  
  if(A-double(int(A)) >0.1) A_ += 12.5;
  else A_+=12;
  
  
  double B_ = B+10;
  //double _A = (a-1)/0.08;
  //double _B = (b-1)/0.1;
  if ( B_<=A|| A_<=B) {
    cout << -1 << endl;
    return 0;
  }
  if(A>=B){
    if(A-double(int(A)) >0.1) cout << int(A+1)<< endl;
    else cout << int(A)<< endl;
    
  }
  else cout << int(B) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:3: error: expected ',' or ';' before 'if'
   19 |   if(A-double(int(A)) >0.1) A_ += 12.5;
      |   ^~
a.cc:20:3: error: 'else' without a previous 'if'
   20 |   else A_+=12;
      |   ^~~~
Language: C

a,b = map(int,input().split())
for i in range(1009):
    if((int)(i*8/100)==a and (int)(i*10/100)==b):
        print(i)
        break
else: print("-1")

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,b = map(int,input().split())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a,b = map(int,input().split())
      |   ^
main.c:1:7: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    1 | a,b = map(int,input().split())
      |       ^~~
main.c:1:11: error: expected expression before 'int'
    1 | a,b = map(int,input().split())
      |           ^~~
main.c:2:1: error: expected ',' or ';' before 'for'
    2 | for i in range(1009):
      | ^~~
Language: C++

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

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


  cout <<  << endl;
}


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

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

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



  cout <<  ans<< endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected ';' before '<' token
    9 |     for(int i=0 , i<1010 ,i++){
      |                    ^
      |                    ;
a.cc:9:20: error: expected primary-expression before '<' token
a.cc:9:30: error: expected ';' before ')' token
    9 |     for(int i=0 , i<1010 ,i++){
      |                              ^
      |                              ;
a.cc:11:18: error: expected ';' before 'break'
   11 |             ans=i
      |                  ^
      |                  ;
   12 |         break;
      |         ~~~~~
Language: C++

a,b=map(int,input().split())
if int(int(a/0.08)*0.1)==b:
    print(int(a/0.08))
elif int(int(b/0.1)*0.08)==a:
    print(int(b/0.1))
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++

int main(){
  
  int A; int B;
  cin >> A >> B;
  int et_min; int et_max;
  et_min = A*25/2;
  et_max = (A+1)*25/2;
  if (A%2==0){
    et_max--;
  }else{
    et_min++;
  }
  int tn_min; int tn_max;
  tn_min = B*10;
  tn_max = (B+1)*10-1;
  
  if(et_min <= tn_min && tn_min <= et_max){
    cout << tn_min << endl;
  }else if(tn_min <= et_min && et_min <= tn_max){
    cout << et_min << endl;
  }else{
    cout << -1 << 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:18:5: error: 'cout' was not declared in this scope
   18 |     cout << tn_min << endl;
      |     ^~~~
a.cc:18:23: error: 'endl' was not declared in this scope
   18 |     cout << tn_min << endl;
      |                       ^~~~
a.cc:20:5: error: 'cout' was not declared in this scope
   20 |     cout << et_min << endl;
      |     ^~~~
a.cc:20:23: error: 'endl' was not declared in this scope
   20 |     cout << et_min << endl;
      |                       ^~~~
a.cc:22:5: 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;
      |                   ^~~~
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main() {
    int a, b, ans;
    cin >> a >> b;
    if (max((int)(a/0.08), b*10) < min((a+1)/0.08, (b+1) * 10.)) ans = max((int)(a/0.08), b*10.);
    else ans = -1;
    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:75: error: no matching function for call to 'max(int, double)'
    7 |     if (max((int)(a/0.08), b*10) < min((a+1)/0.08, (b+1) * 10.)) ans = max((int)(a/0.08), b*10.);
      |                                                                        ~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:7:75: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'double')
    7 |     if (max((int)(a/0.08), b*10) < min((a+1)/0.08, (b+1) * 10.)) ans = max((int)(a/0.08), b*10.);
      |                                                                        ~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:7:75: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    7 |     if (max((int)(a/0.08), b*10) < min((a+1)/0.08, (b+1) * 10.)) ans = max((int)(a/0.08), b*10.);
      |                                                                        ~~~^~~~~~~~~~~~~~~~~~~~~~
Language: C++

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

int main(){
  int a,b,c,e;
  cin >> a >> b;
  for(int i;i<1251;i++){
    c = i*0.08;
    d = i*0.1;
    if(c == a && b == e){cout << i << endl;
    break;}
  }
  cout << -1 << endl;
  return 0;
}
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'd' was not declared in this scope
    9 |     d = i*0.1;
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
#define ll long long
#define arr array
 
int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
	
	int a, b;
	cin >> a >> b;

	for (int i=1; i<1e4; ++1) {
		int a2=i*8/100, b2=i*10/100;
		if(a2==a && b2==b) {
			cout << i;
			return 0;
		}
	}
	cout << -1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:32: error: lvalue required as increment operand
   14 |         for (int i=1; i<1e4; ++1) {
      |                                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const int mod=1000000007;
#define pb  push_back
#define FOR(i,n) for(int i=0;i<(n);i++)
#define FORA(i,a,b) for(int i=(a);i<=(b);i++)
#define FORD(i,a,b) for(int i=(a);i>=(b);i--)
#define FAST ios_base::sync_with_stdio(false);cin.tie(NULL);
#define count_1(n)  __builtin_popcountll(n)
#define parity(n)   __builtin_parityll(n)   //Even parity 0 as output
void show    (int a[], int arraysize) { for (int i = 0; i < arraysize; ++i)  {cout << a[i] << " ";}	cout<<endl;}
int gcd(int a, int b) { if (b == 0) return a; return gcd(b, a % b);}
void sieve(int n)
{
    bool prime[n+1];
    memset(prime, true, sizeof(prime));

    for (int p=2; p*p<=n; p++)
    {
        if (prime[p] == true)
        {
            for (int i=p*p; i<=n; i += p)
                prime[i] = false;
        }
    }
    for (int p=2; p<=n; p++)
       if (prime[p])
          cout << p << " ";
}
int main()
{FAST

float a,b;
cin>>a>>b;
float p;
p=(a*100);
p/=8;
float x=p/10;
x=floor(x);
if(b==x)

p=floor(p);
{
	cout<<p;
}

else
{
	cout<<"-1";
}
return  0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:49:1: error: 'else' without a previous 'if'
   49 | else
      | ^~~~
Language: C

#include <stdio.h>
int main(void)
{
	int a, b;
	float a1, a2, b1, b2, x;
	scanf("%d %d", &a, &b);
	
	a1 = a * 100 / 8;
	a2 = (a + 1) * 100 / 8;
	b1 = b * 10;
	b2 = (b + 1) * 10;
	
	if((a1 > b1 && a1> b2) || (b1 > a1 && b1 > a2)){
		x = -1;
	}
	else{
		if(a1 >= b1){
			x = a1;
		}
		else{
			x = b1;
		}
	}
	
	if(x % 1 >= 0){
		x++;
	}
	
	printf("%.0f", x);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:25:14: error: invalid operands to binary % (have 'float' and 'int')
   25 |         if(x % 1 >= 0){
      |              ^
Language: Java

import java.util.*;
class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();
  int m=sc.nextInt();
  int ans=0;
  for(ans=0;ans<10000;ans++){
  	if(((int)Math.floor(ans*0.08)==n)&&((int)Math.floor(ans*0.1==m)))break;
  }
  System.out.println(ans==10000?-1:ans);
}
}


Compiler output:
Main.java:9: error: incompatible types: boolean cannot be converted to double
  	if(((int)Math.floor(ans*0.08)==n)&&((int)Math.floor(ans*0.1==m)))break;
  	                                                           ^
Main.java:9: error: bad operand types for binary operator '&&'
  	if(((int)Math.floor(ans*0.08)==n)&&((int)Math.floor(ans*0.1==m)))break;
  	                                 ^
  first type:  boolean
  second type: int
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: Java

import java.util.*;
class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();
  int m=sc.nextInt();
  int ans=0;
  for(ans=0;ans<10000;ans++){
  	if((int)Math.floor(ans*0.08)==n&&(int)Math.floor(ans*0.1==m))break;
  }
  System.out.println(ans==10000?-1:ans);
}
}


Compiler output:
Main.java:9: error: incompatible types: boolean cannot be converted to double
  	if((int)Math.floor(ans*0.08)==n&&(int)Math.floor(ans*0.1==m))break;
  	                                                        ^
Main.java:9: error: bad operand types for binary operator '&&'
  	if((int)Math.floor(ans*0.08)==n&&(int)Math.floor(ans*0.1==m))break;
  	                               ^
  first type:  boolean
  second type: int
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: Java



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


public class abcd
{
  public static void main (String[] args) throws java.lang.Exception
   {
	try{
	    Scanner sc=new Scanner(System.in);
	    int a=sc.nextInt();
	    int b=sc.nextInt();
	    double c=a/0.08;
	    int cc=(int)c;
	    
	    double d=b/0.1;
	    int dd=(int)d;
	    if(c==d)
	     System.out.println(c);
	    else
	    System.out.println("-1");
       }     
	catch(Exception e)
		 {}
	}
}


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

/* package codechef; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public Class Codechef
{
  public static void main (String[] args) throws java.lang.Exception
   {
	try{
	    Scanner sc=new Scanner(System.in);
	    int a=sc.nextInt();
	    int b=sc.nextInt();
	    double c=a/0.08;
	    int cc=(int)c;
	    
	    double d=b/0.1;
	    int dd=(int)d;
	    if(c==d)
	     System.out.println(c);
	    else
	    System.out.println("-1");
       }     
	catch(Exception e)
		 {}
	}
}


Compiler output:
Main.java:8: error: class, interface, enum, or record expected
public Class Codechef
       ^
Main.java:10: error: unnamed classes are a preview feature and are disabled by default.
  public static void main (String[] args) throws java.lang.Exception
                ^
  (use --enable-preview to enable unnamed classes)
Main.java:29: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

/* package codechef; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class Codechef
{
  public static void main (String[] args) throws java.lang.Exception
   {
	try{
	    Scanner sc=new Scanner(System.in);
	    int a=sc.nextInt();
	    int b=sc.nextInt();
	    double c=a/0.08;
	    int cc=(int)c;
	    
	    double d=b/0.1;
	    int dd=(int)d;
	    if(c==d)
	     System.out.println(c);
	    else
	    System.out.println("-1");
       }     
	catch(Exception e)
		 {}
	}
}


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

/* package codechef; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
  public static void main (String[] args) throws java.lang.Exception
   {
	try{
	    Scanner sc=new Scanner(System.in);
	    int a=sc.nextInt();
	    int b=sc.nextInt();
	    int c=a/0.08;
	    int d=b/0.1;
	    if(c==d)
	     System.out.println(c);
	    else
	    System.out.println("-1");
       }     
	catch(Exception e)
		 {}
	}
}


Compiler output:
Main.java:16: error: incompatible types: possible lossy conversion from double to int
	    int c=a/0.08;
	           ^
Main.java:17: error: incompatible types: possible lossy conversion from double to int
	    int d=b/0.1;
	           ^
2 errors
Language: C++

//https://atcoder.jp/contests/abc158/tasks/abc158_c
#include<bits/stdc++.h>
using namespace std;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0), cout.tie(0);
    int a , b ;
    cin >> a >> b ;
    for(int i = 1; i <= 1250; i++)
    {
       if( floor( i * 0.08) == a and floor(i * 0.1) == b )
       {
         cout << i << endl ;
         return;
       }
    }
    cout << -1 << endl ;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(void){
  int a,b;
  scanf("%d%d",&a,&b);
  for(int i=0;i<1100;i++){
    int ta=i*8/100;
    int tb=i*10/100;
    if(ta==a&&tb==b){
      printf("%d",i);
      return;
    }
  }
  printf("-1");
  return;

}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N,A,B,C,D;
  cin >> N >> A >> B;
  C =N/(A+B)
  if(N%(A+B) >= A){
    D = A;
  }
  else{
    D = N%(A+B);
  }
  cout << C*A+D << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before 'if'
    7 |   C =N/(A+B)
      |             ^
      |             ;
    8 |   if(N%(A+B) >= A){
      |   ~~         
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else{
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B;
  int ans = -1;
  cin >> A >> B;
  for(int i=0;i<1500,i++){
    int D=i*0.08;
    int E=i:0.1;
    if( A==D && B==E){
      ans = i;
      break;
    }
  }
  cout << ans << endl;
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: expected ';' before ')' token
    8 |   for(int i=0;i<1500,i++){
      |                         ^
      |                         ;
a.cc:10:12: error: expected ',' or ';' before ':' token
   10 |     int E=i:0.1;
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B,;
  int ans = -1;
  cin >> A >> B;
  for(i=0;i<1500,i++){
    int D=i*0.08;
    int E=i:0.1;
    if( A==D && B==E){
      ans = i;
      break;
    }
  }
  cout << ans << endl;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected unqualified-id before ';' token
    5 |   int A,B,;
      |           ^
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=0;i<1500,i++){
      |       ^
a.cc:8:21: error: expected ';' before ')' token
    8 |   for(i=0;i<1500,i++){
      |                     ^
      |                     ;
Language: C++

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

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

    cout << -1 << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: expected '}' at end of input
   17 |     cout << -1 << endl;
      |                        ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^