Language: C++

#ifndef _GLIBCXX_NO_ASSERT
#include <cassert>
#endif
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#if __cplusplus >= 201103L
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdalign>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
#endif
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#if __cplusplus >= 201103L
#include <array>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#endif
#define ll long long
#define ull unsigned long long
#define mp make_pair

using namespace std;

int main()
{
#include<bits/stdc++.h>
#define N 100009
    using namespace std;
    typedef long long LL;
    const LL INF = 0x3f3f3f3f;

    LL h[N];
    LL n, a, b;

    bool judge(LL mid)
    {
        LL ans = mid;
        for(int i = 1; i <= n; i++)
        {
            LL tm = h[i] - b*mid;
            if(tm > 0)
            {
                LL cnt = tm / (a - b) + (tm % (a - b) == 0 ? 0 : 1);
                ans -= cnt;
                if(ans < 0)
                    return false;
            }
        }
        return true;
    }

    int main()
    {
        scanf("%lld%lld%lld", &n, &a, &b);
        for(int i = 1; i <= n; i++)
            scanf("%lld", &h[i]);
        LL l = 0, r = INF;
        LL ans = INF;
        while(l <= r)
        {
            LL mid = (l + r)>>1;
            if(judge(mid))
                ans = mid, r = mid - 1;
            else
                l = mid + 1;
        }
        printf("%lld\n", ans);
        return 0;
    }

    return 0;
}


Compiler output:
In file included from /usr/include/c++/14/cassert:43,
                 from a.cc:2:
/usr/include/c++/14/any: In function 'int main()':
/usr/include/c++/14/any:45:15: error: expected '=' before '__attribute__'
   45 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/any:45:15: error: expected identifier before '__attribute__'
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:77,
                 from a.cc:91:
/usr/include/c++/14/any:45:14: error: expected ';' before '__attribute__'
   45 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/any:46:1: error: expected primary-expression before '{' token
   46 | {
      | ^
/usr/include/c++/14/optional:58:15: error: expected '=' before '__attribute__'
   58 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/optional:58:15: error: expected identifier before '__attribute__'
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:79:
/usr/include/c++/14/optional:58:14: error: expected ';' before '__attribute__'
   58 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/optional:59:1: error: expected primary-expression before '{' token
   59 | {
      | ^
/usr/include/c++/14/variant:59:15: error: expected '=' before '__attribute__'
   59 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/variant:59:15: error: expected identifier before '__attribute__'
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:80:
/usr/include/c++/14/variant:59:14: error: expected ';' before '__attribute__'
   59 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/variant:60:1: error: expected primary-expression before '{' token
   60 | {
      | ^
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683:
/usr/include/uchar.h:56:1: error: expected unqualified-id before string constant
   56 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
/usr/include/c++/14/cuchar:92:15: error: expected '=' before '__attribute__'
   92 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/cuchar:92:15: error: expected identifier before '__attribute__'
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:134:
/usr/include/c++/14/cuchar:92:14: error: expected ';' before '__attribute__'
   92 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/cuchar:93:1: error: expected primary-expression before '{' token
   93 | {
      | ^
/usr/include/c++/14/codecvt:43:15: error: expected '=' before '__attribute__'
   43 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/codecvt:43:15: error: expected identifier before '__attribute__'
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:173:
/usr/include/c++/14/codecvt:43:14: error: expected ';' before '__attribute__'
   43 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/codecvt:44:1: error: expected primary-expression before '{' token
   44 | {
      | ^
/usr/include/c++/14/shared_mutex:52:15: error: expected '=' before '__attribute__'
   52 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/shared_mutex:52:15: error: expected identifier before '__attribute__'
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:193:
/usr/include/c++/14/shared_mutex:52:14: error: expected ';' before '__attribute__'
   52 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/shared_mutex:53:1: error: expected primary-expression before '{' token
   53 | {
      | ^
/usr/include/c++/14/charconv:52:15: error: expected '=' before '__attribute__'
   52 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/charconv:52:15: error: expected identifier before '__attribute__'
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:198:
/usr/include/c++/14/charconv:52:14: error: expected ';' before '__attribute__'
   52 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/charconv:53:1: error: expected primary-expression before '{' token
   53 | {
      | ^
/usr/include/c++/14/bits/fs_fwd.h:39:15: error: expected '=' before '__attribute__'
   39 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/fs_fwd.h:39:15: error: expected identifier before '__attribute__'
In file included from /usr/include/c++/14/filesystem:51,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_fwd.h:39:14: error: expected ';' before '__attribute__'
   39 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/bits/fs_fwd.h:40:1: error: expected primary-expression before '{' token
   40 | {
      | ^
/usr/include/c++/14/bits/fs_path.h:57:15: error: expected '=' before '__attribute__'
   57 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/fs_path.h:57:15: error: expected identifier before '__attribute__'
In file included from /usr/include/c++/14/filesystem:52:
/usr/include/c++/14/bits/fs_path.h:57:14: error: expected ';' before '__attribute__'
   57 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/bits/fs_path.h:58:1: error: expected primary-expression before '{' token
   58 | {
      | ^
/usr/include/c++/14/bits/fs_dir.h:45:15: error: expected '=' before '__attribute__'
   45 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/fs_dir.h:45:15: error: expected identifier before '__attribute__'
In file included from /usr/include/c++/14/filesystem:53:
/usr/include/c++/14/bits/fs_dir.h:45:14: error: expected ';' before '__attribute__'
   45 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/bits/fs_dir.h:46:1: error: expected primary-expression before '{' token
   46 | {
      | ^
/usr/include/c++/14/bits/fs_ops.h:37:15: error: expected '=' before '__attribute__'
   37 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/fs_ops.h:37:15: error: expected identifier before '__attribute__'
In file included from /usr/include/c++/14/filesystem:54:
/usr/include/c++/14/bits/fs_ops.h:37:14: error: expected ';' before '__attribute__'
   37 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/bits/fs_ops.h:38:1: error: expected primary-expression before '{' token
   38 | {
      | ^
/usr/include/c++/14/memory_resource:70:15: error: expected '=' before '__attribute__'
   70 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/memory_resource:70:15: error: expected identifier before '__attribute__'
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:202:
/usr/include/c++/14/memory_resource:70:14: error: expected ';' before '__attribute__'
   70 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/memory_resource:71:1: error: expected primary-expression before '{' token
   71 | {
      | ^
a.cc:101:5: error: a function-definition is not allowed here before '{' token
  101 |     {
      |     ^
a.cc:117:13: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
  117 |     int main()
      |             ^~
a.cc:117:13: note: remove parentheses to default-initialize a variable
  117 |     int main()
      |             ^~
      |             --
a.cc:117:13: note: or replace parentheses with braces to value-initialize a variable
a.cc:118:5: error: a function-definition is not allowed here before '{' token
  118 |     {
      |     ^