Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
%%
%#######################################################################%
clear matlabCode;
[~]=urlwrite('http://files4codygame.appspot.com/files/game.p','game.p');
rehash;
protected_objs={'assert','isequal','now','error'};
game.status(protected_objs{:});
%#######################################################################%
now1=ISaidNow;
%#######################################################################%
protected_objs={'assert','isequal','now','error'};
s2=game.status(protected_objs{:});
allowed_vars={'now1'};
cheated=game.cheated(allowed_vars{:});
fprintf('Cheated = %d\n',cheated)
if cheated
while 1
%TIMEOUT EXPIRATION
end
end
%#######################################################################%
[~]=fft(rand(1,1000000));
assert(isequal(now1,1))
[Warning: Function horzcat has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function horzcat has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function horzcat has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function horzcat has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function horzcat has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function horzcat has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function horzcat has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
2 | Fail |
%%
%#######################################################################%
clear matlabCode;
[~]=urlwrite('http://files4codygame.appspot.com/files/game.p','game.p');
rehash;
protected_objs={'assert','isequal','now','error'};
game.status(protected_objs{:});
%#######################################################################%
now1=ISaidNow;
%#######################################################################%
protected_objs={'assert','isequal','now','error'};
s2=game.status(protected_objs{:});
allowed_vars={'now1'};
cheated=game.cheated(allowed_vars{:});
fprintf('Cheated = %d\n',cheated)
if cheated
while 1
%TIMEOUT EXPIRATION
end
end
%#######################################################################%
[~]=fft(rand(1,1000000));
now2=now;
assert(isequal(now1,now2),sprintf('now1 = %.11f, now2 = %.11f',now1,now2))
[Warning: Function horzcat has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function horzcat has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function horzcat has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function horzcat has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function horzcat has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[Warning: Function horzcat has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
|
607 Solvers
130 Solvers
250 Solvers
216 Solvers
07 - Common functions and indexing 2
316 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!