getting run error .
ide: https://ide.codingblocks.com/s/244069
Query Bits - segment tree
Hello @Vishal123,
You need to use lazy propagation since it involves range updates. You can store 0 or 1 in lazy tree.
And store number formed in the nodes.
You may refer to the following code:
Hope, this would help.