Language: C++

include<bits/stdc++.h>
using namespace std ;
typedef long long  ll;
typedef long double ld;
const ll inf = 1e18 + 10;
const ll N = 1e5 + 10;
ll n , k , x , y ;
ld f;
ll dp[110][N];
vector<pair<ll , ll>> v;
ll check(ll ind , ll x)
{
    ll cost = 0;
    if(ind == v.size()) return 0;
    if(v[ind].second <= x)
    {
        cost = max(v[ind].first + check(ind + 1 , x - v[ind].second) , check(ind + 1 , x));
    }else
    {
        check(ind + 1 , x);
    }
    return cost;
    
}
void solve()
{
    cin >> n >> k;
    for(ll i = 1 ; i <= n ; i ++)
    {
        cin >> x >> y;
        v.push_back(make_pair(y , x));
    }
    memset(dp , -1 , sizeof dp);
    cout << check(0 , k);
}
int main()
{
    ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
    ll t;
    t = 1;
    //cin >> t ;
    while(t --)
        solve();
    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc:10:1: error: 'vector' does not name a type
   10 | vector<pair<ll , ll>> v;
      | ^~~~~~
a.cc: In function 'll check(ll, ll)':
a.cc:14:15: error: 'v' was not declared in this scope
   14 |     if(ind == v.size()) return 0;
      |               ^
a.cc:15:8: error: 'v' was not declared in this scope
   15 |     if(v[ind].second <= x)
      |        ^
a.cc:17:16: error: 'max' was not declared in this scope
   17 |         cost = max(v[ind].first + check(ind + 1 , x - v[ind].second) , check(ind + 1 , x));
      |                ^~~
a.cc: In function 'void solve()':
a.cc:27:5: error: 'cin' was not declared in this scope
   27 |     cin >> n >> k;
      |     ^~~
a.cc:31:9: error: 'v' was not declared in this scope
   31 |         v.push_back(make_pair(y , x));
      |         ^
a.cc:31:21: error: 'make_pair' was not declared in this scope
   31 |         v.push_back(make_pair(y , x));
      |                     ^~~~~~~~~
a.cc:33:5: error: 'memset' was not declared in this scope
   33 |     memset(dp , -1 , sizeof dp);
      |     ^~~~~~
a.cc:1:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
  +++ |+#include <cstring>
    1 | include<bits/stdc++.h>
a.cc:34:5: error: 'cout' was not declared in this scope
   34 |     cout << check(0 , k);
      |     ^~~~
a.cc: In function 'int main()':
a.cc:38:5: error: 'ios_base' has not been declared
   38 |     ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
      |     ^~~~~~~~
a.cc:38:38: error: 'cin' was not declared in this scope
   38 |     ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
      |                                      ^~~
a.cc:38:46: error: 'NULL' was not declared in this scope
   38 |     ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
      |                                              ^~~~
a.cc:1:1: note: 'NULL' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | include<bits/stdc++.h>
a.cc:38:52: error: 'cout' was not declared in this scope
   38 |     ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
      |                                                    ^~~~