Result

WA

Duration

854ms

Code [DL]

j=99
while l=read_line.to_i
p(j>l ? j=l;1 : 0)
end

stdin

37
18
19
57
77
17
53
22
91
14
74
58
80
64
26
44
72
45
15
82
79
90
75
31
39
50
93
40
25
68
76
54
30
20
36
67
34
59
84
97
41
49
73
43
69
16
27
87
66
29

stdout

stderr

In /volume/CODE:3:10

 3 | p(j>l ? j=l;1 : 0)
              ^
Error: expecting token ':', not '='

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc3850e8c0 /* 6 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x561c959aac18 /* 6 vars */ <unfinished ...>
12    execve("/usr/bin/crystal", ["/usr/bin/crystal", "/volume/CODE"], 0x561c959aac38 /* 6 vars */ <unfinished ...>
11    <... execve resumed> )            = 0
12    <... execve resumed> )            = 0
11    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
16    execve("/bin/readlink", ["readlink", "--", "/usr/bin/crystal"], 0x5583fb900aa8 /* 6 vars */) = 0
16    +++ exited with 1 +++
15    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
15    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
17    execve("/usr/bin/dirname", ["dirname", "--", "/usr/bin/crystal"], 0x5583fb900a80 /* 6 vars */) = 0
17    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
18    execve("/usr/bin/basename", ["basename", "--", "/usr/bin/crystal"], 0x5583fb900a80 /* 6 vars */) = 0
18    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
20    +++ exited with 0 +++
19    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
19    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
14    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    execve("/usr/bin/dirname", ["dirname", "/usr/bin/crystal"], 0x5583fb9006a8 /* 6 vars */) = 0
13    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
12    execve("/usr/bin/../lib/crystal/bin/crystal", ["/usr/bin/../lib/crystal/bin/crys"..., "/volume/CODE"], 0x5583fa062c08 /* 9 vars */) = 0
12    --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x7fb504b6ef00} ---
22    execve("/usr/bin/../lib/crystal/bin/ldd", ["ldd", "--version"], 0x7ffeecb43660 /* 9 vars */) = -1 ENOENT (No such file or directory)
22    execve("/bin/ldd", ["ldd", "--version"], 0x7ffeecb43660 /* 9 vars */) = -1 ENOENT (No such file or directory)
22    execve("/usr/local/sbin/ldd", ["ldd", "--version"], 0x7ffeecb43660 /* 9 vars */) = -1 ENOENT (No such file or directory)
22    execve("/usr/local/bin/ldd", ["ldd", "--version"], 0x7ffeecb43660 /* 9 vars */) = -1 ENOENT (No such file or directory)
22    execve("/usr/sbin/ldd", ["ldd", "--version"], 0x7ffeecb43660 /* 9 vars */) = -1 ENOENT (No such file or directory)
22    execve("/usr/bin/ldd", ["ldd", "--version"], 0x7ffeecb43660 /* 9 vars */) = 0
22    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=22, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
21    +++ exited with 1 +++
12    +++ exited with 1 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=1, si_utime=4, si_stime=2} ---
10    +++ exited with 1 +++