Help needed in Segment Tree with lazy add,lazy set and range query

Revision en1, by ukwho-1, 2025-01-02 22:07:44

Can somebody pls tell me where my code goes wrong i am using a flag variable to distinguish between add and set operation.This is segment tree edu section problem part 4-A it gives wrong answer on test 3.

Problem is Assignment, Addition, and Sum

My Code
Tags segment tree, help, lazy propagation, plshelp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ukwho-1 2025-01-02 22:07:44 4810 Initial revision (published)