Can you tell me my mistake?
But in output, it is given that we have to print each vertical level in a new line
in output file all elements are in single line
4
2
1 5 6
3 8
7
9
Sir, this is the required output
i am talking about output file , not the sample output
Sir, I did not understand what u said
…
in the hidden cases , all elements are in single line so domt print endl
Sir, but in the question it was given that print all the elements of same level in a single line. How did you come to know that al the elements are to be printed in a single line?
…
i have access to those files
Sir, it is still showing compilation error
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.