Having problem in remove from BST

This is the code for remove from bst someone please tell me the problem with this code

@Mukul70,
https://ide.codingblocks.com/s/306742 corrected code.

I have added comments on the lines I have added.

In the remove function when add conditions for null when n1.left!=null &&n1.right==null and n1.left == null && n1.right != null.