Language: C++

#include <iostream>
#include<cstdlib>
#include<queue>
#include<set>
#include<vector>
#include<string>
#include<algorithm>
#include<stack>
#include<map>
#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 P pair<__int64,__int64>
__int64  n,h;
__int64 a[110000],b[110000];
P t[110000];

int main(){
	cin>>n>>h;
	rep(i,n){
		cin>>a[i]>>b[i];
		t[i]=mp(a[i],b[i]);
	}
	sort(t,t+n,greater<P>());

	
	__int64 ans=0;
	__int64 huri=t[0].first;

	for(int i=0;i<n;i++){
		if(huri<t[i].second){
				ans++;
				h-=t[i].second;
		}
		if(h<=0)break;
	}

	if(h>0)ans+=h/huri;
	if(h>0&&h%huri!=0)ans++;
	cout<<ans<<endl;
	return 0;
}

Compiler output:
a.cc:16:1: error: '__int64' does not name a type; did you mean '__int64_t'?
   16 | __int64  n,h;
      | ^~~~~~~
      | __int64_t
a.cc:17:1: error: '__int64' does not name a type; did you mean '__int64_t'?
   17 | __int64 a[110000],b[110000];
      | ^~~~~~~
      | __int64_t
a.cc:15:16: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
   15 | #define P pair<__int64,__int64>
      |                ^~~~~~~
a.cc:18:1: note: in expansion of macro 'P'
   18 | P t[110000];
      | ^
a.cc:15:24: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
   15 | #define P pair<__int64,__int64>
      |                        ^~~~~~~
a.cc:18:1: note: in expansion of macro 'P'
   18 | P t[110000];
      | ^
a.cc:15:31: error: template argument 1 is invalid
   15 | #define P pair<__int64,__int64>
      |                               ^
a.cc:18:1: note: in expansion of macro 'P'
   18 | P t[110000];
      | ^
a.cc:15:31: error: template argument 2 is invalid
   15 | #define P pair<__int64,__int64>
      |                               ^
a.cc:18:1: note: in expansion of macro 'P'
   18 | P t[110000];
      | ^
a.cc: In function 'int main()':
a.cc:21:14: error: 'n' was not declared in this scope
   21 |         cin>>n>>h;
      |              ^
a.cc:21:17: error: 'h' was not declared in this scope
   21 |         cin>>n>>h;
      |                 ^
a.cc:23:22: error: 'a' was not declared in this scope
   23 |                 cin>>a[i]>>b[i];
      |                      ^
a.cc:23:28: error: 'b' was not declared in this scope
   23 |                 cin>>a[i]>>b[i];
      |                            ^
a.cc:15:16: error: '__int64' was not declared in this scope; did you mean '__int64_t'?
   15 | #define P pair<__int64,__int64>
      |                ^~~~~~~
a.cc:26:28: note: in expansion of macro 'P'
   26 |         sort(t,t+n,greater<P>());
      |                            ^
a.cc:15:31: error: template argument 1 is invalid
   15 | #define P pair<__int64,__int64>
      |                               ^
a.cc:26:28: note: in expansion of macro 'P'
   26 |         sort(t,t+n,greater<P>());
      |                            ^
a.cc:26:29: error: template argument 1 is invalid
   26 |         sort(t,t+n,greater<P>());
      |                             ^
a.cc:29:16: error: expected ';' before 'ans'
   29 |         __int64 ans=0;
      |                ^~~~
      |                ;
a.cc:30:16: error: expected ';' before 'huri'
   30 |         __int64 huri=t[0].first;
      |                ^~~~~
      |                ;
a.cc:33:20: error: 'huri' was not declared in this scope
   33 |                 if(huri<t[i].second){
      |                    ^~~~
a.cc:33:30: error: request for member 'second' in 't[i]', which is of non-class type 'int'
   33 |                 if(huri<t[i].second){
      |                              ^~~~~~
a.cc:34:33: error: 'ans' was not declared in this scope; did you mean 'abs'?
   34 |                                 ans++;
      |                                 ^~~
      |                                 abs
a.cc:35:41: error: request for member 'second' in 't[i]', which is of non-class type 'int'
   35 |                                 h-=t[i].second;
      |                                         ^~~~~~
a.cc:40:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
   40 |         if(h>0)ans+=h/huri;
      |                ^~~
      |                abs
a.cc:40:23: error: 'huri' was not declared in this scope
   40 |         if(h>0)ans+=h/huri;
      |                       ^~~~
a.cc:41:19: error: 'huri' was not declared in this scope
   41 |         if(h>0&&h%huri!=0)ans++;
      |                   ^~~~
a.cc:41:27: error: 'ans' was not declared in this scope; did you mean 'abs'?
   41 |         if(h>0&&h%huri!=0)ans++;
      |                           ^~~
      |                           abs
a.cc:42:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
   42 |         cout<<ans<<endl;
      |               ^~~
      |               abs