Getting runtime error in c++

Hi, I’m solving https://www.codechef.com/problems/FFC219C

I’m getting runtime error for this code in c++

Can you guys please help why is this issue coming?

1 Like