Language: C++

#include <iostream>
#include <cmath>
#include <cstdio>
using namespace std;
int main()
{
    ll n, h;
    cin >> n >> h;
    ll maxstrike=0, sum=0;
    ll a[n+10];
    for(ll i=0; i<n; i++)
    {
        ll strike, throww;
        cin >> strike >> throww;
        if(strike>maxstrike)
            maxstrike = strike;
        a[i]=throww;
    }
    ll c = 0;
    for(ll i=0; i<n; i++)
    {
        if(a[i]>maxstrike) // substitute with normal strike otherwise
        {
            sum+=a[i];
            c++;
        }
        if(sum>=h)
            break;
    }

    if(sum<h)
    {
        ll x = h-sum;
        ll y = x/maxstrike;
        if(x%maxstrike!=0)
            y++;
        c+=y;
    }
    cout << c;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'll' was not declared in this scope
    7 |     ll n, h;
      |     ^~
a.cc:8:12: error: 'n' was not declared in this scope; did you mean 'yn'?
    8 |     cin >> n >> h;
      |            ^
      |            yn
a.cc:8:17: error: 'h' was not declared in this scope
    8 |     cin >> n >> h;
      |                 ^
a.cc:9:7: error: expected ';' before 'maxstrike'
    9 |     ll maxstrike=0, sum=0;
      |       ^~~~~~~~~~
      |       ;
a.cc:10:7: error: expected ';' before 'a'
   10 |     ll a[n+10];
      |       ^~
      |       ;
a.cc:11:11: error: expected ';' before 'i'
   11 |     for(ll i=0; i<n; i++)
      |           ^~
      |           ;
a.cc:11:17: error: 'i' was not declared in this scope
   11 |     for(ll i=0; i<n; i++)
      |                 ^
a.cc:13:11: error: expected ';' before 'strike'
   13 |         ll strike, throww;
      |           ^~~~~~~
      |           ;
a.cc:14:16: error: 'strike' was not declared in this scope
   14 |         cin >> strike >> throww;
      |                ^~~~~~
a.cc:14:26: error: 'throww' was not declared in this scope
   14 |         cin >> strike >> throww;
      |                          ^~~~~~
a.cc:15:19: error: 'maxstrike' was not declared in this scope
   15 |         if(strike>maxstrike)
      |                   ^~~~~~~~~
a.cc:17:9: error: 'a' was not declared in this scope
   17 |         a[i]=throww;
      |         ^
a.cc:19:7: error: expected ';' before 'c'
   19 |     ll c = 0;
      |       ^~
      |       ;
a.cc:20:11: error: expected ';' before 'i'
   20 |     for(ll i=0; i<n; i++)
      |           ^~
      |           ;
a.cc:20:17: error: 'i' was not declared in this scope
   20 |     for(ll i=0; i<n; i++)
      |                 ^
a.cc:22:12: error: 'a' was not declared in this scope
   22 |         if(a[i]>maxstrike) // substitute with normal strike otherwise
      |            ^
a.cc:22:17: error: 'maxstrike' was not declared in this scope
   22 |         if(a[i]>maxstrike) // substitute with normal strike otherwise
      |                 ^~~~~~~~~
a.cc:24:13: error: 'sum' was not declared in this scope
   24 |             sum+=a[i];
      |             ^~~
a.cc:25:13: error: 'c' was not declared in this scope
   25 |             c++;
      |             ^
a.cc:27:12: error: 'sum' was not declared in this scope
   27 |         if(sum>=h)
      |            ^~~
a.cc:31:8: error: 'sum' was not declared in this scope
   31 |     if(sum<h)
      |        ^~~
a.cc:33:11: error: expected ';' before 'x'
   33 |         ll x = h-sum;
      |           ^~
      |           ;
a.cc:34:11: error: expected ';' before 'y'
   34 |         ll y = x/maxstrike;
      |           ^~
      |           ;
a.cc:35:12: error: 'x' was not declared in this scope
   35 |         if(x%maxstrike!=0)
      |            ^
a.cc:35:14: error: 'maxstrike' was not declared in this scope
   35 |         if(x%maxstrike!=0)
      |              ^~~~~~~~~
a.cc:36:13: error: 'y' was not declared in this scope; did you mean 'yn'?
   36 |             y++;
      |             ^
      |             yn
a.cc:37:9: error: 'c' was not declared in this scope
   37 |         c+=y;
      |         ^
a.cc:37:12: error: 'y' was not declared in this scope; did you mean 'yn'?
   37 |         c+=y;
      |            ^
      |            yn
a.cc:39:13: error: 'c' was not declared in this scope
   39 |     cout << c;
      |             ^