Result

WA

Duration

1053ms

Code [DL]

for (i in 0 to 31) {
  let a = input_line(stdin);
  if (a.[1] == a.[2]) {
    Js.log(String.sub(a, 2, 2));
  } else {
    Js.log(String.sub(a, 4, 4));
  };
};

Disassembly

/tmp/code

0 directories, 0 files

stdin

311 181
664 671
832 529
117 416
697 975
229 292
797 798
122 266
287 974
439 567
426 192
559 934
822 337
788 886
213 415
988 882
877 151
374 466
711 796
685 522
863 561
453 554
893 776
532 228
466 967
889 984
299 393
835 335
265 649
375 886
766 112
583 339

stdout

stderr

tar: invalid tar magic

Unhandled Exception:
System.InvalidOperationException: Sequence contains no elements
  at System.Linq.Enumerable.Max (System.Collections.Generic.IEnumerable`1[T] source) [0x00022] in <7ded87b81a794667956c6beaee0bc32a>:0 
  at Rottytooth.Esolang.Folders.DirInfoExtensions.CustomSort (System.Collections.Generic.IEnumerable`1[T] list) [0x0002c] in <57324297c3c645d79f3c2dab909d76bf>:0 
  at Rottytooth.Esolang.Folders.ProgramBuilderPure.BuildProgram () [0x0001c] in <57324297c3c645d79f3c2dab909d76bf>:0 
  at Rottytooth.Esolang.Folders.Program.Compile (System.String path, System.String& errors, System.Boolean exe, System.Boolean pureFolders) [0x0000e] in <57324297c3c645d79f3c2dab909d76bf>:0 
  at Rottytooth.Esolang.Folders.Program.Main (System.String[] args) [0x00066] in <57324297c3c645d79f3c2dab909d76bf>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Sequence contains no elements
  at System.Linq.Enumerable.Max (System.Collections.Generic.IEnumerable`1[T] source) [0x00022] in <7ded87b81a794667956c6beaee0bc32a>:0 
  at Rottytooth.Esolang.Folders.DirInfoExtensions.CustomSort (System.Collections.Generic.IEnumerable`1[T] list) [0x0002c] in <57324297c3c645d79f3c2dab909d76bf>:0 
  at Rottytooth.Esolang.Folders.ProgramBuilderPure.BuildProgram () [0x0001c] in <57324297c3c645d79f3c2dab909d76bf>:0 
  at Rottytooth.Esolang.Folders.Program.Compile (System.String path, System.String& errors, System.Boolean exe, System.Boolean pureFolders) [0x0000e] in <57324297c3c645d79f3c2dab909d76bf>:0 
  at Rottytooth.Esolang.Folders.Program.Main (System.String[] args) [0x00066] in <57324297c3c645d79f3c2dab909d76bf>:0 
Cannot open assembly 'code.exe': No such file or directory.

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE.tar"], 0x7ffe584810a0 /* 9 vars */) = 0
12    execve("/usr/bin/realpath", ["realpath", "/volume/CODE.tar"], 0x5615d28bbd20 /* 9 vars */) = 0
12    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    execve("/bin/ln", ["ln", "-s", "/volume/CODE.tar", "/tmp/code.tar"], 0x5615d28bbd40 /* 9 vars */) = 0
13    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
14    execve("/bin/mkdir", ["mkdir", "-p", "/tmp/code"], 0x5615d28bbce0 /* 9 vars */) = 0
14    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
15    execve("/bin/tar", ["tar", "xf", "/tmp/code.tar", "-C", "/tmp/code"], 0x5615d375c0c0 /* 9 vars */) = 0
15    +++ exited with 1 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
16    execve("/usr/bin/mono", ["mono", "Folders.exe", "../../../../../../../tmp/code"], 0x5615d28bbd40 /* 10 vars */) = 0
18    +++ exited with 1 +++
17    +++ exited with 1 +++
16    +++ exited with 1 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=1, si_utime=3, si_stime=0} ---
19    execve("/bin/cat", ["cat", "-"], 0x5615d28bbd30 /* 10 vars */ <unfinished ...>
20    execve("/usr/bin/mono", ["mono", "code.exe"], 0x5615d28bbd38 /* 10 vars */ <unfinished ...>
19    <... execve resumed>)             = 0
20    <... execve resumed>)             = 0
19    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
22    +++ exited with 0 +++
21    +++ exited with 0 +++
20    +++ exited with 2 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=2, si_utime=1, si_stime=1} ---
23    execve("/bin/rm", ["rm", "-rf", "code.exe", "/tmp/code"], 0x5615d28bbd38 /* 10 vars */) = 0
23    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=23, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
11    +++ exited with 0 +++