Delete Nodes from BST

Why aren’t the test cases working?

at line no 90
correct statement is
root=Delete_Node(root, d);

after deleting you also have to update the root in main

Still dont get the desired output. Sample test case gives me 4 7 6 8 and not 6 4 7 8. https://ide.codingblocks.com/s/328734

at line no 62
correct statement will be
Node* replace = root->right;
because you have to replace the node with leftmost of root->right not left

Solved, understood. Thanks!