Why isnt it working properly

@tusharbajaj200153_02bc6c0c5583c81d r u writing code for replace with sum of greater?

@talhashamim001 yes, for taking the input in inorder form

figured it out i was just taking input as cin<<a[n] instead of cin<<a[i]

oh cool then…i missed this doubt

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.