N queen problem

https://ide.codingblocks.com/s/34622

board is printing large negative values
and on x y is printing 3 4 2 etc

where the code is going wrong

https://ide.codingblocks.com/s/34721

I have made a small change. Please comment if you have any doubts.

1 Like

https://ide.codingblocks.com/s/37352

I am not getting any output may i know what is the issue?