Can u tell mistake in my code ..correct answer is not coming

at 111 correct statement is root=dele(root,a[q]);

still wrong answer is coming sir … ic oreected that mistake https://ide.codingblocks.com/s/387522

try this Modified code

you are taking one extra input in build()

this code works but only one test case got passed rest got failed …please can u telll why other test cases are not passing

print each testcase in different line
use cout<<endl; after each testcase

i did that sir now 2 test case get passed and for 3 TLE is comingg

i have tested this code
it is passing all testcase

Modified Code

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.