Language: C++

include <bits/stdc++.h>
using namespace std;

//探索済みかどうかの確認

bool IsUnchecked(vector<vector<int>> vec, int kind)
{
    // 計算済みのマーク
    if (vec.at(kind).at(2) == 1)
    {
        return false;
    }
    return true;
}

// 最初に解く種類を指定した場合の最小回数を計算
long long ReFunc(vector<vector<int>> vec,
    int  kind,       //種別
    long long score,      //目標スコア
    long long tempScore,  //計算中のスコア
    long long tempCount,  //計算中のカウント
    long long minCount)   //最小カウント

{
    //最初にkindごとに全てループする
    for (int i = 0; i < vec.at(kind).at(0); i++)
    {
        tempScore += (kind+1) * 100;
        tempCount++;
        if (tempScore >= score)
        {
            return tempCount;
        }
    }
    tempScore += vec.at(kind).at(1);
    if (tempScore >= score)
    {
        return tempCount;
    }

    // 計算済みのマーク
    vec.at(kind).at(2) = 1;


    //目標スコアに届かなかった場合の処理
    for (int i = 0; i < vec.size(); i++)
    {
        if (IsUnchecked(vec, i))
        {
            minCount = min(minCount, ReFunc(vec, i, score, tempScore, tempCount, minCount));
        }
    }
    return minCount;
}


int main()
{
    int D, G;
    cin >> D >> G;
    vector<vector<int>> vec(D, vector<int>(3, 0));
    for (int  i = 0; i < D; i++)
    {
        for (int  j = 0; j < 2; j++)
        {
            cin >> vec.at(i).at(j);
        }
    }
    
    long long answer = INT64_MAX;
    for (int  i = 0; i < D; i++)
    {
        answer = min(answer, ReFunc(vec, i, G, 0, 0, INT64_MAX));
    }
   
    cout << answer << endl;
}



Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc:6:18: error: 'vector' was not declared in this scope
    6 | bool IsUnchecked(vector<vector<int>> vec, int kind)
      |                  ^~~~~~
a.cc:6:25: error: 'vector' was not declared in this scope
    6 | bool IsUnchecked(vector<vector<int>> vec, int kind)
      |                         ^~~~~~
a.cc:6:32: error: expected primary-expression before 'int'
    6 | bool IsUnchecked(vector<vector<int>> vec, int kind)
      |                                ^~~
a.cc:6:43: error: expected primary-expression before 'int'
    6 | bool IsUnchecked(vector<vector<int>> vec, int kind)
      |                                           ^~~
a.cc:6:51: error: expression list treated as compound expression in initializer [-fpermissive]
    6 | bool IsUnchecked(vector<vector<int>> vec, int kind)
      |                                                   ^
a.cc:17:18: error: 'vector' was not declared in this scope
   17 | long long ReFunc(vector<vector<int>> vec,
      |                  ^~~~~~
a.cc:17:25: error: 'vector' was not declared in this scope
   17 | long long ReFunc(vector<vector<int>> vec,
      |                         ^~~~~~
a.cc:17:32: error: expected primary-expression before 'int'
   17 | long long ReFunc(vector<vector<int>> vec,
      |                                ^~~
a.cc:18:5: error: expected primary-expression before 'int'
   18 |     int  kind,       //種別
      |     ^~~
a.cc:19:5: error: expected primary-expression before 'long'
   19 |     long long score,      //目標スコア
      |     ^~~~
a.cc:20:5: error: expected primary-expression before 'long'
   20 |     long long tempScore,  //計算中のスコア
      |     ^~~~
a.cc:21:5: error: expected primary-expression before 'long'
   21 |     long long tempCount,  //計算中のカウント
      |     ^~~~
a.cc:22:5: error: expected primary-expression before 'long'
   22 |     long long minCount)   //最小カウント
      |     ^~~~
a.cc:22:23: error: expression list treated as compound expression in initializer [-fpermissive]
   22 |     long long minCount)   //最小カウント
      |                       ^
a.cc: In function 'int main()':
a.cc:60:5: error: 'cin' was not declared in this scope
   60 |     cin >> D >> G;
      |     ^~~
a.cc:61:5: error: 'vector' was not declared in this scope
   61 |     vector<vector<int>> vec(D, vector<int>(3, 0));
      |     ^~~~~~
a.cc:61:19: error: expected primary-expression before 'int'
   61 |     vector<vector<int>> vec(D, vector<int>(3, 0));
      |                   ^~~
a.cc:66:20: error: 'vec' was not declared in this scope
   66 |             cin >> vec.at(i).at(j);
      |                    ^~~
a.cc:70:24: error: 'INT64_MAX' was not declared in this scope
   70 |     long long answer = INT64_MAX;
      |                        ^~~~~~~~~
a.cc:1:1: note: 'INT64_MAX' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  +++ |+#include <cstdint>
    1 | include <bits/stdc++.h>
a.cc:73:37: error: 'vec' was not declared in this scope
   73 |         answer = min(answer, ReFunc(vec, i, G, 0, 0, INT64_MAX));
      |                                     ^~~
a.cc:73:36: error: 'ReFunc' cannot be used as a function
   73 |         answer = min(answer, ReFunc(vec, i, G, 0, 0, INT64_MAX));
      |                              ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:73:18: error: 'min' was not declared in this scope; did you mean 'main'?
   73 |         answer = min(answer, ReFunc(vec, i, G, 0, 0, INT64_MAX));
      |                  ^~~
      |                  main
a.cc:76:5: error: 'cout' was not declared in this scope
   76 |     cout << answer << endl;
      |     ^~~~
a.cc:76:23: error: 'endl' was not declared in this scope
   76 |     cout << answer << endl;
      |                       ^~~~