Cody

Problem 45352. Number generator

Solution 2171297

Submitted on 23 Mar 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
assert(isequal(number_gen(74562),168))

Error in solution: Line: 14 Column: 8 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

2   Fail
assert(isequal(number_gen(74561562),16713))

Error in solution: Line: 14 Column: 8 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

3   Fail
assert(isequal(number_gen(111111111111),222222))

Error in solution: Line: 14 Column: 8 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

4   Fail
assert(isequal(number_gen(1111111111111),2222221))

Error in solution: Line: 14 Column: 8 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

5   Fail
assert(isequal(number_gen(3456696524532), 122111115))

Error in solution: Line: 14 Column: 8 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

6   Fail
assert(isequal(number_gen(100000024008),15))

Error in solution: Line: 14 Column: 8 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

7   Fail
assert(isequal(number_gen(288624888862),70))

Error in solution: Line: 14 Column: 8 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

Suggested Problems

More from this Author148