Solution 1589122

Submitted on 22 Jul 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
teams={'Russia','Saudi Arabia', 'Egypt', 'Uruguay', 'Portugal', 'Spain','Morocco','Iran',... 'France','Australia', 'Peru','Denmark', 'Brazil', 'Switzerland', 'Costa Rica', 'Serbia', ... 'Germany', 'Mexico', 'Sweden', 'STH Korea', 'Belgium', 'Panama', 'Tunisia', 'England' , ... 'Argentina','Iceland', 'Croatia', 'Nigeria', 'Poland', 'Senegal', 'Colombia', 'Japan'}; d=false; for i=1:numel(teams) if strcmp(Worldcup2018winner(),teams{i}) d=true; break; end end assert(d)

Out of memory. The likely cause is an infinite recursion within the program. Error in Worldcup2018winner (line 8) if strcmp(Worldcup2018winner(),teams{i})

Suggested Problems

More from this Author18