Result

AC

Duration

7281ms

Code [DL]

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

stdin

45
97
93
26
22
17
32
16
85
89
77
86
56
66
47
94
67
20
41
88
62
11
46
23
96
33
21
38
53
12
40
24
60
39
34
72
84
68
65
90
50
10
73
78
79
61
99
71
75
48

stdout

1
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0

stderr

Unhandled exception: End of file reached (IO::EOFError)
  from /usr/share/crystal/src/io.cr:805:31 in 'read_line'
  from /usr/share/crystal/src/kernel.cr:118:3 in 'read_line'
  from /volume/CODE:2:9 in '__crystal_main'
  from /usr/share/crystal/src/crystal/main.cr:105:5 in 'main_user_code'
  from /usr/share/crystal/src/crystal/main.cr:91:7 in 'main'
  from /usr/share/crystal/src/crystal/main.cr:114:3 in 'main'
  from __libc_start_main
  from _start
  from ???

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffeda6a6470 /* 6 vars */) = 0
12    execve("/usr/bin/crystal", ["/usr/bin/crystal", "/volume/CODE"], 0x55a0e2fddc38 /* 6 vars */ <unfinished ...>
11    execve("/bin/cat", ["cat", "-"], 0x55a0e2fddc18 /* 6 vars */ <unfinished ...>
12    <... execve resumed> )            = 0
11    <... 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"], 0x55afb1269aa8 /* 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"], 0x55afb1269a80 /* 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"], 0x55afb1269a80 /* 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"], 0x55afb12696a8 /* 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"], 0x55afb0a71c08 /* 9 vars */) = 0
12    --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x7f3a8d211f00} ---
22    execve("/usr/bin/../lib/crystal/bin/ldd", ["ldd", "--version"], 0x7ffc170a2780 /* 9 vars */) = -1 ENOENT (No such file or directory)
22    execve("/bin/ldd", ["ldd", "--version"], 0x7ffc170a2780 /* 9 vars */) = -1 ENOENT (No such file or directory)
22    execve("/usr/local/sbin/ldd", ["ldd", "--version"], 0x7ffc170a2780 /* 9 vars */) = -1 ENOENT (No such file or directory)
22    execve("/usr/local/bin/ldd", ["ldd", "--version"], 0x7ffc170a2780 /* 9 vars */) = -1 ENOENT (No such file or directory)
22    execve("/usr/sbin/ldd", ["ldd", "--version"], 0x7ffc170a2780 /* 9 vars */) = -1 ENOENT (No such file or directory)
22    execve("/usr/bin/ldd", ["ldd", "--version"], 0x7ffc170a2780 /* 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} ---
31    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=31, si_uid=0, si_status=0, si_utime=2, si_stime=4} ---
30    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=30, si_uid=0, si_status=0, si_utime=8, si_stime=3} ---
29    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=29, si_uid=0, si_status=0, si_utime=12, si_stime=2} ---
27    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=27, si_uid=0, si_status=0, si_utime=25, si_stime=4} ---
24    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=24, si_uid=0, si_status=0, si_utime=17, si_stime=3} ---
26    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26, si_uid=0, si_status=0, si_utime=23, si_stime=4} ---
25    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=25, si_uid=0, si_status=0, si_utime=22, si_stime=4} ---
28    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=28, si_uid=0, si_status=0, si_utime=32, si_stime=3} ---
23    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=23, si_uid=0, si_status=0, si_utime=73, si_stime=5} ---
32    execve("/usr/bin/../lib/crystal/bin/which", ["which", "pkg-config"], 0x7ffc170a2780 /* 9 vars */) = -1 ENOENT (No such file or directory)
32    execve("/bin/which", ["which", "pkg-config"], 0x7ffc170a2780 /* 9 vars */) = 0
32    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=32, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
33    execve("/bin/sh", ["/bin/sh", "-c", "pkg-config pcre", "--"], 0x7ffc170a2780 /* 9 vars */) = 0
34    execve("/usr/bin/pkg-config", ["pkg-config", "pcre"], 0x557202e60b78 /* 9 vars */) = 0
34    +++ exited with 1 +++
33    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=34, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
33    +++ exited with 1 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=33, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
35    execve("/bin/sh", ["/bin/sh", "-c", "pkg-config m", "--"], 0x7ffc170a2780 /* 9 vars */) = 0
36    execve("/usr/bin/pkg-config", ["pkg-config", "m"], 0x55ac135ebb78 /* 9 vars */) = 0
36    +++ exited with 1 +++
35    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=36, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
35    +++ exited with 1 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=35, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
37    execve("/bin/sh", ["/bin/sh", "-c", "pkg-config pthread", "--"], 0x7ffc170a2780 /* 9 vars */) = 0
38    execve("/usr/bin/pkg-config", ["pkg-config", "pthread"], 0x5583fd307b78 /* 9 vars */) = 0
38    +++ exited with 1 +++
37    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=38, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
37    +++ exited with 1 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=37, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
39    execve("/bin/sh", ["/bin/sh", "-c", "pkg-config event", "--"], 0x7ffc170a2780 /* 9 vars */) = 0
40    execve("/usr/bin/pkg-config", ["pkg-config", "event"], 0x55b343f42b78 /* 9 vars */) = 0
40    +++ exited with 1 +++
39    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=40, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
39    +++ exited with 1 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=39, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
41    execve("/bin/sh", ["/bin/sh", "-c", "pkg-config rt", "--"], 0x7ffc170a2780 /* 9 vars */) = 0
42    execve("/usr/bin/pkg-config", ["pkg-config", "rt"], 0x564b040ccb78 /* 9 vars */) = 0
42    +++ exited with 1 +++
41    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=42, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
41    +++ exited with 1 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=41, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
43    execve("/bin/sh", ["/bin/sh", "-c", "pkg-config dl", "--"], 0x7ffc170a2780 /* 9 vars */) = 0
44    execve("/usr/bin/pkg-config", ["pkg-config", "dl"], 0x5592dc99ab78 /* 9 vars */) = 0
44    +++ exited with 1 +++
43    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=44, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
43    +++ exited with 1 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=43, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
45    execve("/bin/sh", ["/bin/sh", "-c", "cc \"${@}\" -o '/root/.cache/cryst"..., "--", "_main.o", "S-lice40U-I-nt841.o", "P-ointer40U-I-nt841.o", "A-rgumentE-rror.o", "C-allS-tack.o", "A-rray40P-ointer40V-oid4141.o", "P-ointer40P-ointer40V-oid4141.o", "E-xception.o", "P-ointer40L-ibU-nwind5858E-xcept"..., "U-I-nt64.o", "U-I-nt8.o", "D-ir.o", "C-rystal5858S-ystem5858D-ir.o", "F-ile5858E-rror.o", "E-rrno.o", "S-tring.o", "S-tring5858B-uilder.o", "G-C-.o", "C-har5858R-eader.o", "U-I-nt32.o", "I-nt32.o", "C-har.o", "S-lice40T-41.o", "I-O-5858E-ncoder.o", "C-rystal5858I-conv.o", "E-numerable5858R-eflect40I-nt324"..., "R-untimeE-rror.o", "S-taticA-rray40U-I-nt84432102441"..., ...], 0x7ffc170a2780 /* 9 vars */) = 0
46    execve("/usr/bin/cc", ["cc", "_main.o", "S-lice40U-I-nt841.o", "P-ointer40U-I-nt841.o", "A-rgumentE-rror.o", "C-allS-tack.o", "A-rray40P-ointer40V-oid4141.o", "P-ointer40P-ointer40V-oid4141.o", "E-xception.o", "P-ointer40L-ibU-nwind5858E-xcept"..., "U-I-nt64.o", "U-I-nt8.o", "D-ir.o", "C-rystal5858S-ystem5858D-ir.o", "F-ile5858E-rror.o", "E-rrno.o", "S-tring.o", "S-tring5858B-uilder.o", "G-C-.o", "C-har5858R-eader.o", "U-I-nt32.o", "I-nt32.o", "C-har.o", "S-lice40T-41.o", "I-O-5858E-ncoder.o", "C-rystal5858I-conv.o", "E-numerable5858R-eflect40I-nt324"..., "R-untimeE-rror.o", "S-taticA-rray40U-I-nt84432102441"..., "I-ndexE-rror.o", "M-ath.o", "S-taticA-rray40U-I-nt84432441.o", ...], 0x55e859dd9ef8 /* 9 vars */) = 0
47    execve("/usr/lib/gcc/x86_64-linux-gnu/7/collect2", ["/usr/lib/gcc/x86_64-linux-gnu/7/"..., "-plugin", "/usr/lib/gcc/x86_64-linux-gnu/7/"..., "-plugin-opt=/usr/lib/gcc/x86_64-"..., "-plugin-opt=-fresolution=/tmp/cc"..., "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lc", "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lgcc_"..., "--build-id", "--eh-frame-hdr", "-m", "elf_x86_64", "--hash-style=gnu", "--as-needed", "-export-dynamic", "-dynamic-linker", "/lib64/ld-linux-x86-64.so.2", "-pie", "-z", "now", "-z", "relro", "-o", "/root/.cache/crystal/crystal-run"..., "/usr/lib/gcc/x86_64-linux-gnu/7/"..., "/usr/lib/gcc/x86_64-linux-gnu/7/"..., "/usr/lib/gcc/x86_64-linux-gnu/7/"..., "-L/usr/bin/../lib/crystal/lib", "-L/usr/bin/../lib/crystal/lib", "-L/usr/bin/../lib/crystal/lib/.."..., ...], 0x2475160 /* 15 vars */) = 0
48    execve("/usr/bin/ld", ["/usr/bin/ld", "-plugin", "/usr/lib/gcc/x86_64-linux-gnu/7/"..., "-plugin-opt=/usr/lib/gcc/x86_64-"..., "-plugin-opt=-fresolution=/tmp/cc"..., "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lc", "-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lgcc_"..., "--build-id", "--eh-frame-hdr", "-m", "elf_x86_64", "--hash-style=gnu", "--as-needed", "-export-dynamic", "-dynamic-linker", "/lib64/ld-linux-x86-64.so.2", "-pie", "-z", "now", "-z", "relro", "-o", "/root/.cache/crystal/crystal-run"..., "/usr/lib/gcc/x86_64-linux-gnu/7/"..., "/usr/lib/gcc/x86_64-linux-gnu/7/"..., "/usr/lib/gcc/x86_64-linux-gnu/7/"..., "-L/usr/bin/../lib/crystal/lib", "-L/usr/bin/../lib/crystal/lib", "-L/usr/bin/../lib/crystal/lib/.."..., ...], 0x7ffc1b3cb830 /* 15 vars */) = 0
48    +++ exited with 0 +++
47    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=48, si_uid=0, si_status=0, si_utime=10, si_stime=25} ---
47    +++ exited with 0 +++
46    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=47, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
46    +++ exited with 0 +++
45    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=46, si_uid=0, si_status=0, si_utime=0, si_stime=1} ---
45    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=45, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
49    execve("/root/.cache/crystal/crystal-run-CODE.tmp", ["/root/.cache/crystal/crystal-run"...], 0x7ffc170a2780 /* 9 vars */) = 0
50    +++ exited with 1 +++
49    +++ exited with 1 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=49, si_uid=0, si_status=1, si_utime=4, si_stime=32} ---
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=98, si_stime=23} ---
10    +++ exited with 1 +++