why runtime error in this function c++ depth first search? : <p>why this function get runtime error
what is the wrong with it?</p>

<pre><code>void dfs(int node){
  visited[node]=true;
  for(int i=1;i&lt;=arr[node].size();i++){
   int child=arr[node][i];
   if(!visited[child]){
    dfs(child);
   }
  }
}
</code></pre>
