Segment tree and lazy propagation

editorial

#1

I am getting WA. Can you please help?
Question: https://www.codechef.com/problems/IOPC1207
My Solution: https://www.codechef.com/viewsolution/23926862

This is a question based on lazy propagation. There ain’t any editorial and only 8 submissions are there so am facing a prblm trying to figure out the bug;

Thanks in advance!