Why is my BFS code not working

https://ide.codingblocks.com/s/72902
Can someone correct my code.

u have just complete the while loop bracket before visiting the child i have corrected it
https://ide.codingblocks.com/s/72908

LOL thanks, I got it afterwards