getting a run time error while it runs fine on ide
solution : https://ide.codingblocks.com/s/68657
Getting a runtime error
Worst case size of Segment tree is 4*(No of elements in array) +1.
Just use tree[50000] instead of tree[100000]
you will get rid of Run time error.
Hit like if u get it 