Hey Guys, please I need your help. My submission https://codeforces.com/contest/1516/submission/135648061 to problem https://codeforces.com/contest/1516/problem/D is giving different outputs(on some online compiler vs codeforces compiler), on codeforces It's not showing the thing I wanted it to show, due to some overflow reasons, which I couldn't figure out from my code, please help me find it. I have literally wasted 2-3 hours figuring out why overflow, But didn't made any kind of progress. Even read some blogs about it, but..
powerr must be strictly lower than size of your sparse table, you put that it can also be equal to its size, which is incorrect
Thanks bro, at least that error is gone. Now I need to find some more rectifications for getting AC.
Thanks a lot for everyone who helped, finally problem is solved. And, from some downvotes, I can clearly understand some people couldn't endure my dumbness in lot of places in my earlier code. Anyway, I don't care, I will keep solving harder and harder questions ,until I overcome my dumbness, and prove my intelligence!!