by@henkma
WA
1291ms
package main import."os" func main(){b:=new([7]byte);for Stdin.Read(b){Stdout.Write(b[b[1]==b[2]*2+2])}}
388 184 894 992 781 588 291 115 783 327 934 143 733 339 457 992 866 869 498 486 755 266 935 778 878 994 455 881 833 367 236 638 812 638 982 594 754 955 773 738 825 291 265 662 716 132 655 791 946 318 855 564 572 273 933 334 937 774 972 727 432 257 522 335
# command-line-arguments /tmp/code.go:3:43: cannot use b (type *[7]byte) as type []byte in argument to os.Stdin.Read /tmp/code.go:3:43: multiple-value os.Stdin.Read() in single-value context /tmp/code.go:3:61: non-integer array index b[1] == b[2] * 2 + 2 /tmp/code.go:3:61: cannot use b[b[1] == b[2] * 2 + 2] (type byte) as type []byte in argument to os.Stdout.Write /root/script: line 7: /tmp/code: not found rm: can't remove '/tmp/code': No such file or directory
10 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd7d00a1d0 /* 7 vars */) = 0 11 execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55b73a846d18 /* 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.go"], 0x55b73a846d38 /* 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/bin/go", ["/usr/bin/go", "build", "-o", "/tmp/code", "/tmp/code.go"], 0x55b73b012028 /* 7 vars */) = 0 19 execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0002b5ad0 /* 25 vars */) = 0 20 execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0002ba680 /* 25 vars */) = 0 25 +++ exited with 0 +++ 23 +++ exited with 0 +++ 26 +++ exited with 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} --- 27 execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0002ba8f0 /* 25 vars */) = 0 30 +++ exited with 0 +++ 29 +++ exited with 0 +++ 28 +++ exited with 0 +++ 20 +++ exited with 0 +++ 22 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 31 execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0002bab60 /* 25 vars */) = 0 32 +++ exited with 0 +++ 33 +++ exited with 0 +++ 34 +++ exited with 0 +++ 27 +++ exited with 0 +++ 22 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=27, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 36 +++ exited with 0 +++ 37 +++ exited with 0 +++ 35 +++ exited with 0 +++ 31 +++ exited with 0 +++ 22 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=31, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 38 execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-o", "/tmp/go-build476202759/b001/_pkg"..., "-trimpath", "/tmp/go-build476202759/b001=>", "-p", "main", "-complete", "-buildid", "bd6lHsOQqtUvD-P0xuoM/bd6lHsOQqtU"..., "-goversion", "go1.13.10", "-D", "_/tmp", "-importcfg", "/tmp/go-build476202759/b001/impo"..., "-pack", "-c=2", "/tmp/code.go"], 0xc0001444e0 /* 25 vars */) = 0 41 +++ exited with 2 +++ 40 +++ exited with 2 +++ 39 +++ exited with 2 +++ 42 +++ exited with 2 +++ 38 +++ exited with 2 +++ 22 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=38, si_uid=0, si_status=2, si_utime=0, si_stime=0} --- 24 +++ exited with 2 +++ 22 +++ exited with 2 +++ 21 +++ exited with 2 +++ 18 +++ exited with 2 +++ 17 +++ exited with 2 +++ 16 +++ exited with 2 +++ 15 +++ exited with 2 +++ 14 +++ exited with 2 +++ 13 +++ exited with 2 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=2, si_utime=4, si_stime=8} --- 43 execve("/bin/cat", ["cat", "-"], 0x55b73a846d08 /* 7 vars */) = 0 44 execve("/tmp/code", ["/tmp/code"], 0x55b73a846cf0 /* 7 vars */) = -1 ENOENT (No such file or directory) 44 +++ exited with 127 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=44, si_uid=0, si_status=127, si_utime=0, si_stime=0} --- 43 --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=43, si_uid=0} --- 43 +++ killed by SIGPIPE +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=43, si_uid=0, si_status=SIGPIPE, si_utime=0, si_stime=0} --- 45 execve("/bin/rm", ["rm", "/tmp/code.go", "/tmp/code"], 0x55b73a846cf0 /* 7 vars */) = 0 45 +++ exited with 1 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=45, si_uid=0, si_status=1, si_utime=0, si_stime=0} --- 10 +++ exited with 1 +++