Result

AC

Duration

1269ms

Code [DL]

extern const char*const in;char r[33],i=([]{for(auto l=in;*l;l+=8)r[i++]=l[l[1]-l[2]?4:2];}(),0);constexpr char*f(const char*){return r;}

stdin

326 663
488 852
771 112
886 621
611 117
874 139
686 445
236 316
544 742
183 132
289 891
895 415
451 715
238 813
924 822
799 913
227 724
688 225
354 992
692 998
733 425
499 993
996 693
282 383
244 141
833 969
866 883
468 331
495 945
875 322
642 442
632 321

stdout

68161143418478897899396343639343

stderr

In file included from /tmp/main.cpp:2:
/tmp/code.cpp:1:68: warning: array subscript is of type 'char' [-Wchar-subscripts]
extern const char*const in;char r[33],i=([]{for(auto l=in;*l;l+=8)r[i++]=l[l[1]-l[2]?4:2];}(),0);constexpr char*f(const char*){return r;}
                                                                   ^~~~
1 warning generated.

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffdb90224a0 /* 6 vars */) = 0
12    execve("/bin/cat", ["cat", "/dev/urandom"], 0x564b3dedc580 /* 6 vars */) = 0
15    execve("/usr/bin/head", ["head", "-n", "1"], 0x564b3dedc598 /* 6 vars */ <unfinished ...>
14    execve("/usr/bin/fold", ["fold", "-w", "32"], 0x564b3dedc598 /* 6 vars */ <unfinished ...>
15    <... execve resumed> )            = 0
13    execve("/usr/bin/tr", ["tr", "-dc", "a-zA-Z0-9"], 0x564b3dedc5a0 /* 6 vars */ <unfinished ...>
14    <... execve resumed> )            = 0
13    <... execve resumed> )            = 0
14    --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=14, si_uid=0} ---
14    +++ killed by SIGPIPE +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=14, si_uid=0, si_status=SIGPIPE, si_utime=0, si_stime=0} ---
15    +++ exited with 0 +++
13    --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=13, si_uid=0} ---
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    +++ killed by SIGPIPE +++
12    --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=12, si_uid=0} ---
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=13, si_uid=0, si_status=SIGPIPE, si_utime=0, si_stime=0} ---
12    +++ killed by SIGPIPE +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=12, si_uid=0, si_status=SIGPIPE, si_utime=0, si_stime=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} ---
17    execve("/bin/cat", ["cat", "-"], 0x564b3dedc828 /* 6 vars */ <unfinished ...>
18    execve("/bin/hex", ["hex"], 0x564b3dedc840 /* 6 vars */ <unfinished ...>
17    <... execve resumed> )            = 0
18    <... execve resumed> )            = 0
18    +++ exited with 0 +++
16    --- 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 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
16    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
19    execve("/bin/cat", ["cat"], 0x564b3dedc7a8 /* 6 vars */) = 0
19    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
20    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x564b3cf7bc00 /* 6 vars */) = 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    execve("/bin/cat", ["cat", "/volume/CODE"], 0x564b3dedc510 /* 6 vars */) = 0
22    execve("/usr/bin/tr", ["tr", "-d", "#"], 0x564b3dedc520 /* 6 vars */) = 0
23    execve("/bin/sed", ["sed", "s/??=/XXX/g"], 0x564b3dedc530 /* 6 vars */) = 0
24    execve("/bin/sed", ["sed", "s/%:/XX/g"], 0x564b3dedc528 /* 6 vars */) = 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    +++ 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} ---
23    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=23, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
24    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=24, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
25    execve("/usr/bin/clang-9", ["/usr/bin/clang-9", "-Wall", "-O2", "-std=c++11", "/tmp/main.cpp", "-o", "/tmp/code", "-lm", "-lstdc++"], 0x564b3dedc508 /* 6 vars */) = 0
26    execve("/usr/lib/llvm-9/bin/clang", ["/usr/lib/llvm-9/bin/clang", "-cc1", "-triple", "x86_64-pc-linux-gnu", "-emit-obj", "-disable-free", "-disable-llvm-verifier", "-discard-value-names", "-main-file-name", "main.cpp", "-mrelocation-model", "static", "-mthread-model", "posix", "-fmath-errno", "-masm-verbose", "-mconstructor-aliases", "-munwind-tables", "-fuse-init-array", "-target-cpu", "x86-64", "-dwarf-column-info", "-debugger-tuning=gdb", "-momit-leaf-frame-pointer", "-resource-dir", "/usr/lib/llvm-9/lib/clang/9.0.0", "-internal-isystem", "/usr/bin/../lib/gcc/x86_64-linux"..., "-internal-isystem", "/usr/bin/../lib/gcc/x86_64-linux"..., "-internal-isystem", "/usr/bin/../lib/gcc/x86_64-linux"..., ...], 0x7ffcf1a01968 /* 6 vars */) = 0
26    +++ exited with 0 +++
25    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26, si_uid=0, si_status=0, si_utime=21, si_stime=4} ---
27    execve("/usr/bin/ld", ["/usr/bin/ld", "-z", "relro", "--hash-style=gnu", "--build-id", "--eh-frame-hdr", "-m", "elf_x86_64", "-dynamic-linker", "/lib64/ld-linux-x86-64.so.2", "-o", "/tmp/code", "/usr/bin/../lib/gcc/x86_64-linux"..., "/usr/bin/../lib/gcc/x86_64-linux"..., "/usr/bin/../lib/gcc/x86_64-linux"..., "-L/usr/bin/../lib/gcc/x86_64-lin"..., "-L/usr/bin/../lib/gcc/x86_64-lin"..., "-L/lib/x86_64-linux-gnu", "-L/lib/../lib64", "-L/usr/lib/x86_64-linux-gnu", "-L/usr/bin/../lib/gcc/x86_64-lin"..., "-L/usr/lib/llvm-9/bin/../lib", "-L/lib", "-L/usr/lib", "/tmp/main-531a6e.o", "-lm", "-lstdc++", "-lgcc", "--as-needed", "-lgcc_s", "--no-as-needed", "-lc", ...], 0x7ffcf1a01968 /* 6 vars */) = 0
27    +++ exited with 0 +++
25    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=27, si_uid=0, si_status=0, si_utime=6, si_stime=2} ---
25    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=25, si_uid=0, si_status=0, si_utime=0, si_stime=1} ---
28    execve("/tmp/code", ["/tmp/code"], 0x564b3cf7bb90 /* 6 vars */) = 0
28    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=28, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
29    execve("/bin/cat", ["cat", "/tmp/b7tFXQ5yW67zpC2ZUdTlx3Dprgv"...], 0x564b3cf7bb98 /* 6 vars */) = 0
29    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=29, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
30    execve("/bin/rm", ["rm", "-f", "/tmp/main.cpp", "/tmp/code.cpp", "/tmp/code", "/tmp/b7tFXQ5yW67zpC2ZUdTlx3Dprgv"...], 0x564b3dedc468 /* 6 vars */) = 0
30    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=30, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
10    +++ exited with 0 +++