Cody

Solution 1431114

Submitted on 1 Feb 2018
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
user_solution = fileread('hypercube_edges.m'); assert(isempty(strfind(user_solution,'regexp'))); assert(isempty(strfind(user_solution,'2str'))); assert(isempty(strfind(user_solution,'str2'))); assert(isempty(strfind(user_solution,'interp'))); assert(isempty(strfind(user_solution,'printf'))); assert(isempty(strfind(user_solution,'assert')));

Error in solution Line: 2 Column: 7 The expression to the left of the equals sign is not a valid target for an assignment.

2   Fail
n = 0; E_correct = 0; assert(isequal(hypercube_edges(n),E_correct))

Error in solution Line: 2 Column: 7 The expression to the left of the equals sign is not a valid target for an assignment.

3   Fail
n = 1; E_correct = 1; assert(isequal(hypercube_edges(n),E_correct))

Error in solution Line: 2 Column: 7 The expression to the left of the equals sign is not a valid target for an assignment.

4   Fail
n = 2; E_correct = 4; assert(isequal(hypercube_edges(n),E_correct))

Error in solution Line: 2 Column: 7 The expression to the left of the equals sign is not a valid target for an assignment.

5   Fail
n = 3; E_correct = 12; assert(isequal(hypercube_edges(n),E_correct))

Error in solution Line: 2 Column: 7 The expression to the left of the equals sign is not a valid target for an assignment.

6   Fail
n = 4; E_correct = 32; assert(isequal(hypercube_edges(n),E_correct))

Error in solution Line: 2 Column: 7 The expression to the left of the equals sign is not a valid target for an assignment.

7   Fail
n = 5; E_correct = 80; assert(isequal(hypercube_edges(n),E_correct))

Error in solution Line: 2 Column: 7 The expression to the left of the equals sign is not a valid target for an assignment.

8   Fail
n = 6; E_correct = 192; assert(isequal(hypercube_edges(n),E_correct))

Error in solution Line: 2 Column: 7 The expression to the left of the equals sign is not a valid target for an assignment.

9   Fail
n = 7; E_correct = 448; assert(isequal(hypercube_edges(n),E_correct))

Error in solution Line: 2 Column: 7 The expression to the left of the equals sign is not a valid target for an assignment.

10   Fail
n = 8; E_correct = 1024; assert(isequal(hypercube_edges(n),E_correct))

Error in solution Line: 2 Column: 7 The expression to the left of the equals sign is not a valid target for an assignment.

11   Fail
n = 9; E_correct = 2304; assert(isequal(hypercube_edges(n),E_correct))

Error in solution Line: 2 Column: 7 The expression to the left of the equals sign is not a valid target for an assignment.

12   Fail
n = 10; E_correct = 5120; assert(isequal(hypercube_edges(n),E_correct))

Error in solution Line: 2 Column: 7 The expression to the left of the equals sign is not a valid target for an assignment.

13   Fail
n = 11; E_correct = 11264; assert(isequal(hypercube_edges(n),E_correct))

Error in solution Line: 2 Column: 7 The expression to the left of the equals sign is not a valid target for an assignment.

14   Fail
n = 12; E_correct = 24576; assert(isequal(hypercube_edges(n),E_correct))

Error in solution Line: 2 Column: 7 The expression to the left of the equals sign is not a valid target for an assignment.

15   Fail
n = 13; E_correct = 53248; assert(isequal(hypercube_edges(n),E_correct))

Error in solution Line: 2 Column: 7 The expression to the left of the equals sign is not a valid target for an assignment.

16   Fail
n = 14; E_correct = 114688; assert(isequal(hypercube_edges(n),E_correct))

Error in solution Line: 2 Column: 7 The expression to the left of the equals sign is not a valid target for an assignment.

17   Fail
n = 15; E_correct = 245760; assert(isequal(hypercube_edges(n),E_correct))

Error in solution Line: 2 Column: 7 The expression to the left of the equals sign is not a valid target for an assignment.