SIGSEGV in LR query november lunchtime

i am getting sigsev error in lr query using segment tree please help.

post d link to ur code !

@manaranjanfav,while assigning values to left and right variables…u did right=arr[rq]…dis is incorrect coz rq can be upto 1e9 whereas ur arr size is 1e5+5…!
hope u got it !

got it thanks