https://ide.codingblocks.com/s/386806 is giving error
Preorder BST is giving error
what is the question that you are doing?
it seems like you have mixed everything in your code.
hey @shrutikatyal check this: https://ide.codingblocks.com/s/386826
if you have any doubt you can ask here:
Happy Learning!!