Question :-https://hack.codingblocks.com/app/practice/9/983/problem

what is wrong in the code and it is giving me segmentation fault.
code:-https://ide.codingblocks.com/s/234893
pls help me out asap

@17manishms
You’re using 0 based indexing while input nodes have 1 based indexing

i am not able to understand what u are saying

@17manishms
Input vertices are numbered from 1 to N
Just make line 10 this
V = v+1;

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.