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

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

typedef long long ll;

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

    string s; cin >> s;
    int q=0; cin >> q;
    while(q--)
    {
        int t,f; char c;
        cin >> t;
        if(t==1){
            reverse(s2.begin(), s2.end());
        }
        else if(t==2){
            cin >> f >> c;
            f==1 ? s = c+s: s = s+c;
        }
    }
    cout << s; return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:21: error: 's2' was not declared in this scope; did you mean 's'?
   17 |             reverse(s2.begin(), s2.end());
      |                     ^~
      |                     s
Language: C++

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
  int a,b;
  cin>>a>>b;
  int x=1;
  rep(i,10001){
    if(x*8/100==a&&x*10/100==b) break;
    x++;
  }
if(x<=1000)  cout<<x<<endl;
else  x=-1 cout<<x<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: expected ';' before 'cout'
   15 | else  x=-1 cout<<x<<endl;
      |           ^~~~~
      |           ;
Language: C++

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
  int a,b;
  cin>>a>>b;
  ans=10*b;
  if(100*a/8!=ans){
    ans=-1;
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   ans=10*b;
      |   ^~~
      |   abs
Language: C++

#include <iostream>
#include <cmath>
 
int main(){
  int A, B;
  std::cin >> A >> B;
  for(int i = 0; i < 10000; ++i){
    if(std::floor(i*0.08) == A && std::floor(i*0.10) == B ){
      std::cout << i;
      return 0;
    }
  }
  std::cout << "-1";
  return 0;

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

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <math.h>
#include <map>
#include <set>
#include <math.h>

using namespace std;

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

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

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

import java.util.*;
import java.lang.Math;
public class {
	public static void main(String [] args){
		Scanner in = new Scanner(System.in);
		double a = in.nextInt();
		double b = in.nextInt();
		for(int i=0;i<=1000;i++){
			double x = Math.floor(i*0.08);
			double y = Math.floor(i*0.1);
			if(x==a && y==b){
				System.out.print(i);
				break;
			}
			else if(i==1000){
				System.out.print("-1");
			}
			
		}
	}
}

Compiler output:
Main.java:3: error: <identifier> expected
public class {
            ^
1 error
Language: C++

#include<iostream>

using namespace std;

// A,B <= 100
// N <= 10000
// N <= 1009
int main(){
  int a,b;
  cin >> a >> b;
  for(int i=0; i < 1009; i++){
	int za = i*8/100;
	int zb = i*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:15:19: error: 'n' was not declared in this scope
   15 |           cout << n << endl;
      |                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
double tax(double x,double t)
{
	if((x/t-floor(x/t))<0.5) return floor(x/t);
	else return ceil(x/t);
}
int main()
{
	double a,b;
	cin>>a>>b;
	double c,d;
	c=tax(a,0.08);
	d=tax(b,0.1);
	if(c*0.08!=a&&d*0.1！=b) cout<<"-1";
	else cout<<max(c,d)<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: unable to find numeric literal operator 'operator""\U0000ff01'
   15 |         if(c*0.08!=a&&d*0.1！=b) cout<<"-1";
      |                         ^~~~~
Language: C++

#include<bits/stdc++.h>
#define ll long long 
using namespace std;
int main()
{
  double a , b;
 cin >> a >> b;
  double temp = max((a/0.1),(b/0.08));
double temp2 = max((b/0.1),(a/0.08));

 double ans  = min(temp,temp2);
  if(ans){
    cout<<ans;}
  else
  {
    cout<<"-1";
 return 0;
}


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

#include<bits/stdc++.h>
#define ll long long 
using namespace std;
int main()
{
 ll double a , b;
 cin >> a >> b;
 ll double temp = max((a/0.1),(b/0.08));
ll double temp2 = max((b/0.1),(a/0.08));
 cout<<min(temp,temp2);
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:2:17: error: 'long long' specified with 'double'
    2 | #define ll long long
      |                 ^~~~
a.cc:6:2: note: in expansion of macro 'll'
    6 |  ll double a , b;
      |  ^~
a.cc:2:17: error: 'long long' specified with 'double'
    2 | #define ll long long
      |                 ^~~~
a.cc:6:2: note: in expansion of macro 'll'
    6 |  ll double a , b;
      |  ^~
a.cc:2:17: error: 'long long' specified with 'double'
    2 | #define ll long long
      |                 ^~~~
a.cc:8:2: note: in expansion of macro 'll'
    8 |  ll double temp = max((a/0.1),(b/0.08));
      |  ^~
a.cc:2:17: error: 'long long' specified with 'double'
    2 | #define ll long long
      |                 ^~~~
a.cc:9:1: note: in expansion of macro 'll'
    9 | ll double temp2 = max((b/0.1),(a/0.08));
      | ^~
Language: C++

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

int main() {
  int a,b;
  cin>>a>>b;
  int ans;
  bool t=false
  for(int i=10*b;i<10*b+10;i++){
    if(25*a<=2*i&&2*i<25*a+25){
      ans=i;
      t=true;
      break;
    }
  }
  if(t)cout<<ans<<endl;
  else cout<<"-1"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'for'
    9 |   for(int i=10*b;i<10*b+10;i++){
      |   ^~~
a.cc:9:18: error: 'i' was not declared in this scope
    9 |   for(int i=10*b;i<10*b+10;i++){
      |                  ^
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();

		boolean bool = true;
		int t1 = 0;
		int t2 = 0;
		loop: for (int i = 13; i <= 1000; i++) {
			int k1 = (int) (i * 0.08);
			int k11 = (int) (i * 0.1);
			if (a == k1 && b == k11) {
				bool = false;
				System.out.println(i);
				break loop;
			}
			int k2 = (int) (i * 0.09);

			if (t1 == k1 && t2 == k2) {
				continue;
			}

			t1 = k1;
			t2 = k2;

			for (int j = k1; j < k2; j++) {

				if (j == a && k11 == b) {
					bool = false;
					System.out.println(i);
					break loop;
				}
			}

		}
		if (bool) {
			System.out.println("-1");
		}

		sc.close();
	}

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

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

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int a,b; cin>>a>>b;
  int L=b*10,R=(b+1)*10;
  ans=-1;
  rep(i,R-L) if((R+i)*8/100==a) ans=R+i;
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   ans=-1;
      |   ^~~
      |   abs
Language: C++

#include <iostream>
using namespace std;
int main(){
  int A, B;
  cin>>A>>B;
  
  int oriA = ceil(A*12.5);
  int oriB = 10*B;
  if(oriA>oriB+9 || oriB>oriA+12){
  	cout<<-1;
  }else{
    int res = min(oriA,oriB);
    if(oriA >= oriB){
    	cout<< oriB;
    }else{
    	cout<<oriA;
    }
  }
  
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'ceil' was not declared in this scope
    7 |   int oriA = ceil(A*12.5);
      |              ^~~~
Language: C++

#include <iostream>

int main(){
  int A, B;
  cin>>A>>B;
  
  int oriA = ceil(A*12.5);
  int oriB = 10*B;
  if(oriA>oriB+9 || oriB>oriA+12){
  	cout<<-1;
  }else{
    int res = min(oriA,oriB);
    if(oriA >= oriB){
    	cout<< oriB;
    }else{
    	cout<<oriA;
    }
  }
  
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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:7:14: error: 'ceil' was not declared in this scope
    7 |   int oriA = ceil(A*12.5);
      |              ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout<<-1;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:15: error: 'min' was not declared in this scope; did you mean 'std::min'?
   12 |     int res = min(oriA,oriB);
      |               ^~~
      |               std::min
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:
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         cout<< oriB;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |         cout<<oriA;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++


int A, B;
int main() {
	scanf("%d%d",&A,&B);
	int i;
	for (i = 0; i <= 1250; i++) {
		if (floor(i * 0.08) == A && floor(i * 0.10) == B)break;
	}
	printf("%d", i == 1251 ? -1 : i);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%d%d",&A,&B);
      |         ^~~~~
a.cc:7:21: error: 'floor' was not declared in this scope
    7 |                 if (floor(i * 0.08) == A && floor(i * 0.10) == B)break;
      |                     ^~~~~
a.cc:9:9: error: 'printf' was not declared in this scope
    9 |         printf("%d", i == 1251 ? -1 : i);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 |
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<vector>
#include<functional>
#include<algorithm>
#include<stdlib.h>
#include<string.h>
#include<set>
using namespace std;
typedef long long ll;
#define rep(i,a,b) for(int i=a;i<b;i++)
int A, B;
int main() {
	scanf("%d%d",&A,&B);
	int c = max(ceil(A * 100 / 8), ceil(B * 10));
	if (c * 8 / 100 != A || c / 10 != B)c = -1;
	printf("%d", c);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: 'ceil' was not declared in this scope
   15 |         int c = max(ceil(A * 100 / 8), ceil(B * 10));
      |                     ^~~~
Language: C++

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

int main() {
  int a, b;
  cin >> a >> b;
  rep(i,10000) {
    int za = i * 0.08;
    int zb = i * 0.1;
    if(za = a || zb = b) {
      cout << i << endl;
      return 0;
    }
  }
  cout << -1 << endl;
}



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

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

int main() {
  int a, b;
  cin >> a >> b;
  rep(price,10000) {
    int za = i * 0.08;
    int zb = i * 0.1;
    if(za = a || zb =b) {
      cout << i << endl;
      return 0;
    }
  }
  cout << -1 << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'i' was not declared in this scope
   10 |     int za = i * 0.08;
      |              ^
a.cc:12:15: error: lvalue required as left operand of assignment
   12 |     if(za = a || zb =b) {
      |             ~~^~~~~
Language: C++

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

int main() {
  int A, B;
  cin >> A >> B;
  for(int n=0;n<10001;n++){
    int za = n*8/100;
    int za = 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:9:9: error: redeclaration of 'int za'
    9 |     int za = n*10/100;
      |         ^~
a.cc:8:9: note: 'int za' previously declared here
    8 |     int za = n*8/100;
      |         ^~
a.cc:10:18: error: 'zb' was not declared in this scope; did you mean 'za'?
   10 |     if(A==za&&B==zb){
      |                  ^~
      |                  za
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: redeclaration of 'int za'
    9 |     int za = n*10/100;
      |         ^~
a.cc:8:9: note: 'int za' previously declared here
    8 |     int za = n*8/100;
      |         ^~
a.cc:10:18: error: 'zb' was not declared in this scope; did you mean 'za'?
   10 |     if(A==za&&B==zb){
      |                  ^~
      |                  za
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  long long a,b;
  long long n;
  cin>>a>>b;
  long long tnp= (a*100)/8;
  long long tnp2 = (b*10);
  if(abs(tnp-tnp2)<=10)
  { long long s = max(tnp,tnp2);
   long long t = min(tnp,tnp2);
   if(s*(0.08)==a&&s*(0.1)==b)
cout<<s<<endl;
   else
     cout<<t<<endl;
  
  else
    cout<<"-1"<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:3: error: expected '}' before 'else'
   18 |   else
      |   ^~~~
a.cc:11:3: note: to match this '{'
   11 |   { long long s = max(tnp,tnp2);
      |   ^
Language: C++

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


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


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


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


int main(){
	
	//#ifndef ONLINE_JUDGE
	//freopen("input.txt","r",stdin);
	//freopen("output.txt","w",stdout);
	//#endif
	ios::sync_with_stdio(false);
    cin.tie(nullptr);
    // cout.precision(10);
    // cout << fixed;

	ll a,b;
	cin>>a>>b;
	cout<<a/(0.08)


	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:23: error: expected ';' before '}' token
   23 |         cout<<a/(0.08)
      |                       ^
      |                       ;
......
   27 | }
      | ~
Language: C++

#include<bits/stdc++.h>
#define int long long
#define ld long double
#define endl '\n'
const int mod=1e9+7;
const int inf=1e17+10;
#define F first
#define S second
#define pb push_back
#define all(x) x.begin(),x.end()
#define si(a) a.size()
#define pii pair<int,int>
using namespace std;
#if !defined(ONLINE_JUDGE)
#include "debugging.h"
#endif



int32_t main() {
   std::ios::sync_with_stdio(false);cin.tie(NULL);
   int a,b;
   cin>>a>>b;
   for(int i=1;i<=1001;i++)
   {
	   ld x=i*0.08;
	   ld y=i*0.10;
	   x=(int)x;y=(int)y;
	   //if(i==100){cout<<x<<" "<<y<<endl;}
	   if(x==a && y==b)
	   {
		   cout<<i<<endl;return 0;
	   }
   }
   cout<<-1<<endl;
   return 0;
}


Compiler output:
a.cc:15:10: fatal error: debugging.h: No such file or directory
   15 | #include "debugging.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
  int a,b, price;
  cin >> a >> b;
  
  bool a = false;
  for (int i = 1; i < 1010; i++){
    if (a <= i * 0.08 && i * 0.08 < a + 1 && b <= i * 0.1  && i * 0.1 < b+1){
      price = i;
      a = true;
      break;
    }
  }
  if (a = true){
    cout << price << endl;
  }
  else {
    cout <<-1 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: conflicting declaration 'bool a'
    8 |   bool a = false;
      |        ^
a.cc:5:7: note: previous declaration as 'int a'
    5 |   int a,b, price;
      |       ^
Language: C++

typedef vector<int> vi;
typedef vector<ld> vd;
typedef vector<ll> vl;
typedef vector<pi> vpi;
typedef vector<pl> vpl;
typedef vector<cd> vcd;
 
template <class T> using Tree = tree<T, null_type, less<T>, rb_tree_tag,tree_order_statistics_node_update>;
 
#define FOR(i, a, b) for (int i=a; i<(b); i++)
#define F0R(i, a) for (int i=0; i<(a); i++)
#define FORd(i,a,b) for (int i = (b)-1; i >= a; i--)
#define F0Rd(i,a) for (int i = (a)-1; i >= 0; i--)
 
#define sz(x) (int)(x).size()
#define mp make_pair
#define pb push_back
#define f first
#define s second
#define lb lower_bound
#define ub upper_bound
#define all(x) x.begin(), x.end()
 
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
 
const int MOD = 1000000007;
const ll INF = 1e18;
const int MX = 100001; //check the limits, dummy
 
int main() {
	ios_base::sync_with_stdio(0); cin.tie(0);    
	
    int A, B; cin >> A >> B;
    FOR(i, 1, 10000) {
        if ((i * 8) / 100 == A && (i * 10) / 100 == B) {
            cout << i << endl; return 0;
        }
    }
    cout << -1 << endl;
	
	return 0;
}

Compiler output:
a.cc:1:9: error: 'vector' does not name a type
    1 | typedef vector<int> vi;
      |         ^~~~~~
a.cc:2:9: error: 'vector' does not name a type
    2 | typedef vector<ld> vd;
      |         ^~~~~~
a.cc:3:9: error: 'vector' does not name a type
    3 | typedef vector<ll> vl;
      |         ^~~~~~
a.cc:4:9: error: 'vector' does not name a type
    4 | typedef vector<pi> vpi;
      |         ^~~~~~
a.cc:5:9: error: 'vector' does not name a type
    5 | typedef vector<pl> vpl;
      |         ^~~~~~
a.cc:6:9: error: 'vector' does not name a type
    6 | typedef vector<cd> vcd;
      |         ^~~~~~
a.cc:8:33: error: 'tree' does not name a type
    8 | template <class T> using Tree = tree<T, null_type, less<T>, rb_tree_tag,tree_order_statistics_node_update>;
      |                                 ^~~~
a.cc:24:1: error: 'mt19937' does not name a type
   24 | mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
      | ^~~~~~~
a.cc:27:7: error: 'll' does not name a type; did you mean 'all'?
   27 | const ll INF = 1e18;
      |       ^~
      |       all
a.cc: In function 'int main()':
a.cc:31:9: error: 'ios_base' has not been declared
   31 |         ios_base::sync_with_stdio(0); cin.tie(0);
      |         ^~~~~~~~
a.cc:31:39: error: 'cin' was not declared in this scope
   31 |         ios_base::sync_with_stdio(0); cin.tie(0);
      |                                       ^~~
a.cc:36:13: error: 'cout' was not declared in this scope
   36 |             cout << i << endl; return 0;
      |             ^~~~
a.cc:36:26: error: 'endl' was not declared in this scope
   36 |             cout << i << endl; return 0;
      |                          ^~~~
a.cc:39:5: error: 'cout' was not declared in this scope
   39 |     cout << -1 << endl;
      |     ^~~~
a.cc:39:19: error: 'endl' was not declared in this scope
   39 |     cout << -1 << endl;
      |                   ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<int(n);i++)
#define rep1(i,n) for(int i=1;i<=int(n);i++)
#define per(i,n) for(int i=int(n)-1;i>=0;i--)
#define per1(i,n) for(int i=int(n);i>0;i--)
#define foreach(i,n) for(auto &&i:n)
#define all(x) (x).begin(),(x).end()
#define SORT(x) sort(all(x))
#define GSORT(x) sort(all(x), greater<int>())
#define REV(x) reverse(all(x))
#define MAX(x) *max_element(all(x))
#define MIN(x) *min_element(all(x))
#define LOWitr(x, n) lower_bound(all(x), n)
#define UPRitr(x, n) upper_bound(all(x), n)
#define cii(x) int x;cin >> x
#define cill(x) int64 x;cin >> x
#define cis(x) string x;cin >> x
#define co(x) cout << x << endl
#define dump(x)  cout << #x << " = " << (x) << endl
#define truecheck assert
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define fastcin() cin.tie(0);ios::sync_with_stdio(false)
using namespace std;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef long long int64;
template<class T,class U>bool chmax(T &a, const U &b) { if (a<b) { a=b; return true; } return false; }
template<class T,class U>bool chmin(T &a, const U &b) { if (b<a) { a=b; return true; } return false; }
const int INF = 1e9, MOD = 1e9 + 7;
const LL LLINF = 1e16;

int main() {
    fastcin();
    cout << fixed << setprecision(10);
    cii(a);
    cii(b);
    int emin = (a%2==0)?a * 12.5:a * 12.5 + 0.5;
    int emax = (a%2==0)?(a+1) * 12.5:(a+1) * 12.5 - 1;
    int tmin = b * 10;
    int tmax = tmin + 9;

    auto ans = (max(emin, tmin) <= min(emax, tmax)?max(emin, tmin):-1;

    co(ans);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:48:70: error: expected ')' before ';' token
   48 |     auto ans = (max(emin, tmin) <= min(emax, tmax)?max(emin, tmin):-1;
      |                ~                                                     ^
      |                                                                      )
Language: C++


#include <iostream>

using namespace std;

int main(){
    int A, B;
    cin >> A >> B;
    int c = A / 0.08;
    int d = B / 0.1;
    for(int i = 0;i <= 1251;i++){
        if(i == c %% i == d){
            cout  << i << endl; 
            break;
        }else if(i == 1251){
            cout  << "-1" << endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected primary-expression before '%' token
   12 |         if(i == c %% i == d){
      |                    ^
Language: C++


#include <iostream>

using namespace std;

int main(){
    int A, B;
    cin >> A >> B;
    int c = A / 0.08;
    int d = B / 0.1;
    for(int i = 0;i <= 1251;i++){
        if(i == c %% i == d){
            cout  << i << endl; 
            break;
        }else if(i == 1251){
            cout  << "-1" << emdl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected primary-expression before '%' token
   12 |         if(i == c %% i == d){
      |                    ^
a.cc:16:30: error: 'emdl' was not declared in this scope
   16 |             cout  << "-1" << emdl;
      |                              ^~~~
Language: C++

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

        
    }


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

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

        
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 'f' was not declared in this scope
   11 |        f ((i * 8) / 100 == a && (i * 10) / 100 == b) {
      |        ^
a.cc:20:6: error: expected '}' at end of input
   20 |     }
      |      ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b;
    cin >> a >> b;
    for(int i=0;i<10000;i++){
        if(a==int (i*0.08) && b==int(i*0.1)){
            cout << i;
            retrun 0;
        }
    }
    cout << -1;
}

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

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

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

  if(a%2 ==1){
     if((25*a)/2 + 1>=10*(b+1)||12.5*(a+1)=<10*b){
 		cout << -1 << endl;
 		}
    else{
      ans =max((25*a/2)+1,10*b);
    cout << ans << endl;
        }
  }
  else if(a%2 ==0){
     if(12.5*a>= 10*(b+1)|| 25*(a+1)/2+1=<10*b){
  cout << -1 << endl;
 }
    else {
  ans= max(25*a/2,10*b);
    cout << ans << endl;
    }
  }
 
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:44: error: expected primary-expression before '<' token
   10 |      if((25*a)/2 + 1>=10*(b+1)||12.5*(a+1)=<10*b){
      |                                            ^
a.cc:19:42: error: expected primary-expression before '<' token
   19 |      if(12.5*a>= 10*(b+1)|| 25*(a+1)/2+1=<10*b){
      |                                          ^
Language: C++

#include <bits/stdc++.h>
using namespace std ;
 
int main(){
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ll a,b ;
  cin >>a>>b ;
  float ans=0;
  while (ans < 1010){
    if(floor(ans*0.08)==a && floor(ans*0.10)==b) 
      break ;
   ans++; 
  }
 if(ans>1009) cout<<-1;
 else cout<<ans;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'll' was not declared in this scope
    7 |   ll a,b ;
      |   ^~
a.cc:8:9: error: 'a' was not declared in this scope
    8 |   cin >>a>>b ;
      |         ^
a.cc:8:12: error: 'b' was not declared in this scope
    8 |   cin >>a>>b ;
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e5+10 , OO = 0x3f3f3f3f;

#define clr(arr,val) memset(arr , val , sizeof (arr))
#define loop(i,n) for(int i = 0;i < int(n);i++)
#define rloop(i,n) for(int i = int(n)-1;i >= 0;i--)
#define xloop(i,a,b) for(int i = int(a);i <= int(b);i++)
#define range(vec) for(auto &x : vec) cin >> x;
#define ALL(v) ((v).begin()) , ((v).end())
#define SZ(v)  ((int)((v).size()))
int dx[]={1,0,-1,0};int dy[]={0,1,0,-1}; //4 Direction
//int dx[]={1,1,0,-1,-1,-1,0,1};int dy[]={0,1,1,1,0,-1,-1,-1};//8 direction
//int dx[]={2,1,-1,-2,-2,-1,1,2};int dy[]={1,2,2,1,-1,-2,-2,-1};//Knight Direction
//int dx[6]={2,1,-1,-2,-1,1};int dy[6]={0,1,1,0,-1,-1}; //Hexagonal Direction
//freopen("input.txt", "r", stdin);
//freopen("output.txt", "w", stdout);

int x , y;

int main()
{

    #ifndef ONLINE_JUDGE
        //freopen("in.in", "r", stdin);
        //freopen("out.in", "w", stdout);
    #endif
	ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);



    cin >> x >> y;
    xloop(i, 1, 10000) {
        if ((i * 8) / 100 == x && (i * 10) / 100 == y)
            return cout << i << "\n" ,  return 0;
    }
    cout << -1 << endl;



    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:41: error: expected primary-expression before 'return'
   36 |             return cout << i << "\n" ,  return 0;
      |                                         ^~~~~~
a.cc:36:39: error: expected ';' before 'return'
   36 |             return cout << i << "\n" ,  return 0;
      |                                       ^ ~~~~~~
      |                                       ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e5+10 , OO = 0x3f3f3f3f;

#define clr(arr,val) memset(arr , val , sizeof (arr))
#define loop(i,n) for(int i = 0;i < int(n);i++)
#define rloop(i,n) for(int i = int(n)-1;i >= 0;i--)
#define xloop(i,a,b) for(int i = int(a);i <= int(b);i++)
#define range(vec) for(auto &x : vec) cin >> x;
#define ALL(v) ((v).begin()) , ((v).end())
#define SZ(v)  ((int)((v).size()))
int dx[]={1,0,-1,0};int dy[]={0,1,0,-1}; //4 Direction
//int dx[]={1,1,0,-1,-1,-1,0,1};int dy[]={0,1,1,1,0,-1,-1,-1};//8 direction
//int dx[]={2,1,-1,-2,-2,-1,1,2};int dy[]={1,2,2,1,-1,-2,-2,-1};//Knight Direction
//int dx[6]={2,1,-1,-2,-1,1};int dy[6]={0,1,1,0,-1,-1}; //Hexagonal Direction
//freopen("input.txt", "r", stdin);
//freopen("output.txt", "w", stdout);

int x , y;

int main()
{

    #ifndef ONLINE_JUDGE
        //freopen("in.in", "r", stdin);
        //freopen("out.in", "w", stdout);
    #endif
	ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);



    cin >> x >> y;
    xloop(i, 1, 10000) {
        if ((i * 8) / 100 == A && (i * 10) / 100 == B)
            cout << i << endl; return 0;
    }
    cout << -1 << endl;



    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:30: error: 'A' was not declared in this scope
   35 |         if ((i * 8) / 100 == A && (i * 10) / 100 == B)
      |                              ^
a.cc:35:53: error: 'B' was not declared in this scope
   35 |         if ((i * 8) / 100 == A && (i * 10) / 100 == B)
      |                                                     ^
Language: C++

#include<iostream>
#include<string>

using namespace std;


int main() {


	int a, b,ans;

	cin >> a >> b;

	int x = ceil(a / 0.08);

	while (true) {

		if (x >= ceil((a + 1 )/ 0.08)) {
			ans = -1;
			break;
		}

		if (x >= ceil(b / 0.10) && x < ceil((b + 1) / 0.10)) {
			ans = x;
			break;
		}

		x = x + 1;

	}

	cout << ans << endl;

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'ceil' was not declared in this scope
   14 |         int x = ceil(a / 0.08);
      |                 ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ')' before ';' token
    8 |   if(int i=0;i<=1000;i++){
      |     ~               ^
      |                     )
a.cc:8:22: error: 'i' was not declared in this scope
    8 |   if(int i=0;i<=1000;i++){
      |                      ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ')' before ';' token
    8 |   if(int i=0;i<=1000;i++){
      |     ~               ^
      |                     )
a.cc:8:22: error: 'i' was not declared in this scope
    8 |   if(int i=0;i<=1000;i++){
      |                      ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ')' before ';' token
    8 |   if(int i=0;i<1000;i++){
      |     ~              ^
      |                    )
a.cc:8:21: error: 'i' was not declared in this scope
    8 |   if(int i=0;i<1000;i++){
      |                     ^
Language: C++

#include <stdio.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>a>>b;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:23:13: error: 'cout' was not declared in this scope
   23 |             cout<<out<<endl;
      |             ^~~~
a.cc:23:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:24: error: 'endl' was not declared in this scope
   23 |             cout<<out<<endl;
      |                        ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:25:13: error: 'cout' was not declared in this scope
   25 |             cout<<"-1"<<endl;
      |             ^~~~
a.cc:25:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:25:25: error: 'endl' was not declared in this scope
   25 |             cout<<"-1"<<endl;
      |                         ^~~~
a.cc:25:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <cmath>
 
using namespace std;
 
int main() {
    float x, y, a=0;
    cin >> x >> y;
    while( a <= 1000 ){
        a++;
        if( floor(a * 0.08) == x && floor(a * 0.1) == y ){
            cout << a;
            return 0;
        }
    }
    cout << -1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> x >> y;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cmath>
  +++ |+#include <iostream>
    2 | 
a.cc:11:13: error: 'cout' was not declared in this scope
   11 |             cout << a;
      |             ^~~~
a.cc:11:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << -1;
      |     ^~~~
a.cc:15:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
#include <math.h>

int main(){

    double a, b;
    cin >> a >> b;

    int a_max = (a + 1) / 0.08;
    int a_min = ceil(a / 0.08);

    for(int i = a_min; i < a_max; i++){
        if(int(i*0.1) == b){
            cout << i << endl;
            return 0;
        }
    }

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     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:14:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |             cout << i << 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:14:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |             cout << i << 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:19:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |     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:19:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |     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<stdio.h>

int main(void){
	int A,B,C1,C2,D1,D2,E1,E2,i,j,ans;
	double F2,G2;
	scanf("%d%d",&A,&B);
	C1=A*100/8;
	C2=(A+1)*100/8;
	F2=(A+1)*100/8;
	D1=B*100/10;
	D2=(B+1)*100/10;
	G2=(B+1)*100/10;
	if(F2%1.0!=0)C2++;
	if(G2%1.0!=0)D2++;
	printf("%d %d %d %d\n",D1,D2,C1,C2);
	if(C1<D1){
		E1=C1;
		E2=C2;
		C1=D1;
		C2=D2;
		D1=E1;
		D2=E2;
	}
	printf("%d %d %d %d\n",D1,D2,C1,C2);
	for(i=D1;i<D2;i++){
		for(j=C1;j<C2;j++){
			if(i==j){
				ans=i;
				j=C2;
				i=D2;
			}
		}
	}
	if(i==D2){
		ans=-1;
	}
	printf("%d\n",ans);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:14: error: invalid operands to binary % (have 'double' and 'double')
   13 |         if(F2%1.0!=0)C2++;
      |              ^
main.c:14:14: error: invalid operands to binary % (have 'double' and 'double')
   14 |         if(G2%1.0!=0)D2++;
      |              ^
Language: C

#include<stdio.h>

int main(void){
	int A,B,C1,C2,D1,D2,E1,E2,i,j,ans;
	double F2,G2;
	scanf("%d%d",&A,&B);
	C1=A*100/8;
	C2=(A+1)*100/8;
	F2=(A+1)*100/8;
	D1=B*100/10;
	D2=(B+1)*100/10;
	G2=(B+1)*100/10;
	if(F%1.0!=0)C2++;
	if(G%1.0!=0)D2++;
	printf("%d %d %d %d\n",D1,D2,C1,C2);
	if(C1<D1){
		E1=C1;
		E2=C2;
		C1=D1;
		C2=D2;
		D1=E1;
		D2=E2;
	}
	printf("%d %d %d %d\n",D1,D2,C1,C2);
	for(i=D1;i<D2;i++){
		for(j=C1;j<C2;j++){
			if(i==j){
				ans=i;
				j=C2;
				i=D2;
			}
		}
	}
	if(i==D2){
		ans=-1;
	}
	printf("%d\n",ans);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:12: error: 'F' undeclared (first use in this function); did you mean 'F2'?
   13 |         if(F%1.0!=0)C2++;
      |            ^
      |            F2
main.c:13:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:12: error: 'G' undeclared (first use in this function); did you mean 'G2'?
   14 |         if(G%1.0!=0)D2++;
      |            ^
      |            G2
Language: C++

  #include <bits/stdc++.h>

using namespace std;

int main(void) {
  int A;cin>>A;
  int B;cin>>B;
  for(int i=0;i<10000){
    if(int(i*0.08)==A&&int(i*0.10)==B){
      cout<<i<<endl;
      return 0;
      }
    }
  cout<<-1<<endl;
    return 0;
}
 


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before ')' token
    8 |   for(int i=0;i<10000){
      |                      ^
      |                      ;
Language: C++

import sys
import math
import numpy

a,b=map(int,input().split())
c=100*a+100*b
list=numpy.arange(int(c-100), int(c+100))
for X in list:
    if(math.floor(8*X)+math.floor(10*X)==c):
        print(X)
        sys.exit(0)

print(-1)



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

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
 
int main(){
  int a, b, c, d, e, out;
  c = 1000
  cin >> a >> b;
  for(int i=0; i<c; i++){
  	d = 100*a / 8;
  	e = 100*b / 10;
  	if(i == d && i == e){
      cout << i <<endl;
      return 0;
  }
  }
  cout << -1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before 'cin'
    8 |   c = 1000
      |           ^
      |           ;
    9 |   cin >> a >> b;
      |   ~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
 
int main(){
  int a, b, c, d, e, out;
  cin >> a >> b;
  for(int i=0; i<c; i++){
  	d = 100*a / 8;
  	e = 100*b / 10;
  	if(c == d && c == e){
      cout << c <<endl;
      return 0;
  }
  cout << -1 << endl;
}

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

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: lvalue required as increment operand
   10 |   for (int i = 0; i <= 1000; 1++)
      |                              ^
Language: C++

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

int main()
{
   long long a,b,c,d,ans1=1251,ans2=1251,ans3=1251,ans=1;
   cin>>a>>b;
   
   c = floor(a*25/2);
   d = b *10;
   e = ceil(a*25/2);
   
   if(floor(c*0.1)==b){
   	ans1 = c;
   }else if(floor(d*0.08)==a){
   	ans2 = d;
   }else if(floor(e*0.1)==b){
    ans3 = e; 
   }else{
   	ans=-1;
   }
  
   if(ans==-1)
   cout<<ans<<endl;
   else{
     ans = min(min(ans1,ans2),ans3);
     cout<<ans<<endl;
   }
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:4: error: 'e' was not declared in this scope
   11 |    e = ceil(a*25/2);
      |    ^
Language: C++

import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int tax1 = sc.nextInt();
        int tax2 = sc.nextInt();
        double tmp1 = -1;
        double tmp2 = 0;
        int counter = -1;
        for(int i = 1;i < 1000;i++){
            tmp1 = i * 0.08;
            tmp1 = Math.floor(tmp1);
            //System.out.println(tmp1);
            tmp2 = i * 0.1;
            tmp2 = Math.floor(tmp2);
            if(tmp1 == tax1 && tmp2 == tax2){
                System.out.println(i);
                counter++;
                break;
            }
        }
        if(counter == -1){
            System.out.println(counter);
        }
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:11: error: expected ':' before 'static'
    3 |     public static void main(String[] args){
      |           ^~~~~~~
      |           :
a.cc:3:29: error: 'String' has not been declared
    3 |     public static void main(String[] args){
      |                             ^~~~~~
a.cc:3:38: error: expected ',' or '...' before 'args'
    3 |     public static void main(String[] args){
      |                                      ^~~~
a.cc:26:2: error: expected ';' after class definition
   26 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:4:9: error: 'Scanner' was not declared in this scope
    4 |         Scanner sc = new Scanner(System.in);
      |         ^~~~~~~
a.cc:5:20: error: 'sc' was not declared in this scope
    5 |         int tax1 = sc.nextInt();
      |                    ^~
a.cc:12:20: error: 'Math' was not declared in this scope
   12 |             tmp1 = Math.floor(tmp1);
      |                    ^~~~
a.cc:17:17: error: 'System' was not declared in this scope
   17 |                 System.out.println(i);
      |                 ^~~~~~
a.cc:23:13: error: 'System' was not declared in this scope
   23 |             System.out.println(counter);
      |             ^~~~~~
Language: Java

import java.util.Scanner;

public class Main {

    static Scanner sc = new Scanner(System.in);
    static double taxRateA = 0.08；
    static double taxRateB = 0.1;

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

        int priceLowerBoundA = (int) Math.ceil(a / taxRateA);
        int priceUpperBoundA = priceLowerBoundA + (int)(1 / taxRateA);
        int priceLowerBoundB = (int) Math.ceil(b / taxRateB);
        int priceUpperBoundB = priceLowerBoundB + (int)(1 / taxRateB);

        int lb = Math.max(priceLowerBoundA, priceLowerBoundB);
        int ub = Math.min(priceUpperBoundA, priceUpperBoundB);

        if(lb > ub) System.out.println(-1);
        else System.out.println(lb);
    }
}

Compiler output:
Main.java:6: error: illegal character: '\uff1b'
    static double taxRateA = 0.08?
                                 ^
1 error
Language: C++

#include <iostream>
#include <utility>

struct Range {
    Range(size_t min, size_t max) : valid(min <= max), min(min), max(max) {}
    bool valid;


Compiler output:
a.cc:6:16: error: expected '}' at end of input
    6 |     bool valid;
      |                ^
a.cc:4:14: note: to match this '{'
    4 | struct Range {
      |              ^
a.cc: In constructor 'Range::Range(size_t, size_t)':
a.cc:5:56: error: class 'Range' does not have any field named 'min'
    5 |     Range(size_t min, size_t max) : valid(min <= max), min(min), max(max) {}
      |                                                        ^~~
a.cc:5:66: error: class 'Range' does not have any field named 'max'
    5 |     Range(size_t min, size_t max) : valid(min <= max), min(min), max(max) {}
      |                                                                  ^~~
a.cc: At global scope:
a.cc:6:16: error: expected unqualified-id at end of input
    6 |     bool valid;
      |                ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main() {
    ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
	int a,b;
  cin>>a>>b;
  int n1=ceil((a*100.0)/8.0));
  int n2=ceil((b*100.0)/10.0));
  if(floor(n1*0.08)==a && floor(n1*0.1)==b)
    cout<<n1<<endl;
  else if(floor(n2*0.08)==a && floor(n2*0.1)==b)
    cout<<n2<<endl;
  else
    cout<<-1<<endl;
    return 0;
}






Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: expected ',' or ';' before ')' token
    9 |   int n1=ceil((a*100.0)/8.0));
      |                             ^
a.cc:10:30: error: expected ',' or ';' before ')' token
   10 |   int n2=ceil((b*100.0)/10.0));
      |                              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
#define pb push_back
#define fi first`
#define se second
const int N = 1e5 + 500;
void solve()
{
 ll a, b;
    cin >> a >> b;
    ll l=0,r=1e12,mid,ans=-1;
    while(l<=r)
    {
    	mid=l+r>>1;
    	if(floor(mid*0.08)>=a and floor(mid*.1)>=b)
    	{
    		ans=mid;
    		r=mid-1;
    	}
    	else
    		l=mid+1;
    }
    if(ans!=-1)
    {
    	if(floor(ans*0.08)!=a or floor(ans*.1)!=b)
    		ans=-1;

    }
    while()
    cout<<ans;
}

int main()
{



    // ios_base::sync_with_stdio(false);
    // cin.tie(NULL);
    int t = 1;
    // cin >> t;
    while(t--)
    {
        solve();
        // cout << endl;
    }

}




Compiler output:
a.cc: In function 'void solve()':
a.cc:31:11: error: expected primary-expression before ')' token
   31 |     while()
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  bool x=true;
  int ans=0;
  while(x && ans<1010){
    if (floor(ans*0.08)==a && floor(ans*0.1)==b){
      cout << ans << endl;
      return 0;
    }
    ans++;
  }

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