N-queen problem (backtracking)

not getting output
what’s wrong in my code ?

@souravraj024 wait some time i will check

@souravraj024 here corrected


dont forget to hit like and mark resolved if cleared :smiley:

how to find the number of ways to place n queens ?
in above code we print the pattern .

@souravraj024 take a global cnt variable and after printing dont return true return false so all other options are checked