Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,j,n) for(int i=(int)(j);i<(int)(n);i++)
#define REP(i,j,n) for(int i=(int)(j);i<=(int)(n);i++)
#define MOD 1000000007
#define int long long
#define ALL(a) (a).begin(),(a).end()
#define vi vector<int>
#define vii vector<vi>
#define pii pair<int,int>
#define priq priority_queue<int>
#define disup(A,key) distance(A.begin(),upper_bound(ALL(A),(int)(key)))
#define dislow(A,key) distance(A.begin(),lower_bound(ALL(A),(int)(key)))
#define tii tuple<int,int,int>
#define Priq priority_queue<int,vi,greater<int>>
#define pb push_back
#define mp make_pair
signed main(){
  int N,M,L; cin>>N>>M>>L;
  vector<vector<pii>> A(N);
  rep(i,0,M){
    int X,Y,Z; cin>>X>>Y>>Z;
    A[X-1].pb(mp(Y-1,Z));
    A[Y-1].pb(mp(X-1,Z));
  }
  vector<vector<pii>> F(N,vectod<pii>(N,mp(MOD,MOD)));
  rep(i,0,N){
    priority_queue<pair<int,pii>,vector<pair<int,pii>>,greater<pair<int,pii>>> Q;
    Q.push(mp(0,mp(0,i)));
    F[i][i]=mp(0,0);
    while(Q.size()>0){
      int X=Q.front().first,Y=Q.front().second.second,Z=L-Q.front().second.first;
      rep(j,0,A[Y].size()){
        int B=A[Y][j].first,C=A[Y][j].second,D=X,E=Z;
        if(E<C){
          D++;
          E=L;
        }
        if(E>=C&&F[i][B]>mp(D,L-E)){
          F[i][B]=mp(D,L-E);
          Q.push(mp(D,mp(L-E,B)));
        }
      }
    }
  }
  int Q; cin>>Q;
  rep(_,0,Q){
    int S,T; cin>>S>>T;
    int ans=F[S-1][T-1];
    if(ans==MOD)
      ans=-1;
    cout<<ans<<endl;
  }
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:26:27: error: 'vectod' was not declared in this scope
   26 |   vector<vector<pii>> F(N,vectod<pii>(N,mp(MOD,MOD)));
      |                           ^~~~~~
a.cc:26:37: error: expected primary-expression before '>' token
   26 |   vector<vector<pii>> F(N,vectod<pii>(N,mp(MOD,MOD)));
      |                                     ^
a.cc:32:15: error: 'class std::priority_queue<std::pair<long long int, std::pair<long long int, long long int> >, std::vector<std::pair<long long int, std::pair<long long int, long long int> > >, std::greater<std::pair<long long int, std::pair<long long int, long long int> > > >' has no member named 'front'
   32 |       int X=Q.front().first,Y=Q.front().second.second,Z=L-Q.front().second.first;
      |               ^~~~~
a.cc:33:17: error: 'Y' was not declared in this scope
   33 |       rep(j,0,A[Y].size()){
      |                 ^
a.cc:3:47: note: in definition of macro 'rep'
    3 | #define rep(i,j,n) for(int i=(int)(j);i<(int)(n);i++)
      |                                               ^
a.cc:35:12: error: 'E' was not declared in this scope
   35 |         if(E<C){
      |            ^
a.cc:35:14: error: 'C' was not declared in this scope
   35 |         if(E<C){
      |              ^
a.cc:36:11: error: 'D' was not declared in this scope
   36 |           D++;
      |           ^
a.cc:39:12: error: 'E' was not declared in this scope
   39 |         if(E>=C&&F[i][B]>mp(D,L-E)){
      |            ^
a.cc:39:15: error: 'C' was not declared in this scope
   39 |         if(E>=C&&F[i][B]>mp(D,L-E)){
      |               ^
a.cc:39:29: error: 'D' was not declared in this scope
   39 |         if(E>=C&&F[i][B]>mp(D,L-E)){
      |                             ^
a.cc:49:23: error: cannot convert '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'std::pair<long long int, long long int>'} to 'long long int' in initialization
   49 |     int ans=F[S-1][T-1];
      |                       ^