Out of Range Error Map

@ambuj_0909
Change line 36 to visited[i]=false;

@shrm.abhishek.kmr
I am still getting segmentation fault error after changing line 36

@ambuj_0909
Change line 28 to vector outgoing(V,0);

@shrm.abhishek.kmr
The code ran successfully but I am getting wrong answers for both the test cases. Could you please look into it?