Help with error

prob: https://hack.codingblocks.com/app/contests/2022/125/problem

code: https://ide.codingblocks.com/s/421991

why am I getting an unwanted 0 when I print

node* root = buildTree(arr, 0, n-1);

call the build function like this

oh okay, but the size still remained the same right ?

yes size remain same
but there is some error in sizeof() some time it creates error

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.