Language: C++

1 10
3 5#include <bits/stdc++.h>
using namespace std;

const int MOD = 1000000007;
const int INF = 1e9;

//long long
using ll = long long;

//出力系
#define print(x) cout << x << endl
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
 
// begin() end()
#define all(x) (x).begin(),(x).end()

//for
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define REPR(i,n) for(int i=n, i##_len=(n); i>=0; i--)
#define FOR(i,a,b) for(int i=(a), i##_len=(b); i<i##_len; ++i)

//最大公約数 
 ll gcd(ll a,ll b){
 if(b == 0) return a;
 return gcd(b,a%b);
 }

//最小公倍数
 ll lcm(ll a,ll b){
 ll g = gcd(a,b);
 return a / g * b; // Be careful not to overflow  if(a < b) return gcd(b, a);
  unsigned r;
  while ((r=a%b)) {
    a = b;
    b = r;
  }
  return b;
} 





int main(){
  ll N, H;
  cin >> N >> H;
  vector<int> a(N), b(N);
  REP(i, N) cin >> a.at(i) >> b.at(i);

  ll a_max = *max_element(all(a));
  sort(all(b));
  reverse(all(b));
  ll ans = 0;
  REP(i, N){
    if(a_max < b.at(i)){
      H -= b.at(i);
      ans++;
    }
    if(H <= 0) break;
  }
if(H > 0) ans += (H + (a_max - 1)) / a_max;
print(ans);
}

Compiler output:
a.cc:2:4: error: stray '#' in program
    2 | 3 5#include <bits/stdc++.h>
      |    ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 1 10
      | ^
a.cc: In function 'int main()':
a.cc:50:3: error: 'cin' was not declared in this scope
   50 |   cin >> N >> H;
      |   ^~~
a.cc:51:3: error: 'vector' was not declared in this scope
   51 |   vector<int> a(N), b(N);
      |   ^~~~~~
a.cc:51:10: error: expected primary-expression before 'int'
   51 |   vector<int> a(N), b(N);
      |          ^~~
a.cc:52:20: error: 'a' was not declared in this scope
   52 |   REP(i, N) cin >> a.at(i) >> b.at(i);
      |                    ^
a.cc:52:31: error: 'b' was not declared in this scope
   52 |   REP(i, N) cin >> a.at(i) >> b.at(i);
      |                               ^
a.cc:54:31: error: 'a' was not declared in this scope
   54 |   ll a_max = *max_element(all(a));
      |                               ^
a.cc:19:17: note: in definition of macro 'all'
   19 | #define all(x) (x).begin(),(x).end()
      |                 ^
a.cc:54:15: error: 'max_element' was not declared in this scope
   54 |   ll a_max = *max_element(all(a));
      |               ^~~~~~~~~~~
a.cc:55:12: error: 'b' was not declared in this scope
   55 |   sort(all(b));
      |            ^
a.cc:19:17: note: in definition of macro 'all'
   19 | #define all(x) (x).begin(),(x).end()
      |                 ^
a.cc:55:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   55 |   sort(all(b));
      |   ^~~~
      |   short
a.cc:56:3: error: 'reverse' was not declared in this scope
   56 |   reverse(all(b));
      |   ^~~~~~~
a.cc:12:18: error: 'cout' was not declared in this scope
   12 | #define print(x) cout << x << endl
      |                  ^~~~
a.cc:66:1: note: in expansion of macro 'print'
   66 | print(ans);
      | ^~~~~
a.cc:12:31: error: 'endl' was not declared in this scope
   12 | #define print(x) cout << x << endl
      |                               ^~~~
a.cc:66:1: note: in expansion of macro 'print'
   66 | print(ans);
      | ^~~~~