#include #include #include #include int *col,n,k=1; int promising(int); void queens(int i) { int j; if(promising(i)) if (i==n) { if (k==2) //if this line and next line removed it print all avalable state return; // printf("the reason %d is: ",k); k++; for(int index=1;index<=n;index++) cout<>n; col=new int[n]; queens(0); getch(); }