Cody

Solution 2621251

Submitted on 27 Jun 2020
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
b = zeros(6,7); y_correct = []; assert(isequal(c4win(b),y_correct))

Error in solution: Line: 10 Column: 51 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

2   Fail
b = [0 0 0 0 0 0 0; 0 0 0 0 0 0 0; 0 0 0 2 0 0 0; 0 0 0 1 0 0 0; 0 0 0 2 2 0 0; 0 0 2 1 1 1 0]; y_correct = 7; assert(isequal(c4win(b),y_correct))

Error in solution: Line: 10 Column: 51 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

3   Fail
b = [0 0 0 0 0 0 0; 0 0 0 0 0 0 0; 0 0 0 2 0 0 0; 0 0 0 1 0 0 0; 0 2 1 2 2 0 0; 2 1 2 1 1 1 0]; y_correct = 7; assert(isequal(c4win(b),y_correct))

Error in solution: Line: 10 Column: 51 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

4   Fail
b = [0 0 0 0 0 0 0; 0 0 0 0 0 0 0; 0 0 0 2 0 0 0; 0 0 0 1 0 0 0; 0 2 1 2 2 1 0; 2 1 2 1 1 1 2]; y_correct = []; assert(isequal(c4win(b),y_correct))

Error in solution: Line: 10 Column: 51 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

5   Fail
b = [0 0 0 0 0 0 0; 0 0 0 0 0 0 0; 0 0 0 2 0 0 0; 0 0 0 1 1 0 0; 2 2 1 2 2 1 0; 2 1 2 1 1 1 2]; y_correct = 5; assert(isequal(c4win(b),y_correct))

Error in solution: Line: 10 Column: 51 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

6   Fail
b = [0 0 0 0 0 0 0; 0 0 0 0 0 0 0; 0 0 0 2 0 0 0; 2 0 0 1 1 1 0; 2 2 1 2 2 1 0; 2 1 2 1 1 1 2]; y_correct = [3 5 6]; assert(isequal(c4win(b),y_correct))

Error in solution: Line: 10 Column: 51 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

7   Fail
b = [2 2 1 2 1 2 1; 1 2 2 1 2 2 2; 2 1 1 2 2 1 1; 1 2 1 1 1 2 1; 2 2 1 2 2 1 1; 2 1 2 1 1 1 2]; y_correct = []; assert(isequal(c4win(b),y_correct))

Error in solution: Line: 10 Column: 51 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

8   Fail
b = [0 0 0 0 0 0 0; 0 0 0 0 0 0 0; 0 0 0 0 0 0 0; 2 1 0 0 0 0 0; 2 2 1 1 0 0 0; 1 2 2 1 0 0 0]; y_correct = 1; assert(isequal(c4win(b),y_correct))

Error in solution: Line: 10 Column: 51 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

9   Fail
b = [0 0 0 0 0 0 0; 0 0 0 0 0 0 0; 0 0 0 0 0 0 0; 0 1 2 0 0 2 0; 0 1 1 0 1 2 0; 0 1 2 1 2 2 0]; y_correct = [2 4]; assert(isequal(c4win(b),y_correct))

Error in solution: Line: 10 Column: 51 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

10   Fail
b = [0 0 0 0 2 2 0 0 0; 0 0 0 2 1 1 0 0 0; 0 0 2 1 2 2 0 0 0; 0 0 1 2 1 1 0 0 0; 1 0 1 1 2 2 0 0 0; 2 2 1 2 1 1 0 0 0]; y_correct = 2; assert(isequal(c4win(b),y_correct))

Error in solution: Line: 10 Column: 51 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

11   Fail
b = [0 0 0 0 0 0 0 2 0; 0 0 0 0 0 2 2 1 1; 0 0 0 0 0 2 1 2 2; 0 0 0 0 0 1 2 1 1; 0 0 0 1 0 1 1 2 2; 0 0 0 2 2 1 2 1 1]; y_correct = [5 9]; assert(isequal(c4win(b),y_correct))

Error in solution: Line: 10 Column: 51 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

12   Fail
b = [0 0 0 0 0 2; 0 0 0 1 0 1; 0 0 0 1 0 2; 0 1 0 1 0 1; 0 2 1 2 0 2; 1 2 2 2 0 1; 2 2 1 1 0 2]; y_correct = [4]; assert(isequal(c4win(b),y_correct))

Error in solution: Line: 10 Column: 51 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.