Cody

Solution 1925131

Submitted on 7 Sep 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
[s,g] = unix('set'); [a,nb] = regexp(g,'HOSTNAME=','split'); sol = regexp(a{2},'\n','split'); sol = sol{1}; % 11-July-2012 strcmp replaced isequal to accept answers of class java.lang.String assert(strcmp(your_fcn_name,sol),sprintf('Solution is %s',sol))

s = 0 g = 'ARCH=glnxa64 AUTOMOUNT_MAP= BASEMATLABPATH= BASH=/bin/bash BASHOPTS=cmdhist:complete_fullquote:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath BASH_ALIASES=() BASH_ARGC=() BASH_ARGV=() BASH_CMDS=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="4" [1]="3" [2]="48" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") BASH_VERSION='4.3.48(1)-release' CONNECTOR_VERSION=cpp DATA_CHECK=AB9753A7504291E2B0458ED20B8CB5DAE9DE85F3CDC62F5721564D6C5CC44CFCB0682ECA4CBDF64E337393CE49E12B30050D3DC3B23EB082B7205F84A7F608D21769F1880F9B4ABD265EA9745983BDB738AE1E48026E2981766D43A14FBF16A6105C14D039171B46EA9D13372732475AFD6A54315990EF3F4B38F5A4203A235E7115A2F6AE0CECB751FE827E3A4A2B5F8ABE10C2B955ACBBE9C1A76D09E4AF8ECB20 DEBIAN_FRONTEND=noninteractive DEFAULT_PCT_POOL_SIZE=2 DIRSTACK=() DISPLAY=:1.0 EUID=1000 EXTRA_XVFB_OPTS='-nolock -ac -extension RANDR +render -noreset' GCC_HOME=/usr/bin/gcc-6.3.0/bin/ GCC_VERSION=gcc-6.3.0 GROUPS=() HOME=/home/mluser HOSTNAME=deaa3d096962 HOSTTYPE=x86_64 HTTP_MATLAB_CLIENT_GATEWAY_PUBLIC_PORT=8000 IFS=$' \t\n' INITRD=no JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre KMP_BLOCKTIME=1 KMP_HANDLE_SIGNALS=0 KMP_STACKSIZE=512k LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_NUMERIC=C LD_LIBRARY_PATH=/opt/mlsedu/matlab/R2019a/cefclient/sys/os/glnxa64:/opt/mlsedu/matlab/R2019a/sys/opengl/lib/glnxa64:/opt/mlsedu/matlab/R2019a/sys/os/glnxa64:/opt/mlsedu/matlab/R2019a/bin/glnxa64/mvm:/opt/mlsedu/matlab/R2019a/bin/glnxa64:/opt/mlsedu/matlab/R2019a/extern/lib/glnxa64:/opt/mlsedu/matlab/R2019a/runtime/glnxa64:/opt/mlsedu/matlab/R2019a/sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/opt/mlsedu/matlab/R2019a/sys/java/jre/glnxa64/jre/lib/amd64/server:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64/stubs: LM_LICENSE_FILE=13501@motw-flexlm-201701-eua.wsroute.mathworks.com:13501@motw-flexlm-201701-euc.wsroute.mathworks.com LOGNAME=mluser MACHTYPE=x86_64-pc-linux-gnu MAIL=/var/mail/mluser MATLAB_CONNECTOR_AUTOSTART_ENABLED=false MATLAB_CONNECTOR_HOSTING_ENVIRONMENT=tmw MATLAB_LOG_DIR=/var/mlsedu/log MATLAB_ONLINE_ROOT=/opt/mlsedu/mdcsserver/latest MATLAB_PREFDIR=/tmp/matlabpref MATLAB_VER=R2019a MKL_DOMAIN_NUM_THREADS= MKL_NUM_THREADS= MW_CRASH_MODE=native MW_DIAGNOSTIC_DEST='file=/var/mlsedu/log/connector_$0_0.log' MW_DIAGNOSTIC_SPEC='connector::http::server=all;connector::container::http=all;connector::interpreter=all;connector::worker=all;connector::worker::dynamic_files=all;connector::framework=all;connector::session_m=all;connector::lifecycle=all;connector::webgraphics=all' NVIDIA_CUDNN=/usr/local/cudnn NVIDIA_DRIVER_CAPABILITIES=compute,utility NVIDIA_VISIBLE_DEVICES=all OPTERR=1 OPTIND=1 OSG_LD_LIBRARY_PATH=/opt/mlsedu/matlab/R2019a/sys/openscenegraph/lib/glnxa64 OSTYPE=linux-gnu PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PPID=6952 PREWARM_GPU=false PREWARM_SIMULINK=true PREWARM_SYMBOLIC_TOOLBOX=true PROXY_SERVER=squid-proda-euwest1.wsroute.mathworks.com PROXY_SERVER_PORT=3128 PS4='+ ' PWD=/users/mss.system.Zom9Zk QT_IM_MODULE=compose REGISTER_WORKER=false SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=5 START_MATLAB_COMMAND=/opt/mlsedu/mdcsserver/latest/scripts/startmatlab.sh TERM=dumb TOOLBOX=/opt/mlsedu/matlab/R2019a/toolbox UID=1000 USER=mluser WORKER_CONFIG=/tmp/worker.properties WS_ENV=production WS_OVERRIDE_FILE=/tmp/ws_override.properties XFILESEARCHPATH=/opt/mlsedu/matlab/R2019a/sys/java/jre/glnxa64/jre/lib/locale/%L/%T/%N%S: _=/bin/bash _MUPAD_EXPLICIT_ARCH_=glnxa64 _MUPAD_EXPLICIT_PREFDIR_=/tmp/matlabpref/symbolic __KMP_REGISTERED_LIB_3335=0x7f72a4455a08-cafe41d1-libiomp5.so capabilities_avoidTiledLayout=false '

Output argument "y" (and maybe others) not assigned during call to "your_fcn_name". Error in Test1 (line 7) assert(strcmp(your_fcn_name,sol),sprintf('Solution is %s',sol))