i dont know whats wrong with my code
PLEASE COMMENT THE MISTAKES AND MAKE THE REQUIRED CHANGES
its showing some error …
my code
https://ide.codingblocks.com/s/40957
questn link
https://hack.codingblocks.com/contests/c/512/399
i dont know whats wrong with my code
PLEASE COMMENT THE MISTAKES AND MAKE THE REQUIRED CHANGES
its showing some error …
my code
https://ide.codingblocks.com/s/40957
questn link
https://hack.codingblocks.com/contests/c/512/399
Hey Jai, you have made some small mistakes as you have taken ans as an int variable in main() but you are passing it as an int* in void nqueen(int row,int n,int *ans,int table[][100])
that doesn’t make sense. One more thing is you seems to be a lil bit confused in where you are supposed to use i and j. So, you can refer this code.
.
this doubt was futile i mean i know how to do what i had asked
this doubt was futile i mean i know how to do what i had asked
just one thing
why am i getting faulty output
code is almost completely correct