Why I am getting Run time error?

Custom test case are working fine but I am getting run error on submission. Please help

@Bharatnischal send me your code by saving it in (https://ide.codingblocks.com/) .

@Bharatnischal declare your vector of graph after taking input n otherwise n will be not defined and hence will give run error.

Thanks Devwrat sahu its now working

1 Like

@Bharatnischal you are welcome.