SEGMENT TREE-QUERY BITS

got right answer on test case given in problem…but got wrong answer on submittion test cases…not able to find whats wrong in this code…

my code-https://ide.codingblocks.com/s/219451

Hey @kumar_sunny
Issues seems to be with use of int in power function
Rest logic seems fine
If the issue still persists please have a look at this code