Cody

# Problem 44812. Draw Dominos

Solution 2628718

Submitted on 29 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
dp = draw_dominos([0,0]); da = [' | '; ' | '; ' | ';]; assert(strcmp(dp,da))

Error in solution: Line: 48 Column: 1 The function "domino" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

2   Fail
dp = draw_dominos([1,2]); da = [' | o '; ' o | '; ' | o ';]; assert(strcmp(dp,da))

Error in solution: Line: 48 Column: 1 The function "domino" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

3   Fail
dp = draw_dominos([3,4]); da = [' o | o o '; ' o | '; ' o | o o ';]; assert(strcmp(dp,da))

Error in solution: Line: 48 Column: 1 The function "domino" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

4   Fail
dp = draw_dominos([5,6]); da = [' o o | o o o '; ' o | '; ' o o | o o o ';]; assert(strcmp(dp,da))

Error in solution: Line: 48 Column: 1 The function "domino" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

5   Fail
dp = draw_dominos([7,8]); da = [' o o o | o o o '; ' o | o o '; ' o o o | o o o ';]; assert(strcmp(dp,da))

Error in solution: Line: 48 Column: 1 The function "domino" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

6   Fail
dp = draw_dominos([9,9]); da = [' o o o | o o o '; ' o o o | o o o '; ' o o o | o o o ';]; assert(strcmp(dp,da))

Error in solution: Line: 48 Column: 1 The function "domino" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

7   Fail
dp = draw_dominos([3,7]); da = [' o | o o o '; ' o | o '; ' o | o o o ';]; assert(strcmp(dp,da))

Error in solution: Line: 48 Column: 1 The function "domino" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

8   Fail
dp = draw_dominos([7,3]); da = [' o o o | o '; ' o | o '; ' o o o | o ';]; assert(strcmp(dp,da))

Error in solution: Line: 48 Column: 1 The function "domino" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

9   Fail
dp = draw_dominos([5,5]); da = [' o o | o o '; ' o | o '; ' o o | o o ';]; assert(strcmp(dp,da))

Error in solution: Line: 48 Column: 1 The function "domino" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

10   Fail
dp = draw_dominos([1,8]); da = [' | o o o '; ' o | o o '; ' | o o o ';]; assert(strcmp(dp,da))

Error in solution: Line: 48 Column: 1 The function "domino" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

11   Fail
dp = draw_dominos([6,4]); da = [' o o o | o o '; ' | '; ' o o o | o o ';]; assert(strcmp(dp,da))

Error in solution: Line: 48 Column: 1 The function "domino" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

12   Fail
dp = draw_dominos([4,2]); da = [' o o | o '; ' | '; ' o o | o ';]; assert(strcmp(dp,da))

Error in solution: Line: 48 Column: 1 The function "domino" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

13   Fail
dp = draw_dominos([2,5]); da = [' o | o o '; ' | o '; ' o | o o ';]; assert(strcmp(dp,da))

Error in solution: Line: 48 Column: 1 The function "domino" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

14   Fail
dp = draw_dominos([9,0]); da = [' o o o | '; ' o o o | '; ' o o o | ';]; assert(strcmp(dp,da))

Error in solution: Line: 48 Column: 1 The function "domino" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

15   Fail
dp = draw_dominos([8,7]); da = [' o o o | o o o '; ' o o | o '; ' o o o | o o o ';]; assert(strcmp(dp,da))

Error in solution: Line: 48 Column: 1 The function "domino" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!