How to skip warning and run the code

code- https://ide.codingblocks.com/s/252995

Hey @anubhavb11
You’re getting warning because you’re not returning anything from buildBST function, it’s return type is node*, so return something from this function, include return root statement at the end of the function.

1 Like