Help Me Plz!!!! Question related to segment trees(with two lazy updates)

Revision en1, by naruto_returns, 2020-12-16 00:54:33

Question :- Range Updates and Sums on cses Link The 2nd test case is failing for 45 queries rest (65k queries) are correct. I am not able to find the logical mistake in lazy updates part. Please can you help to solve this

Code
Tags #segment tree, #lazy propagation, lazy updates

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English naruto_returns 2020-12-17 18:09:15 2708 Tiny change: ' summary="Code">\n\n' -> ' summary="Non-Working Code">\n\n'
en1 English naruto_returns 2020-12-16 00:54:33 3848 Initial revision (published)