Explain the error please
just add
return root;
at the end of BuildTree function
also add endl after calling inorder preorder postorder
just add
return root;
at the end of BuildTree function
also add endl after calling inorder preorder postorder