Giving runtime error.please help where i am wrong

#include
#include<bits/stdc++.h>
#include
using namespace std;
long long int sum=0;
int count=0;
void insertedge(vectoradj[], int u, int v){
adj[u].push_back(v);
adj[v].push_back(u);
}
void printedge(vectoradj[], int v){
for(int i=0;i<v;i++){
for(int j=0;j<adj[i].size();j++){
cout<<i<<" β€œ<<adj[i][j]<<” β€œ;
}
cout<<”\n";
}
}

void bfs(vector< int>adj[],int s, int v){

  unordered_map< int, int>dist;
  for(long long int i=0;i<=v;i++){
      dist[i]=INT_MAX;
  }

int vis[v+1]={0};
dist[s]=0;
queueq;
q.push(s);
vis[s]=1;
while(!q.empty()){
int r=q.front();

     q.pop();
     for( int j=0;j<adj[r].size();j++){
         
         if(vis[adj[r][j]]){
            
             if(dist[adj[r][j]]>dist[r]+1){
                 dist[adj[r][j]]=dist[r]+1;
             }
             
         }
         else{
                  
                 vis[adj[r][j]]=1;
                 q.push(adj[r][j]);
                 dist[adj[r][j]]=dist[r]+1;
               
             }
     }
 }

 cout<<dist[30];

}

int main(){
int n;
cin>>n;
for(int i=0;i<n;i++){
int m;
int b,c;
cin>>m;
cin>>b>>c;
int a[m]={0};
vector< int>adj[m+1];
for(int j=0;j<b+c;j++){
int p,q;
cin>>p>>q;
a[p]=q;
}

    for(int j=0;j<m;j++){
        for(int k=1;k<=6;k++){
            int t=j+k;
            t=t+a[t];
            if(t<=m){
                
                insertedge(adj,j,t);
            }
        }
    }
    bfs(adj,0,m);
}
 return 0;

}

please share the link of code

paste you code at

click on file->save->link will be generated
send the link of code generated
it will look like https://ide.codingblocks.com/s/258793

Modified Code

i have done all required changes you can see

i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved
if you have more doubts regarding this feel free to ask