Cody

Problem 44785. Lunar Arithmetic (Addition)

Solution 3431493

Submitted on 27 Oct 2020 at 4:46
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
x = 5; y = 6; assert(isequal(lunarAddition(x,y),6))

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

2   Fail
x = 456; y = 789; assert(isequal(lunarAddition(x,y),789))

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

3   Fail
x = 86; y = 12374; assert(isequal(lunarAddition(x,y),12386))

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

4   Fail
x = 29; y = 1652; z = 95412; assert(isequal(lunarAddition(x,y,z),95659))

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

5   Fail
x = 33; y = 1111; z = 4456; a = 38; assert(isequal(lunarAddition(x,y,z,a),4458))

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

6   Fail
x = 85214; y = 4785; z = 1; a = 850615; b = 14702140; assert(isequal(lunarAddition(x,y,z,a,b),14885785))

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

7   Fail
x = 9; y = 0; assert(isequal(lunarAddition(x,y),9))

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

Suggested Problems

More from this Author66

Community Treasure Hunt

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

Start Hunting!