Please help me figure out what is wrong in my implementation of sqrt decomposition for CHEFEXQ.
I tried hard, but couldn’t find.
I am a beginner in implementing sqrt decomposition.
I changed ‘
int mp[SQ]’ to ‘
unordered_map’ , and now I am getting SIGFPE.
Link to your solution with little bit explanation of it will also be helpful.