LINK TO THE PROBLEM - https://www.spoj.com/problems/DQUERY/ Link to the Source Code - https://ideone.com/EacVYA Please help me spot the error.
Sorry I send the wrong link. Source Code - https://ideone.com/NyhLqI