Language: C++

include <bits/stdc++.h>
#define INF 9223372036854775807
using namespace std;
long long ans;
long long D,G,p,c;
vector<long long>vec_p;
vector<long long>vec_c;
long long solve(vector<long long>tmp_p, vector<long long>tmp_c) {
  long retans;
  long num,s,si,restmax, need;
  retans = INF;
  for(int mask=0; mask < (1 << D); mask++) {
    num = 0;
    s = 0;
    si = 0;
    restmax = 0;
    need = 0;
    for(int i = 0; i < D; i++) {
      if((mask >> i) & 1) {
        s += (i + 1) * 100 * tmp_p[i] + tmp_c[i];
        num += tmp_p[i];
      } else {
        restmax = i;
      }
    }
    if(s < G) {
      si = (restmax + 1) * 100;
      need = (G - s + si - 1) / si;
      if(need >= tmp_p[restmax]) {
        continue;
      }
      num += need;
    }
    retans = min(retans, num);
  }
  return retans;
}

int main(int arg, char* argv[]) {
  scanf("%d %d ", &D, &G);
  for(int i = 0; i < D; i++) {
    p = c = 0;
    scanf("%d %d", &p, &c);
    vec_p.push_back(p);
    vec_c.push_back(c);
  }
  ans = solve(vec_p, vec_c);
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc:6:1: error: 'vector' does not name a type
    6 | vector<long long>vec_p;
      | ^~~~~~
a.cc:7:1: error: 'vector' does not name a type
    7 | vector<long long>vec_c;
      | ^~~~~~
a.cc:8:17: error: 'vector' was not declared in this scope
    8 | long long solve(vector<long long>tmp_p, vector<long long>tmp_c) {
      |                 ^~~~~~
a.cc:8:24: error: expected primary-expression before 'long'
    8 | long long solve(vector<long long>tmp_p, vector<long long>tmp_c) {
      |                        ^~~~
a.cc:8:41: error: 'vector' was not declared in this scope
    8 | long long solve(vector<long long>tmp_p, vector<long long>tmp_c) {
      |                                         ^~~~~~
a.cc:8:48: error: expected primary-expression before 'long'
    8 | long long solve(vector<long long>tmp_p, vector<long long>tmp_c) {
      |                                                ^~~~
a.cc:8:63: error: expression list treated as compound expression in initializer [-fpermissive]
    8 | long long solve(vector<long long>tmp_p, vector<long long>tmp_c) {
      |                                                               ^
a.cc: In function 'int main(int, char**)':
a.cc:40:3: error: 'scanf' was not declared in this scope
   40 |   scanf("%d %d ", &D, &G);
      |   ^~~~~
a.cc:44:5: error: 'vec_p' was not declared in this scope
   44 |     vec_p.push_back(p);
      |     ^~~~~
a.cc:45:5: error: 'vec_c' was not declared in this scope
   45 |     vec_c.push_back(c);
      |     ^~~~~
a.cc:47:15: error: 'vec_p' was not declared in this scope
   47 |   ans = solve(vec_p, vec_c);
      |               ^~~~~
a.cc:47:22: error: 'vec_c' was not declared in this scope
   47 |   ans = solve(vec_p, vec_c);
      |                      ^~~~~
a.cc:47:27: error: 'solve' cannot be used as a function
   47 |   ans = solve(vec_p, vec_c);
      |                           ^
a.cc:48:3: error: 'cout' was not declared in this scope
   48 |   cout << ans << endl;
      |   ^~~~
a.cc:48:18: error: 'endl' was not declared in this scope
   48 |   cout << ans << endl;
      |                  ^~~~