return(i);
}
-boolean place_ok (int i) {
+static boolean place_ok (int i) {
// return whether queen in column i is
// not in check from queens left of it
int j = 0;
return(res);
}
-int solve (int n) {
+static int solve (int n) {
// return the number of solutions to the n-queens problem
int c = 0;
int res = 0;