Language: C++

#include <iostream>
#include <vector>
#include <algorithm> // sort
#include <map> // pair
#include <numeric> // accumulate(begin,end,初期値)


// ------------debug用------------
#define FALSE cout<<"false"<<endl;
#define TRUE cout<<"true"<<endl;
// ------------debug用------------


// ------------計算用------------
#define ALL(x) (x).begin(),(x).end()
#define FOR(x) for(ll i = 0;i < x;++i)
// ------------計算用------------


// ------------出力用------------
#define PRINT(x) cout<<x<<endl;
// ------------出力用------------


using namespace std;
typedef long long ll;

int main(){
  int N;
  cin>>N;
  vector<int,int> jobs(N);
  
  FOR(N)cin>>jobs[i].second>>jobs[i].first;
  sort(ALL(jobs));
  ll tmp = 0;
  FOR(N){
    tmp += jobs[i].second;
    if(tmp > jobs[i].first){
      cout<<"No";
      return 0;
    }
  }
  cout<<"Yes";
  return 0;
}


Compiler output:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h: In instantiation of 'struct std::_Vector_base<int, int>':
/usr/include/c++/14/bits/stl_vector.h:428:11:   required from 'class std::vector<int, int>'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
a.cc:31:25:   required from here
   31 |   vector<int,int> jobs(N);
      |                         ^
/usr/include/c++/14/bits/stl_vector.h:87:28: error: 'int' is not a class, struct, or union type
   87 |         rebind<_Tp>::other _Tp_alloc_type;
      |                            ^~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:89:9: error: 'int' is not a class, struct, or union type
   89 |         pointer;
      |         ^~~~~~~
/usr/include/c++/14/bits/stl_vector.h: In instantiation of 'class std::vector<int, int>':
a.cc:31:25:   required from here
   31 |   vector<int,int> jobs(N);
      |                         ^
/usr/include/c++/14/bits/stl_vector.h:518:20: error: '_M_allocate' has not been declared in 'std::vector<int, int>::_Base'
  518 |       using _Base::_M_allocate;
      |                    ^~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:519:20: error: '_M_deallocate' has not been declared in 'std::vector<int, int>::_Base'
  519 |       using _Base::_M_deallocate;
      |                    ^~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:521:20: error: '_M_get_Tp_allocator' has not been declared in 'std::vector<int, int>::_Base'
  521 |       using _Base::_M_get_Tp_allocator;
      |                    ^~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:33:18: error: no match for 'operator[]' (operand types are 'std::vector<int, int>' and 'll' {aka 'long long int'})
   33 |   FOR(N)cin>>jobs[i].second>>jobs[i].first;
      |                  ^
a.cc:33:34: error: no match for 'operator[]' (operand types are 'std::vector<int, int>' and 'll' {aka 'long long int'})
   33 |   FOR(N)cin>>jobs[i].second>>jobs[i].first;
      |                                  ^
a.cc:15:20: error: 'class std::vector<int, int>' has no member named 'begin'
   15 | #define ALL(x) (x).begin(),(x).end()
      |                    ^~~~~
a.cc:34:8: note: in expansion of macro 'ALL'
   34 |   sort(ALL(jobs));
      |        ^~~
a.cc:15:32: error: 'class std::vector<int, int>' has no member named 'end'
   15 | #define ALL(x) (x).begin(),(x).end()
      |                                ^~~
a.cc:34:8: note: in expansion of macro 'ALL'
   34 |   sort(ALL(jobs));
      |        ^~~
a.cc:37:16: error: no match for 'operator[]' (operand types are 'std::vector<int, int>' and 'll' {aka 'long long int'})
   37 |     tmp += jobs[i].second;
      |                ^
a.cc:38:18: error: no match for 'operator[]' (operand types are 'std::vector<int, int>' and 'll' {aka 'long long int'})
   38 |     if(tmp > jobs[i].first){
      |                  ^