Create tree ( Using preorder and inorder)

https://ide.codingblocks.com/s/62875
getting wrong answer in 2 test cases.

Hi Vishesh , you have forgot to put an endl if the right child of tree exist . Line no. 49.

cout<right->data<<endl;

yeah right!!! Thanks!!!