Breadth first search

instead of making map of visited can i simply make vector visited for bfs but compiler is throwing a run time error

hi @gunvirmittal_9f1753c05330d09c
send the code on ide.codingblocks.com

  1. login
  2. write
  3. save (ctrl + s)
  4. send the url of the page then