N-Queens Problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

N-Queens Problem

I am coding the infamous N-Queens problem. But I have got a problem. The program is executing but ain't giving output as expected as I have encountered a problem as the matrix board values are not changed and are having the very first values assigned to board i.e, 0 assigned to each and every element of board. What could be the logical error? Here is the link to code: https://code.sololearn.com/co5K4zkcBvZv/#cpp

15th Sep 2019, 12:30 PM
Ashish
Ashish - avatar
1 Answer
0
Omfg, I am really pissed off of myself. I debugged it, did everything and it was such a silly mistake. Thank you so very much, again.
15th Sep 2019, 1:56 PM
Ashish
Ashish - avatar