N_queen problem


i m getting runtime error can u pls tell me where have i gone wrong

Your code was producing wrong output in case of sample case input. I have edited your code a little bit, try to submit now,

And plz make changes to your board array as per the input array constraint in your question.

thankyou so much
what was the error?