Language: C++

#include <iostream>
#include<cstdlib>
#include<queue>
#include<set>
#include<vector>
#include<string>
#include<algorithm>
#include<stack>
#include<map>
#include<cstdio>
#include <math.h>
using namespace std;
#define rep(i,a) for(int i=0;i<a;i++)
#define mp make_pair
#define pb push_back
//#define __int64 long long 
#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+=ceil((double)h/(double)huri);
	//if(h>0&&h%huri!=0)ans++;
	cout<<ans<<endl;
	return 0;
}


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