Language: C++

#include <iostream>
#include<cstdlib>
#include<queue>
#include<set>
#include<vector>
#include<string>
#include<algorithm>
#include<stack>
#include<map>
#include<deque>
#include<cstdio>
using namespace std;
#define rep(i,a) for(int i=0;i<a;i++)
#define mp make_pair
#define pb push_back
#define ll __int64
//#define ll long long
#define P pair<ll,ll>

int n,a,b;
ll t[1100000];
ll tt[110000];

bool che(int x){
	rep(i,n)tt[i]=t[i];

	ll cnt=0;//Aで殴る必要のある回数
	rep(i,n){
		tt[i]-=b*x;
		
		if(tt[i]>0){
			cnt+=tt[i]/(a-b);
			if(tt[i]%(a-b))cnt++;
		}
	}
	if(cnt>x)return 0;
	else return 1;
}

int main(){
	cin>>n>>a>>b;
	rep(i,n)cin>>t[i];
	ll l=1,r=1000000001;
	ll mid=(l+r)/2;

	rep(i,50){
		if(che(mid))r=mid;
		else l=mid;
		mid=(r+l)/2;
	}
	cout<<mid+1<<endl;
	return 0;
}

Compiler output:
a.cc:16:12: error: '__int64' does not name a type; did you mean '__int64_t'?
   16 | #define ll __int64
      |            ^~~~~~~
a.cc:21:1: note: in expansion of macro 'll'
   21 | ll t[1100000];
      | ^~
a.cc:16:12: error: '__int64' does not name a type; did you mean '__int64_t'?
   16 | #define ll __int64
      |            ^~~~~~~
a.cc:22:1: note: in expansion of macro 'll'
   22 | ll tt[110000];
      | ^~
a.cc: In function 'bool che(int)':
a.cc:25:17: error: 'tt' was not declared in this scope; did you mean 'tm'?
   25 |         rep(i,n)tt[i]=t[i];
      |                 ^~
      |                 tm
a.cc:25:23: error: 't' was not declared in this scope
   25 |         rep(i,n)tt[i]=t[i];
      |                       ^
a.cc:16:12: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
   16 | #define ll __int64
      |            ^~~~~~~
a.cc:27:9: note: in expansion of macro 'll'
   27 |         ll cnt=0;//Aで殴る必要のある回数
      |         ^~
a.cc:29:17: error: 'tt' was not declared in this scope; did you mean 'tm'?
   29 |                 tt[i]-=b*x;
      |                 ^~
      |                 tm
a.cc:32:25: error: 'cnt' was not declared in this scope; did you mean 'int'?
   32 |                         cnt+=tt[i]/(a-b);
      |                         ^~~
      |                         int
a.cc:36:12: error: 'cnt' was not declared in this scope; did you mean 'int'?
   36 |         if(cnt>x)return 0;
      |            ^~~
      |            int
a.cc: In function 'int main()':
a.cc:42:22: error: 't' was not declared in this scope
   42 |         rep(i,n)cin>>t[i];
      |                      ^
a.cc:16:12: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
   16 | #define ll __int64
      |            ^~~~~~~
a.cc:43:9: note: in expansion of macro 'll'
   43 |         ll l=1,r=1000000001;
      |         ^~
a.cc:44:12: error: expected ';' before 'mid'
   44 |         ll mid=(l+r)/2;
      |            ^~~
a.cc:47:24: error: 'mid' was not declared in this scope
   47 |                 if(che(mid))r=mid;
      |                        ^~~
a.cc:47:29: error: 'r' was not declared in this scope
   47 |                 if(che(mid))r=mid;
      |                             ^
a.cc:48:22: error: 'l' was not declared in this scope
   48 |                 else l=mid;
      |                      ^
a.cc:49:17: error: 'mid' was not declared in this scope
   49 |                 mid=(r+l)/2;
      |                 ^~~
a.cc:49:22: error: 'r' was not declared in this scope
   49 |                 mid=(r+l)/2;
      |                      ^
a.cc:49:24: error: 'l' was not declared in this scope
   49 |                 mid=(r+l)/2;
      |                        ^
a.cc:51:15: error: 'mid' was not declared in this scope
   51 |         cout<<mid+1<<endl;
      |               ^~~
a.cc: In function 'bool che(int)':
a.cc:38:1: warning: control reaches end of non-void function [-Wreturn-type]
   38 | }
      | ^