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.

[CHEFEXQ]

1

**Edit:**

I changed ‘`int mp[SQ][1222222]`

’ to ‘`unordered_map`

’ , and now I am getting SIGFPE.

Please help!

Link to your solution with little bit explanation of it will also be helpful.