Language: C++

#include<iostream>
#include<cstdlib>
#include<cmath>
#define N 100100
using namespace std;
long long  n,a,b,c[N],l,r;
bool check(int x)
{
    long long ans=0;
    for(int i=1;i<=n;i++)
        ans+=((c[i]-x*b)>0)*ceil(1.0*(c[i]-x*b)/(a-b));
    if (ans<=x) return true;
    else return false;
}
int main()
{
    ios::sync_with_stdio(false);
    cin>>n>>a>>b;
    for(int i=1;i<=n;++i)
        cin>>c[i];
    l=1;r=1000000000;
    while(l<=r)
    {
        int mid=(l+r)/2;
        if (check(mid))
            r=mid-1;
        else
            l=mid+1;
    }
    cout<<l<<endl;
     return 0;
}#include<iostream>
#include<cstdlib>
#include<cmath>
#define N 100100
using namespace std;
long long  n,a,b,c[N],l,r;
bool check(int x)
{
    long long ans=0;
    for(int i=1;i<=n;i++)
        ans+=((c[i]-x*b)>0)*ceil(1.0*(c[i]-x*b)/(a-b));
    if (ans<=x) return true;
    else return false;
}
int main()
{
    ios::sync_with_stdio(false);
    cin>>n>>a>>b;
    for(int i=1;i<=n;++i)
        cin>>c[i];
    l=1;r=1000000000;
    while(l<=r)
    {
        int mid=(l+r)/2;
        if (check(mid))
            r=mid-1;
        else
            l=mid+1;
    }
    cout<<l<<endl;
     return 0;
}

Compiler output:
a.cc:32:2: error: stray '#' in program
   32 | }#include<iostream>
      |  ^
a.cc:32:3: error: 'include' does not name a type
   32 | }#include<iostream>
      |   ^~~~~~~
a.cc:37:12: error: redefinition of 'long long int n'
   37 | long long  n,a,b,c[N],l,r;
      |            ^
a.cc:6:12: note: 'long long int n' previously declared here
    6 | long long  n,a,b,c[N],l,r;
      |            ^
a.cc:37:14: error: redefinition of 'long long int a'
   37 | long long  n,a,b,c[N],l,r;
      |              ^
a.cc:6:14: note: 'long long int a' previously declared here
    6 | long long  n,a,b,c[N],l,r;
      |              ^
a.cc:37:16: error: redefinition of 'long long int b'
   37 | long long  n,a,b,c[N],l,r;
      |                ^
a.cc:6:16: note: 'long long int b' previously declared here
    6 | long long  n,a,b,c[N],l,r;
      |                ^
a.cc:37:18: error: redefinition of 'long long int c [100100]'
   37 | long long  n,a,b,c[N],l,r;
      |                  ^
a.cc:6:18: note: 'long long int c [100100]' previously declared here
    6 | long long  n,a,b,c[N],l,r;
      |                  ^
a.cc:37:23: error: redefinition of 'long long int l'
   37 | long long  n,a,b,c[N],l,r;
      |                       ^
a.cc:6:23: note: 'long long int l' previously declared here
    6 | long long  n,a,b,c[N],l,r;
      |                       ^
a.cc:37:25: error: redefinition of 'long long int r'
   37 | long long  n,a,b,c[N],l,r;
      |                         ^
a.cc:6:25: note: 'long long int r' previously declared here
    6 | long long  n,a,b,c[N],l,r;
      |                         ^
a.cc:38:6: error: redefinition of 'bool check(int)'
   38 | bool check(int x)
      |      ^~~~~
a.cc:7:6: note: 'bool check(int)' previously defined here
    7 | bool check(int x)
      |      ^~~~~
a.cc:46:5: error: redefinition of 'int main()'
   46 | int main()
      |     ^~~~
a.cc:15:5: note: 'int main()' previously defined here
   15 | int main()
      |     ^~~~