Cody

# Problem 113. N-Queens Checker

Solution 1962695

Submitted on 6 Oct 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
a = [1 0 0; 0 0 1; 0 0 0]; tf_correct = true; assert(isequal(queens(a),tf_correct))

Error in solution: Line: 9 Column: 27 Invalid use of operator.

2   Fail
a = [0 0 0 1; 1 0 0 0; 0 0 1 0; 0 1 0 0]; tf_correct = false; assert(isequal(queens(a),tf_correct))

Error in solution: Line: 9 Column: 27 Invalid use of operator.

3   Fail
a = [1 0 0 0 0; 0 0 0 1 1]; tf_correct = false; assert(isequal(queens(a),tf_correct))

Error in solution: Line: 9 Column: 27 Invalid use of operator.

4   Fail
a = [ ... 0 0 1 0 0 0 0 0; 0 0 0 0 0 0 1 0; 0 1 0 0 0 0 0 0; 0 0 0 0 0 0 0 1; 0 0 0 0 0 1 0 0; 0 0 0 1 0 0 0 0; 1 0 0 0 0 0 0 0; 0 0 0 0 1 0 0 0]; tf_correct = true; assert(isequal(queens(a),tf_correct))

Error in solution: Line: 9 Column: 27 Invalid use of operator.

5   Fail
a = ones(15,7); tf_correct = false; assert(isequal(queens(a),tf_correct))

Error in solution: Line: 9 Column: 27 Invalid use of operator.

6   Fail
a = zeros(20,23); a(1,22) = 1; a(2,23) = 1; tf_correct = false; assert(isequal(queens(a),tf_correct))

Error in solution: Line: 9 Column: 27 Invalid use of operator.

7   Fail
a = [1 0; 0 1]; tf_correct = false; assert(isequal(queens(a),tf_correct))

Error in solution: Line: 9 Column: 27 Invalid use of operator.

8   Fail
a = [1 0 1; 0 0 0; 0 1 0]; tf_correct = false; assert(isequal(queens(a),tf_correct))

Error in solution: Line: 9 Column: 27 Invalid use of operator.