Code is correct but getting wrong answer

Ques is MIN-QUERY -I Segment Trees
Ques: https://hack.codingblocks.com/contests/c/547/309
Code:
https://ide.codingblocks.com/s/46677

https://ide.codingblocks.com/s/46703

In the update query, you are supposed to set A[x]=y, and not increment A[x].
I have made the changes.
Rest of the code was perfect.

1 Like

Again Noob me :sweat_smile: Thanks

No issues, keep coding bro…!! :slight_smile: