Delete BST not working

There are errors in the code you have given. Correct the syntax errors and then share your code. Also in the delete function, you must pass the root node by reference.