Where have I made mistake?

segment_tree

#1

Can anyone point out my mistake? I am getting WA for first test case of the sample test cases. I think something is wrong with my creation of the tree.

problem
My code


#2

admin to
kesehatan alami


#3

SPAM ALERT


#4

@bangga Did u create the profile only to promote your link as you haven’t made any submissions to any problem at all


#5

@dragonemperor , yes he did. He has currently posted 7 posts on Discuss, and all 7 are spam. Because of that , I ran out of flags for today flagging his posts. His only purpose is to promote that website.