Code is showing runtime error(SIGSEV) when submitting

link to the problem–https://www.codechef.com/problems/PEPPERON
link to my code-https://www.codechef.com/viewsolution/53798324

The d[i]s should probably be d[j]s.

1 Like

yeah it was such a small mistake , dont know how I missed that
thanks anyway

2 Likes