Tree right view no ouput form code

codeLink: https://ide.codingblocks.com/s/184148
I am getting no output for my code please correct it

Hey @Divya_321
Your code to create the tree has issues. You are not popping elements from queue after selecting them. So your code never exits the while(!q.empty()) loop. Rest your code is fine.

I f your doubt is resolved please mark it as closed.

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.