by@kurgm
AC
1026ms
begin character c;integer i,t,k;t:=-1;a:c:=inchar;if c='T'then t:=i;if c='K'then k:=1;outchar(if t=i or k=1then'T'else c);i:=i-i//80*80+1;if i<=t or k=0then goto a;end
T K
T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T TTTTTTTT
Compiling /tmp/code.sim: gcc -g -O2 -c code.c code.c: In function 'main': code.c:115:136: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] int main(int __argc, char *__argv[]){__progname= __argv[0];goto __sw;__l0:__rstart(__argc,__argv);goto __start;__l1:__slutt:__rslutt();exit(0);__start:__curent_map=__mapmain; ^~~~ code.c:115:136: warning: incompatible implicit declaration of built-in function 'exit' code.c:115:136: note: include '<stdlib.h>' or provide a declaration of 'exit' code.c:4:1: +#include <stdlib.h> __map __mapmain[3]={"/tmp/code.sim",0L,1L, code.c:115:136: int main(int __argc, char *__argv[]){__progname= __argv[0];goto __sw;__l0:__rstart(__argc,__argv);goto __start;__l1:__slutt:__rslutt();exit(0);__start:__curent_map=__mapmain; ^~~~ /tmp/code.sim:1:780: warning: implicit declaration of function '__rbe'; did you mean '__rb'? [-Wimplicit-function-declaration] begin character c;integer i,t,k;t:=-1;a:c:=inchar;if c='T'then t:=i;if c='K'then k:=1;outchar(if t=i or k=1then'T'else c);i:=i-i//80*80+1;if i<=t or k=0then goto a;end ^ __rb /tmp/code.sim: In function '__init': /tmp/code.sim:5:19: warning: implicit declaration of function '__init_FILE'; did you mean '__init'? [-Wimplicit-function-declaration] /tmp/code.sim: At top level: /tmp/code.sim:6:1: warning: return type defaults to 'int' [-Wimplicit-int] /tmp/code.sim:14:1: warning: return type defaults to 'int' [-Wimplicit-int] gcc -g -O2 -o /tmp/code code.o -L/usr/local/lib -lcim
10 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc6036d4d0 /* 7 vars */) = 0 11 execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55c0b6c46d18 /* 7 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.sim"], 0x55c0b6c46d38 /* 7 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/cim", ["cim", "/tmp/code.sim", "-o", "/tmp/code"], 0x55c0b6c46d68 /* 7 vars */) = 0 14 execve("/bin/sh", ["sh", "-c", "chmod +x ./code.shl"], 0x7ffe1c82d780 /* 7 vars */) = 0 14 execve("/bin/chmod", ["chmod", "+x", "./code.shl"], 0x563e90404cf8 /* 7 vars */) = 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("./code.shl", ["./code.shl", "-o", "/tmp/code", "/tmp/code.sim"], 0x7ffe1c82d780 /* 7 vars */) = 0 15 execve("/usr/bin/gcc", ["gcc", "-g", "-O2", "-c", "code.c"], 0x55cdd8f8b990 /* 7 vars */) = 0 16 execve("/usr/libexec/gcc/x86_64-alpine-linux-musl/8.3.0/cc1", ["/usr/libexec/gcc/x86_64-alpine-l"..., "-quiet", "code.c", "-quiet", "-dumpbase", "code.c", "-mtune=generic", "-march=x86-64", "-auxbase", "code", "-g", "-O2", "-o", "/tmp/ccoJcPNM.s"], 0x22aa340 /* 9 vars */) = 0 16 +++ exited with 0 +++ 15 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=4, si_stime=0} --- 17 execve("/usr/lib/gcc/x86_64-alpine-linux-musl/8.3.0/../../../../x86_64-alpine-linux-musl/bin/as", ["/usr/lib/gcc/x86_64-alpine-linux"..., "--64", "-o", "code.o", "/tmp/ccoJcPNM.s"], 0x22aa340 /* 9 vars */) = 0 17 +++ exited with 0 +++ 15 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 15 +++ exited with 0 +++ 13 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 18 execve("/bin/rm", ["rm", "-f", "code.c"], 0x55cdd8f8b970 /* 7 vars */) = 0 18 +++ exited with 0 +++ 13 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 19 execve("/usr/bin/gcc", ["gcc", "-g", "-O2", "-o", "/tmp/code", "code.o", "-L/usr/local/lib", "-lcim", "-lm"], 0x55cdd8f8b3d0 /* 7 vars */) = 0 20 execve("/usr/libexec/gcc/x86_64-alpine-linux-musl/8.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=/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_"..., "--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", ...], 0xc6e7a0 /* 12 vars */) = 0 21 execve("/usr/lib/gcc/x86_64-alpine-linux-musl/8.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=/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_"..., "--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", ...], 0x7ffe00730aa0 /* 12 vars */) = 0 21 +++ exited with 0 +++ 20 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, si_uid=0, si_status=0, si_utime=1, si_stime=2} --- 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 +++ 13 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 22 execve("/bin/rm", ["rm", "-f", "./code.shl"], 0x55cdd8d95ce0 /* 7 vars */) = 0 22 +++ exited with 0 +++ 13 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=22, 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} --- 23 execve("/bin/cat", ["cat", "-"], 0x55c0b6c46d48 /* 7 vars */ <unfinished ...> 24 execve("/tmp/code", ["/tmp/code"], 0x55c0b6c46d60 /* 8 vars */ <unfinished ...> 23 <... execve resumed> ) = 0 24 <... execve resumed> ) = 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("/bin/rm", ["rm", "/tmp/code.sim", "/tmp/code"], 0x55c0b6c46cf0 /* 7 vars */) = 0 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=0} --- 10 +++ exited with 0 +++