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

#include <cstdio>
#include <algorithm>

using namespace std;

long long N, A, B;

int main()
{
    scanf("%lld%lld%lld", &N, &A, &B);
    if (A == 0) printf("0\n");
    else if (B == 0) printf("%d\n", N);
    else
    {
        long long sets = N / (A + B);
        printf("%lld\n", sets * A + min(N % (A + B)), A));
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:40: error: no matching function for call to 'min(long long int)'
   16 |         printf("%lld\n", sets * A + min(N % (A + B)), A));
      |                                     ~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/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, 1 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:   template argument deduction/substitution failed:
a.cc:16:40: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   16 |         printf("%lld\n", sets * A + min(N % (A + B)), A));
      |                                     ~~~^~~~~~~~~~~~~
/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:   candidate expects 2 arguments, 1 provided
Language: C++

#include <iostream>
using namespace std;

int main(){
    int N, A, B;
    cin >> N >> A >> B;
    if (N % (A+B) >= A) {
        cout << N * A / (A+B) + A;
    } else {
        cout << N * A / (A+B) + N % (A+B);
    }

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

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


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

/* vector<int> A(N); 
    vector<pair<int, int> > tasks; ＃ソートした場合、１つ目でソート
　tie(b, a) = p.at(i); #pairを分割
    tasks.emplace_back(b, a)  ＃配列tasksの最後に(b,a)を追加
　xの二乗:  pow(x, 2.0) 
    小さい順: sort(v.begin(), v.end());
    大きい順: reverse(v.begin(), v.end());
    int: -2,147,483,648 ～ 2,147,483,647
    ll: -9,223,372,036,854,775,808 ~ 9,223,372,036,854,775,807
    // int型の2次元配列(3×4要素の)の宣言
    vector<vector<int>> data(3, vector<int>(4));
*/
 
int main() {
  
  ll N, A, B, a, b, c, d,e. count=0, ans=0;
  cin >> N >> A >> B;
  c= N/(A+B);
  d=c*A;
  e= N-c*(A+B);
  if (e>=A) d+=A;
  else d+=e;
  
  
  cout << d << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:27: error: expected initializer before '.' token
   23 |   ll N, A, B, a, b, c, d,e. count=0, ans=0;
      |                           ^
a.cc:27:3: error: 'e' was not declared in this scope
   27 |   e= N-c*(A+B);
      |   ^
Language: C++

#include<bits/stdc++.h>
#define int long long
using namespace std;
int a,b,n,ans;
signeds main()
{
	scanf("%lld%lld%lld",&n,&a,&b);
	ans=n/(a+b)*a,n%=a+b,ans+=min(a,n);
	cout<<ans;
	return 0;
}


Compiler output:
a.cc:5:1: error: 'signeds' does not name a type; did you mean 'signed'?
    5 | signeds main()
      | ^~~~~~~
      | signed
Language: C++

int b()
{
    long long n, a, b = 0;
    std::cin >> n >> a >> b;
    
    long long it = n / (a + b);
    long long rem = n % (a + b);
    
    it *= a;
    if(a < rem)
    {
        rem = a;
    }
    
    std::cout << it + rem ;
    return 0;
}

int main(int argc, const char * argv[])
{
    b();
    return 0;
}

Compiler output:
a.cc: In function 'int b()':
a.cc:4:10: error: 'cin' is not a member of 'std'
    4 |     std::cin >> n >> a >> b;
      |          ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int b()
a.cc:15:10: error: 'cout' is not a member of 'std'
   15 |     std::cout << it + rem ;
      |          ^~~~
a.cc:15:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int a,b,c;
  cin >> a >> b >> c;
  int x,y,answer;
  x = a/(b+c);
  x = x*b;
  y = a%(b+c);
  if(y>b)
    y = b;
  
  answer = x+y
  if(b ==0)
    answer = 0;
  cout << answer << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: expected ';' before 'if'
   14 |   answer = x+y
      |               ^
      |               ;
   15 |   if(b ==0)
      |   ~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int a,b,c;
  cin >> a >> b >> c;
  int x,y,answer;
  x = a/(b+c);
  x = x*b;
  y = a%(b+c);
  if(y>b)
    y = b;
  
  answer = x+y
  if(b ==0)
    answer = 0;
  count << answer << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: expected ';' before 'if'
   14 |   answer = x+y
      |               ^
      |               ;
   15 |   if(b ==0)
      |   ~~           
a.cc:17:9: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
   17 |   count << answer << endl;
      |   ~~~~~~^~~~~~~~~
Language: C++

n,a,b=map(int,input().split())
xx=min(a,b)
if xx==0:
    if a==0:
        print(0)
    else:
        print(n)
    exit()
yy=n//xx
baaki=n-(yy*xx)
# print(baaki)
baaki-=(max(a,b)-xx)
# print(baaki,yy)
print(((yy-1)*a)+baaki)

Compiler output:
a.cc:11:3: error: invalid preprocessing directive #print
   11 | # print(baaki)
      |   ^~~~~
a.cc:13:3: error: invalid preprocessing directive #print
   13 | # print(baaki,yy)
      |   ^~~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n,a,b=map(int,input().split())
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){
 	long long n,b,c,ans=0;
  	cin>>n>>b>>r;
  	ans+=(n/(b+r))*b;
  	n%=(b+r);
  	if(n>b) ans+=b;
  	else ans+=n;
  	cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: 'r' was not declared in this scope
    5 |         cin>>n>>b>>r;
      |                    ^
Language: C++

//#include <bits/stdc++.h>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <math.h>
using namespace std;
typedef long long ll;
const double EPS = 1e-9;
typedef vector<int> vint;
typedef pair<int, int> pint;
#define inf 1e+9
#define rep(i, n) REP(i, 0, n)
#define all(v) v.begin(), v.end()
#define msg(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for(int i = x; i < n; i++)
#define pri(a) cout << a << endl;

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

  ll n,a,b,ans=0;
  cin >> n >> a >> b;

  if(n%(a+b)<=a){
      pri(n/(a+b)*a+n%(a+b));
  }
  else{
    pri(n/(a+b)*a+a;
  }

}


Compiler output:
a.cc:33:2: error: unterminated argument list invoking macro "pri"
   33 | }
      |  ^
a.cc: In function 'int main()':
a.cc:30:5: error: 'pri' was not declared in this scope
   30 |     pri(n/(a+b)*a+a;
      |     ^~~
a.cc:30:8: error: expected '}' at end of input
   30 |     pri(n/(a+b)*a+a;
      |        ^
a.cc:29:7: note: to match this '{'
   29 |   else{
      |       ^
a.cc:30:8: error: expected '}' at end of input
   30 |     pri(n/(a+b)*a+a;
      |        ^
a.cc:19:11: note: to match this '{'
   19 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int a,b,c;
  cin >> a >> b >> c;
  int x,y;
  x = a/(b+c);
  x = x*b;
  y = a%(b+c);
  if(y>b)
    y = b;
  count << (x+y) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
   13 |   count << (x+y) << endl;
      |   ~~~~~~^~~~~~~~
Language: C++

/*
我的心脏怦怦跳，监管者就在附近
name:
Algorithm:
writer:Lxs(cdx)
place:
nothing is impossible
*/
#pragma GCC optimize(3,"Ofast","inline")
#include<bits/stdc++.h>
#include<string>
#include<iostream>
#include<cmath>
#include<set>
#include<stack>
#include<queue>
#include<unistd.h>
#include<stdio.h>
#include<cstring>
#define random(a,b) (rand()%(b-a+1)+a)
using namespace std;
bool prime(int x){
	 int i;
	 if(x<2) return 0;
	 for(i=2;i*i<=x;i++){
		if(x%i==0){return 0;}
	 }
	 return 1;
}
int main()
{
	int a,b,c;
	cin>>a>>b>>c;
	cout<<b<<endl;
	return 0;
}
/*
我的心脏怦怦跳，监管者就在附近
name:
Algorithm:
writer:Lxs(cdx)
place:
nothing is impossible
*/
#pragma GCC optimize(3,"Ofast","inline")
#include<bits/stdc++.h>
#include<string>
#include<iostream>
#include<cmath>
#include<set>
#include<stack>
#include<queue>
#include<unistd.h>
#include<stdio.h>
#include<cstring>
#define random(a,b) (rand()%(b-a+1)+a)
using namespace std;
bool prime(int x){
	 int i;
	 if(x<2) return 0;
	 for(i=2;i*i<=x;i++){
		if(x%i==0){return 0;}
	 }
	 return 1;
}
int main()
{
	int a,b,c;
	cin>>a>>b>>c;
	cout<<b<<endl;
	return 0;
}


Compiler output:
a.cc:58:6: error: redefinition of 'bool prime(int)'
   58 | bool prime(int x){
      |      ^~~~~
a.cc:22:6: note: 'bool prime(int)' previously defined here
   22 | bool prime(int x){
      |      ^~~~~
a.cc:66:5: error: redefinition of 'int main()'
   66 | int main()
      |     ^~~~
a.cc:30:5: note: 'int main()' previously defined here
   30 | int main()
      |     ^~~~
Language: C++

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

#define int long long
#define ffor(i,n) for(int i = 0;i < (n); ++i)
#define all(v) v.begin(),v.end()
#define vi vector<int>
#define vvi vector<vi>
#define pii pair<int,int>
#define vpii vector<pii>
#define ff first
#define ss second


signed main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
    int n,a,b;
    cin >> n >> a >> b;
    int ans = 0;
    int x = (n/(a + b));
    ans += (a*x);
    x = (n%(a + b));
    x = min(x,a)
    ans += (x);
    cout << ans;
}		

Compiler output:
a.cc: In function 'int main()':
a.cc:26:17: error: expected ';' before 'ans'
   26 |     x = min(x,a)
      |                 ^
      |                 ;
   27 |     ans += (x);
      |     ~~~
Language: C++

//#include <bits/stdc++.h>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <math.h>
using namespace std;
typedef long long ll;
const double EPS = 1e-9;
typedef vector<int> vint;
typedef pair<int, int> pint;
#define inf 1e+9
#define rep(i, n) REP(i, 0, n)
#define all(v) v.begin(), v.end()
#define msg(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for(int i = x; i < n; i++)
#define pri(a) cout << a << endl;

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

  ll n,a,b,ans=0;
  cin >> n >> a >> b;

  if(){

  }

  if(n%(a+b)<=a){
      pri(n/(a+b)*a+n%(a+b));
  }
  else{
    pri(n/(a+b)*a+a;
  }

}

Compiler output:
a.cc:37:2: error: unterminated argument list invoking macro "pri"
   37 | }
      |  ^
a.cc: In function 'int main()':
a.cc:26:6: error: expected primary-expression before ')' token
   26 |   if(){
      |      ^
a.cc:34:5: error: 'pri' was not declared in this scope
   34 |     pri(n/(a+b)*a+a;
      |     ^~~
a.cc:34:8: error: expected '}' at end of input
   34 |     pri(n/(a+b)*a+a;
      |        ^
a.cc:33:7: note: to match this '{'
   33 |   else{
      |       ^
a.cc:34:8: error: expected '}' at end of input
   34 |     pri(n/(a+b)*a+a;
      |        ^
a.cc:19:11: note: to match this '{'
   19 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
#define REPi(n) for(int i=0;i<n;i++)
#define REPj(n) for(int j=0;j<n;j++)

using namespace std;

int main(){
    long n,a,b,ans;
    cin >> n >> a >> b;
    long temp=n%(a+b);
    ans=a*(n/(a+b));
    if(temp>=a){
        temp=a;
    }
    ans+=temp;


    
    cout << ans << endl;
    

Compiler output:
a.cc: In function 'int main()':
a.cc:19:25: error: expected '}' at end of input
   19 |     cout << ans << endl;
      |                         ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define SPEED ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define ll unsigned long long
#define ld long double
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define eb emplace_back
const int mod = 1e9 + 7;
int main()
{
	SPEED
	ll n, a, b;
	cin >> n >> a >> b;

	if (n%(a+b)==0)
	{
		int t = n/(a+b);
		cout << t*a;
	}
	else
	{
		int t = n/(a+b);
		int res = n%(a+b);

		int ans = 0;
		ans += t*a;

		ans += min(res, a);

		cout << ans;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:27: error: no matching function for call to 'min(int&, long long unsigned int&)'
   31 |                 ans += min(res, a);
      |                        ~~~^~~~~~~~
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:31:27: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long unsigned int')
   31 |                 ans += min(res, a);
      |                        ~~~^~~~~~~~
/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:31:27: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   31 |                 ans += min(res, a);
      |                        ~~~^~~~~~~~
Language: C++

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


#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define RFOR(i, a, b) for (int i = (b)-1; i >= (a); i--)
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep1(i, n) for (int i = 1; i < (n); i++)
#define rrep(i, n) for (int i = (n)-1; i >= 0; i--)
#define all(i) (i).begin(), (i).end()
#define rall(i) (i).begin(), (i).end(), greater<int>()

#define int long long

#define elif else if
#define eb emplace_back
#define pb push_back
#define mp make_pair
#define fst first
#define sec second

#define mod 1000000007

template <typename T>
void print(T x)
{
	std::cout << x <<" " ;
}


template <typename T>
void println(T x)
{
	std::cout << x << "\n";
}



unsigned main(void){
	int n,a,b;
	cin >> n>>a>>b;
	int ans = n / (a + b)*a+ min(n % (a + b),b);
	print(ans);
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

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

int main(){
    ll n, a, b;
    cin >> n >> a >> b;
    ll x=a+b;
    ll sum = n / x*a;

    ll ama = n%x;
    if(ama>a){
        sum += a;
    }
    else{
        sum += ama;
    }
    cout << sum << endl;

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

int main(){
    ll n, a, b;
    cin >> n >> a >> b;
    ll x=a+b;
    ll sum = n / x*a;

    ll ama = n%x;
    if(ama>a){
        sum += a;
    }
    else{
        sum += ama;
    }
    cout << sum << endl;

    return 0;
}

Compiler output:
a.cc:23:2: error: stray '#' in program
   23 | }#include <bits/stdc++.h>
      |  ^
a.cc:23:3: error: 'include' does not name a type
   23 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:29:5: error: redefinition of 'int main()'
   29 | int main(){
      |     ^~~~
a.cc:7:5: note: 'int main()' previously defined here
    7 | int main(){
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i=0; i<(int)(n); i++)
#define REP1(i,a,b) for(int i=a; i<=(int)(b); i++)
#define ALL(x) begin(x),end(x)
#define PB push_back
using namespace std;
typedef int64_t LL;
typedef vector<int> VI;
typedef pair<int,int> PII;

template<class T> inline bool chmax( T &a, const T &b ) { return b>a ? a=b,true : false; }
template<class T> inline bool chmin( T &a, const T &b ) { return b<a ? a=b,true : false; }
template<class T> using MaxHeap = priority_queue<T>;
template<class T> using MinHeap = priority_queue<T, vector<T>, greater<T>>;
template<class T, class F=less<T>> void sort_uniq( vector<T> &v, F f=F() ) {
    sort(begin(v),end(v),f);
    v.resize(unique(begin(v),end(v))-begin(v));
}

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    
    LL n, a, b;
    cin >> n >> a >> b;

    cout << (n / (a+b) * a) + min((n % (a+b), a) << '\n';

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:57: error: expected ')' before ';' token
   27 |     cout << (n / (a+b) * a) + min((n % (a+b), a) << '\n';
      |                                  ~                      ^
      |                                                         )
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
	long long int a,b,c;
	cin>>a>>b>>c;
	int sum=a/(b+c)*b;
	int l=a%(b+c);
	sum+=min(l,b);
	cout<<sum;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: no matching function for call to 'min(int&, long long int&)'
    8 |         sum+=min(l,b);
      |              ~~~^~~~~
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:8:17: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
    8 |         sum+=min(l,b);
      |              ~~~^~~~~
/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:8:17: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    8 |         sum+=min(l,b);
      |              ~~~^~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;
int main() {
	int n, a, b;
	cin >> s >> a >> b;
	int ans = 0;
	if (a + b > n) {
		if (n - a >= 0) ans = n-a;
		else ans = 0;
	}
	if (a + b < n) {
		ans = b;
	}
	cout << ans;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 's' was not declared in this scope
    8 |         cin >> s >> a >> b;
      |                ^
Language: C++

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

#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define IOS ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
#define int long long
int a, b, n, ans;

int main() {
	cin >> n >> a >> b;
	if(a + b == 0) return cout << 0, 0;
	ans = n / (a + b);
	ans *= a;
	n %= (a + b);
	n = min(n, a);
	ans += n;
	cout << ans;
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

//Author: AnandRaj doubleux
#include <bits/stdc++.h>
using namespace std;

int main()
{
	ll n,a,b;
	cin>>n>>a>>b;
	cout<<n/(a+b)+min(a,n%(a+b))<<endl;;
}		

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'll' was not declared in this scope
    7 |         ll n,a,b;
      |         ^~
a.cc:8:14: error: 'n' was not declared in this scope; did you mean 'yn'?
    8 |         cin>>n>>a>>b;
      |              ^
      |              yn
a.cc:8:17: error: 'a' was not declared in this scope
    8 |         cin>>n>>a>>b;
      |                 ^
a.cc:8:20: error: 'b' was not declared in this scope
    8 |         cin>>n>>a>>b;
      |                    ^
Language: C++

#pragma region template
#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
/*
const long long MOD = 1e9 + 7, MAX = 1e18, larg = 1e5, INF = -1e9;
long long max_value = INF, max_index = -1;
long long min_value = MAX, min_index = -1;*/
long long A, B, C, D, E, F, G, H, I, J, K, L, N, M, O, P, Q, R, S, T, U, V, W, x, y, z;
typedef long long ll;
typedef pair<ll, ll> Pa;

/*
template <std::int_fast64_t Modulus> class modint {
	using u64 = std::int_fast64_t;
public:
	u64 a;
	constexpr modint(const u64 x = 0) noexcept : a(x% Modulus) {}
	constexpr u64& value() noexcept { return a; }
	constexpr const u64& value() const noexcept { return a; }
	constexpr modint operator+(const modint rhs) const noexcept {
		return modint(*this) += rhs;
	}
	constexpr modint operator-(const modint rhs) const noexcept {
		return modint(*this) -= rhs;
	}
	constexpr modint operator*(const modint rhs) const noexcept {
		return modint(*this) *= rhs;
	}
	constexpr modint operator/(const modint rhs) const noexcept {
		return modint(*this) /= rhs;
	}
	constexpr modint& operator+=(const modint rhs) noexcept {
		a += rhs.a;
		if (a >= Modulus) {
			a -= Modulus;
		}
		return *this;
	}
	constexpr modint& operator-=(const modint rhs) noexcept {
		if (a < rhs.a) {
			a += Modulus;
		}
		a -= rhs.a;
		return *this;
	}
	constexpr modint& operator*=(const modint rhs) noexcept {
		a = a * rhs.a % Modulus;
		return *this;
	}
	constexpr modint& operator/=(modint rhs) noexcept {
		u64 exp = Modulus - 2;
		while (exp) {
			if (exp % 2) {
				*this *= rhs;
			}
			rhs *= rhs;
			exp /= 2;
		}
		return *this;
	}
};
#pragma endregion

typedef modint<MOD> m;
m func[400001];
void funcinit(int N)
{
	func[0] = 1;
	for (int i = 1; i <= N; i++)
	{
		func[i] = func[i - 1] * i;
	}
}
m comb(m n, m r)
{
	if (n.a <= 0 || n.a < r.a)
	{
		return 0;
	}
	return func[n.a] / (func[r.a] * func[(n - r).a]);
}*/

string s;
int main() {
	cin >> N >> A >> B;
	if (A == 0 && B == 0) cout << 0;
	else out << ((N / (A + B)) * A) + min((N % (A + B)), A);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:88:14: error: 'out' was not declared in this scope
   88 |         else out << ((N / (A + B)) * A) + min((N % (A + B)), A);
      |              ^~~
Language: C

#inclucde<stdio.h>
int MIN(int a,int b){return a<b?a:b;}
int main(){
  int n,a,b,s=0;
  scanf("%d %d %d",&n,&a,&b);
  s+=n/(a+b)*a;
  s+=MIN(n%(a+b),a);
  printf("%d\n",s);
  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclucde; did you mean #include?
    1 | #inclucde<stdio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d %d %d",&n,&a,&b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inclucde<stdio.h>
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d %d %d",&n,&a,&b);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |   printf("%d\n",s);
      |   ^~~~~~
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

import java.util.*;

public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        long A = sc.nextLong();
        long B = sc.nextLong();
        long AB = A+B;
        long ans;
        if(A == 0)
            ans = 0;
        else
            ans = (long)(N/AB) * A + (N%AB);
        System.out.println(ans);
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(ll i=0;i<n;i++)
#define all(vec) vec.begin(), vec.end()
#define tmax(x,y,z) max((x),max((y),(z)))
#define tmin(x,y,z) min((x),min((y),(z)))
typedef long long ll; ll MM = 1000000000;ll mod = MM + 7; ll MMM=9223372036854775807;//2^63 -1
ll GCD(ll x, ll y) {if (y == 0) return x;else return GCD(y, x % y);}
ll LCM(ll x, ll y) { return x / GCD(x, y) * y;}
//cout << fixed << setprecision(10);

int main(){
    ll n,a,b; cin>>n>>a>>b;
    ll x=max(n%(a+b)-a,0)
    cout<<n/(a+b) +x ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: no matching function for call to 'max(ll, int)'
   14 |     ll x=max(n%(a+b)-a,0)
      |          ~~~^~~~~~~~~~~~~
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: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:14:13: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   14 |     ll x=max(n%(a+b)-a,0)
      |          ~~~^~~~~~~~~~~~~
/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:
/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:14:13: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   14 |     ll x=max(n%(a+b)-a,0)
      |          ~~~^~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
using namespace std;
typedef long long int ll;
typedef pair<int,int> P;
#define yn {puts("Yes");}else{puts("No");}
#define MAX_N 200005

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

    ll ans = (n) / (a + b) * b;
    n -= n/(a+b)*(a+b);
    ans += (max((ll(0), n - a)); 

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: error: no matching function for call to 'max(ll)'
   17 |     ans += (max((ll(0), n - a));
      |             ~~~^~~~~~~~~~~~~~~~
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: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:   candidate expects 2 arguments, 1 provided
/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, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/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:   template argument deduction/substitution failed:
a.cc:17:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   17 |     ans += (max((ll(0), n - a));
      |             ~~~^~~~~~~~~~~~~~~~
/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:   candidate expects 2 arguments, 1 provided
a.cc:17:32: error: expected ')' before ';' token
   17 |     ans += (max((ll(0), n - a));
      |            ~                   ^
      |                                )
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define R cin>>
#define Z class
#define ll long long
#define ln cout<<'\n'
#define in(a) insert(a)
#define pb(a) push_back(a)
#define pd(a) printf("%.10f\n",a)
#define mem(a) memset(a,0,sizeof(a))
#define all(c) (c).begin(),(c).end()
#define iter(c) __typeof((c).begin())
#define rrep(i,n) for(ll i=(ll)(n)-1;i>=0;i--)
#define REP(i,m,n) for(ll i=(ll)(m);i<(ll)(n);i++)
#define rep(i,n) REP(i,0,n)
#define tr(it,c) for(iter(c) it=(c).begin();it!=(c).end();it++)
template<Z A>void pr(A a){cout<<a;ln;}
template<Z A,Z B>void pr(A a,B b){cout<<a<<' ';pr(b);}
template<Z A,Z B,Z C>void pr(A a,B b,C c){cout<<a<<' ';pr(b,c);}
template<Z A,Z B,Z C,Z D>void pr(A a,B b,C c,D d){cout<<a<<' ';pr(b,c,d);}
template<Z A>void PR(A a,ll n){rep(i,n){if(i)cout<<' ';cout<<a[i];}ln;}
ll check(ll n,ll m,ll x,ll y){return x>=0&&x<n&&y>=0&&y<m;}
const ll MAX=1e9+7,MAXL=1LL<<61,dx[4]={-1,0,1,0},dy[4]={0,1,0,-1};
typedef pair<ll,ll> P;

void Main() {
  ll n,a,b;
  cin >> n >> a >> b;
  ll d=n/(a+b);
  ll ans+=d*a;
  n%=a+b;
  pr(ans+min(n,a));
}

int main(){ios::sync_with_stdio(0);cin.tie(0);Main();return 0;}


Compiler output:
a.cc: In function 'void Main()':
a.cc:32:9: error: expected initializer before '+=' token
   32 |   ll ans+=d*a;
      |         ^~
a.cc:34:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
   34 |   pr(ans+min(n,a));
      |      ^~~
      |      abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define R cin>>
#define Z class
#define ll long long
#define ln cout<<'\n'
#define in(a) insert(a)
#define pb(a) push_back(a)
#define pd(a) printf("%.10f\n",a)
#define mem(a) memset(a,0,sizeof(a))
#define all(c) (c).begin(),(c).end()
#define iter(c) __typeof((c).begin())
#define rrep(i,n) for(ll i=(ll)(n)-1;i>=0;i--)
#define REP(i,m,n) for(ll i=(ll)(m);i<(ll)(n);i++)
#define rep(i,n) REP(i,0,n)
#define tr(it,c) for(iter(c) it=(c).begin();it!=(c).end();it++)
template<Z A>void pr(A a){cout<<a;ln;}
template<Z A,Z B>void pr(A a,B b){cout<<a<<' ';pr(b);}
template<Z A,Z B,Z C>void pr(A a,B b,C c){cout<<a<<' ';pr(b,c);}
template<Z A,Z B,Z C,Z D>void pr(A a,B b,C c,D d){cout<<a<<' ';pr(b,c,d);}
template<Z A>void PR(A a,ll n){rep(i,n){if(i)cout<<' ';cout<<a[i];}ln;}
ll check(ll n,ll m,ll x,ll y){return x>=0&&x<n&&y>=0&&y<m;}
const ll MAX=1e9+7,MAXL=1LL<<61,dx[4]={-1,0,1,0},dy[4]={0,1,0,-1};
typedef pair<ll,ll> P;

void Main() {
  ll n,a,b;
  cin >> n >> a >> b;
  ll d=n/(a+b);
  ll ans+=d*a;
  n%=a+b;
  pr(ans+a);
}

int main(){ios::sync_with_stdio(0);cin.tie(0);Main();return 0;}


Compiler output:
a.cc: In function 'void Main()':
a.cc:32:9: error: expected initializer before '+=' token
   32 |   ll ans+=d*a;
      |         ^~
a.cc:34:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
   34 |   pr(ans+a);
      |      ^~~
      |      abs
Language: C++

#include <iostream>
#include <vector>
#include <cmath>

int main(){
  float a, b;
  std::cin >> a >> b;
  std::vector<int> percent8;
  std::vector<int> percent10;
  
  for (int i = std::ceil(a * 12.5); i < (a + 1) * 12.5; i++){
    percent8.push_back(i);
  }
  
  for (int i = std::ceil(b * 10); i < (a + 1) * 10 ; i++){
    percent10.push_back(i);
  }
  
  for (int i = 0; i < percent8.size(); i++){
    if (std::find(percent10.begin(), percent10.end(), percent8[i]) != percent10.end()){
      std::cout << percent8[i];
      return 0;
    }
  }
  
  std::cout << -1;
  return 0
  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:18: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&)'
   20 |     if (std::find(percent10.begin(), percent10.end(), percent8[i]) != percent10.end()){
      |         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:20:18: note:   '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
   20 |     if (std::find(percent10.begin(), percent10.end(), percent8[i]) != percent10.end()){
      |         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:27:11: error: expected ';' before '}' token
   27 |   return 0
      |           ^
      |           ;
......
   31 | }
      | ~
Language: C++

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


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

#include<iostream>
#include<stdio.h>
using namespace std;
#include<algorithm>
#include<set>
#include<vector>
#define rep(i,n) for(int i=0;i<(n);i++)

const int mod=1000000007;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:22:1: error: 'AC' was not declared in this scope
   22 | AC}
      | ^~
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
#include<algorithm>
#include<set>
#include<vector>
#define rep(i,n) for(int i=0;i<(n);i++)

const int mod=1000000007;


int main(){
int a,b;
cin>>a>>b;
rep(pr,1000){
int za=pr*8/100;
int zb=pr*1/10;
if(za==a&&zb==b){
  cout<<pr<<endl;
  return 0;
}
AC}
cout<<-1<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:1: error: 'AC' was not declared in this scope
   22 | AC}
      | ^~
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
#include<algorithm>
#include<set>
#include<vector>
#define rep(i,n) for(int i=0;i<(n);i++)

const int mod=1000000007;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:1: error: 'za' was not declared in this scope; did you mean 'a'?
   16 | za=pr*8/100;
      | ^~
      | a
a.cc:16:4: error: 'pr' was not declared in this scope
   16 | za=pr*8/100;
      |    ^~
a.cc:17:1: error: 'zb' was not declared in this scope; did you mean 'b'?
   17 | zb=pr*1/10;
      | ^~
      | b
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
#include<algorithm>
#include<set>
#include<vector>
#define rep(i,n) for(int i=0;i<(n);i++)

const int mod=1000000007;


int main(){
int a,b;
rep(pr,1000);
za=pr*8/100;
zb=pr*1/10;
if(za=a&&zb=b){
  cout<<pr<<endl;
  return 0;
}
cout<<-1<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:1: error: 'za' was not declared in this scope; did you mean 'a'?
   15 | za=pr*8/100;
      | ^~
      | a
a.cc:15:4: error: 'pr' was not declared in this scope
   15 | za=pr*8/100;
      |    ^~
a.cc:16:1: error: 'zb' was not declared in this scope; did you mean 'b'?
   16 | zb=pr*1/10;
      | ^~
      | b
Language: C++

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
#define rep(i, n) for (int i = 0; i < n; i++)
#define repr(i, n) for (int i = n-1; i >= 0; i--)
#define ALL(x) x.begin(), x.end()
using ll = long long;
using pii = pair<int, int>;
const int mod = 1e9+7;
const int INF = 1e9;
const int MAX = 1e6;
// const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
// struct edge {int to, cost;};
// vector<edge> graph[MAX];
// bool visited[MAX];
// int dist[MAX];

int main() {
    // input
    int a, b;
    cin >> a >> b;
    // solve
    bool flag = false;
    for (int i = 0; ; i++) {
        int x = (int)(i * 0.08);
        int y = (int)(i * 0.1);
        if (x > 100 or y > 100) break;
        if (x == a and y == b) {
            flag = true;
            cout << i << endl;
            break;
        }
    }
    // output
    if (not flag) cout << -1 << endl;
}

Compiler output:
a.cc:2:10: fatal error: atcoder/all: No such file or directory
    2 | #include <atcoder/all>
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C++

use std::process::exit;

fn main() {
  let input: Vec<u32> = read_vec();
  for i in 1..101 {
    if i*8/100 == input[0] && i*10/100  == input[1] {
      println!("{}", i);
      exit(0);
    }
  }
  println!("-1");
}

fn read_vec<T: std::str::FromStr>() -> Vec<T> {
  let mut s = String::new();
  std::io::stdin().read_line(&mut s).ok();
  s.trim().split_whitespace().map(|e| e.parse().ok().unwrap()).collect()
}


Compiler output:
a.cc:5:12: error: too many decimal points in number
    5 |   for i in 1..101 {
      |            ^~~~~~
a.cc:1:1: error: 'use' does not name a type
    1 | use std::process::exit;
      | ^~~
a.cc:3:1: error: 'fn' does not name a type
    3 | fn main() {
      | ^~
a.cc:14:1: error: 'fn' does not name a type
   14 | fn read_vec<T: std::str::FromStr>() -> Vec<T> {
      | ^~
Language: C++

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

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

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

#include <bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#define pi 3.14159265358979323846264338327950L
using namespace std;

int main() {
  int A, B, ans=-1;
  cin >> A >> B;
  for (int i=0; i<1001; i++) {
    if ((2*i)/25==A && i/10==B) {
      ans=i;
      break;
    }
  }
  cout << ans << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:29:23: error: expected '}' at end of input
   29 |   cout << ans << endl;
      |                       ^
a.cc:20:12: note: to match this '{'
   20 | int main() {
      |            ^
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();
    sc.close();
    System.out.println(solve(a, b));

  }

  static int solve(int a, int b) {
    for (int price = b * 10; price < (b + 1) * 10; price++) {
      if (price * 8 / 100 == a) {
        System.out.println(price);
        return;
      }
    }
    System.out.println(-1);
  }
}


Compiler output:
Main.java:18: error: incompatible types: missing return value
        return;
        ^
1 error
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected ',' or ';' before 'int'
    9 |     int zb=i*10/100;
      |     ^~~
a.cc:10:16: error: 'b' was not declared in this scope
   10 |     if(A==za &&b==zb){
      |                ^
a.cc:10:19: 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(double i=B*10;i*0.1<=B+1;i++){
     double a=i*0.08;
     int f;
     f=(int)a;
     if(f==A){
         cout << i<<endl;
         return 0;
     }
 } 
 cout << 

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: expected primary-expression at end of input
   16 |  cout <<
      |         ^
a.cc:16:9: error: expected '}' at end of input
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt();
      	int b = scn.nextInt();
      	int ans = -1;
      	for(int i=1; i<=1000; i++){
          if((int)(i*0.08)==a $$ (int)(i*0.1)==b) ans = i;
        }
		System.out.println(ans);
	}
}

Compiler output:
Main.java:10: error: ')' expected
          if((int)(i*0.08)==a $$ (int)(i*0.1)==b) ans = i;
                             ^
Main.java:10: error: '.class' expected
          if((int)(i*0.08)==a $$ (int)(i*0.1)==b) ans = i;
                                     ^
Main.java:10: error: ';' expected
          if((int)(i*0.08)==a $$ (int)(i*0.1)==b) ans = i;
                                      ^
Main.java:10: error: not a statement
          if((int)(i*0.08)==a $$ (int)(i*0.1)==b) ans = i;
                                        ^
Main.java:10: error: ';' expected
          if((int)(i*0.08)==a $$ (int)(i*0.1)==b) ans = i;
                                            ^
Main.java:10: error: not a statement
          if((int)(i*0.08)==a $$ (int)(i*0.1)==b) ans = i;
                                               ^
Main.java:10: error: ';' expected
          if((int)(i*0.08)==a $$ (int)(i*0.1)==b) ans = i;
                                                ^
7 errors
Language: C++

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

int main() {
  int a, b; cin >> a >> b;
  int ans = -1;
  int al = a*100+4, bl = b*100+5;
  if (max(al/8,bl/10) <= min((al+100)/8,(bl+100)/10)) ans = max(al/8,bl/10);
  cout << ans << endl;
  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:8:12: note: to match this '{'
    8 | int main() {
      |            ^
Language: C++

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

int main() { 
  int A,B;
  cin >> A >> B;
  
  int ans = -1;
  for(int i=1; i<1010; i++){
    if( 12.5*A <= i && i<12.5*(A+1) && 10*B<= i && i<10*(B+1) ){
      a = i;
      break;
    }
  }
  
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'a' was not declared in this scope
   11 |       a = 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(0.08*i == A && 0.1*x == B){
      cout << i << endl ; 
      return 0 ; 
    }
  }
  
  cout << "-1" << endl ; 
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: 'x' was not declared in this scope
    9 |     if(0.08*i == A && 0.1*x == B){
      |                           ^
Language: C++

#include<iostream>
#include<cmath>
using namespace std;
int main()
{
  int a,b,c;float t1,t2;
  cin>>a>>b;
  t1=a/0.08;
  t2=b/0.1;
  t1=floor(t1);
  t2=floor(t2);
  if(t1==t2)
  c=t1
  else c=-1;
  cout<<c;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: expected ';' before 'else'
   13 |   c=t1
      |       ^
      |       ;
   14 |   else c=-1;
      |   ~~~~
Language: C++

#include<stdio.h>
void main()
{
  tax_i=9;
  printf("Tax increase:",tax_i);
}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'tax_i' was not declared in this scope
    4 |   tax_i=9;
      |   ^~~~~