Result

AC

Duration

1040ms

Code [DL]

	program-id.a.data division.local-storage section. 1 l pic x(7).
	procedure division.a.accept l.if l(2:1)=l(3:1)display l(2:1)else
	display l(5:1).if""<l go a.

stdin

619 113
759 885
717 375
322 727
874 896
233 332
611 197
422 225
475 675
822 441
186 839
965 586
966 439
881 867
694 395
337 734
582 458
938 882
956 567
288 585
979 895
233 551
815 551
415 159
714 491
334 331
745 544
766 947
814 995
846 746
798 455
944 439

stdout

1
8
3
2
8
3
1
2
6
2
8
5
6
8
3
7
4
8
5
8
8
3
5
1
4
3
5
6
9
7
4
4
 

stderr

/tmp/code.cbl:3: warning: line not terminated by a newline
/tmp/code.cbl: in paragraph 'a':
/tmp/code.cbl:3: warning: alphanumeric literal has zero length; a SPACE will be assumed

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe9f4c78e0 /* 9 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55f1b6f9bd18 /* 9 vars */) = 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} ---
12    execve("/bin/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.cbl"], 0x55f1b6f9bd38 /* 9 vars */) = 0
12    +++ exited with 0 +++
10    --- 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("/usr/local/bin/cobc", ["/usr/local/bin/cobc", "-x", "-o", "/tmp/code", "/tmp/code.cbl"], 0x55f1b843d028 /* 9 vars */) = 0
14    execve("/bin/sh", ["sh", "-c", "gcc -c -I/usr/local/include -Wno"...], 0x5603d7e8f660 /* 10 vars */) = 0
14    execve("/usr/bin/gcc", ["gcc", "-c", "-I/usr/local/include", "-Wno-unused", "-fsigned-char", "-Wno-pointer-sign", "-pipe", "-o", "./cob13_0.o", "./cob13_0.c"], 0x556864c852a8 /* 10 vars */) = 0
15    execve("/usr/libexec/gcc/x86_64-alpine-linux-musl/9.3.0/cc1", ["/usr/libexec/gcc/x86_64-alpine-l"..., "-quiet", "-I", "/usr/local/include", "./cob13_0.c", "-quiet", "-dumpbase", "cob13_0.c", "-mtune=generic", "-march=x86-64", "-auxbase-strip", "./cob13_0.o", "-Wno-unused", "-Wno-pointer-sign", "-fsigned-char", "-o", "-"], 0x1732820 /* 12 vars */) = 0
16    execve("/usr/lib/gcc/x86_64-alpine-linux-musl/9.3.0/../../../../x86_64-alpine-linux-musl/bin/as", ["/usr/lib/gcc/x86_64-alpine-linux"..., "-I", "/usr/local/include", "--64", "-o", "./cob13_0.o"], 0x1732820 /* 12 vars */) = 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=3, si_stime=0} ---
16    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, 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} ---
17    execve("/bin/sh", ["sh", "-c", "gcc -Wl,--export-dynamic -o \"/tm"...], 0x5603d7e8f660 /* 10 vars */) = 0
17    execve("/usr/bin/gcc", ["gcc", "-Wl,--export-dynamic", "-o", "/tmp/code", "./cob13_0.o", "-L/usr/local/lib", "-lcob", "-lm", "-lgmp", "-ldb-5.3"], 0x55fdbb6f6248 /* 10 vars */) = 0
18    execve("/usr/libexec/gcc/x86_64-alpine-linux-musl/9.3.0/collect2", ["/usr/libexec/gcc/x86_64-alpine-l"..., "-plugin", "/usr/libexec/gcc/x86_64-alpine-l"..., "-plugin-opt=/usr/libexec/gcc/x86"..., "-plugin-opt=-fresolution=./ccLlC"..., "-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_"..., "--eh-frame-hdr", "--hash-style=gnu", "-m", "elf_x86_64", "--as-needed", "-dynamic-linker", "/lib/ld-musl-x86_64.so.1", "-pie", "-z", "relro", "-z", "now", "-o", "/tmp/code", "/usr/lib/gcc/x86_64-alpine-linux"..., "/usr/lib/gcc/x86_64-alpine-linux"..., "/usr/lib/gcc/x86_64-alpine-linux"..., "-L/usr/local/lib", "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/lib/../lib", ...], 0x764b20 /* 15 vars */) = 0
19    execve("/usr/lib/gcc/x86_64-alpine-linux-musl/9.3.0/../../../../x86_64-alpine-linux-musl/bin/ld", ["/usr/lib/gcc/x86_64-alpine-linux"..., "-plugin", "/usr/libexec/gcc/x86_64-alpine-l"..., "-plugin-opt=/usr/libexec/gcc/x86"..., "-plugin-opt=-fresolution=./ccLlC"..., "-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_"..., "--eh-frame-hdr", "--hash-style=gnu", "-m", "elf_x86_64", "--as-needed", "-dynamic-linker", "/lib/ld-musl-x86_64.so.1", "-pie", "-z", "relro", "-z", "now", "-o", "/tmp/code", "/usr/lib/gcc/x86_64-alpine-linux"..., "/usr/lib/gcc/x86_64-alpine-linux"..., "/usr/lib/gcc/x86_64-alpine-linux"..., "-L/usr/local/lib", "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/usr/lib/gcc/x86_64-alpine-lin"..., "-L/lib/../lib", ...], 0x7ffe1a062358 /* 15 vars */) = 0
19    +++ exited with 0 +++
18    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=0, si_utime=0, si_stime=3} ---
18    +++ exited with 0 +++
17    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
17    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
20    execve("/bin/cat", ["cat", "-"], 0x55f1b6f9bd08 /* 9 vars */ <unfinished ...>
21    execve("/tmp/code", ["/tmp/code"], 0x55f1b6f9bcf0 /* 9 vars */ <unfinished ...>
20    <... execve resumed>)             = 0
21    <... execve resumed>)             = 0
20    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
21    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
22    execve("/bin/rm", ["rm", "/tmp/code.cbl", "/tmp/code"], 0x55f1b6f9bcf0 /* 9 vars */) = 0
22    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=22, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
10    +++ exited with 0 +++