Cody

Solution 1973763

Submitted on 13 Oct 2019
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
a = [45 15 200 300]; arraygcdok=5; assert(isequal(arraygcd(a),arraygcdok))

Output argument "m" (and maybe others) not assigned during call to "arraygcd/GCD". Error in arraygcd (line 18) thegcd=GCD(a) Error in Test1 (line 3) assert(isequal(arraygcd(a),arraygcdok))

2   Fail
a = [140 7 14 35 42]; arraygcdok=7; assert(isequal(arraygcd(a),arraygcdok))

Output argument "m" (and maybe others) not assigned during call to "arraygcd/GCD". Error in arraygcd (line 18) thegcd=GCD(a) Error in Test2 (line 3) assert(isequal(arraygcd(a),arraygcdok))

3   Fail
a = [100 90 70 2000]; arraygcdok=10; assert(isequal(arraygcd(a),arraygcdok))

Output argument "m" (and maybe others) not assigned during call to "arraygcd/GCD". Error in arraygcd (line 18) thegcd=GCD(a) Error in Test3 (line 3) assert(isequal(arraygcd(a),arraygcdok))