by@caphosra
WA
893ms
main=interact$concatMap f.lines;f x=show(g 0 0 x)++" ";g 0 n (x:xs)|x=='|'=g 0(n+1)xs|0<1=g 1 n xs;g 1 n (x:xs)|x=='|'=g 0(n+1)xs|0<1=n
|||__||_|_ |_|__||_|_ |_|__|||_| |_______|| ||_|||____ ||___|__|| ||__|__||| |_|||_|_|| ||___||_|| |__|_||__| |_|_|_|||_ ||__|_|||_ |_|___|_|_ ||||______ |_||_|_|__ ||||__||_| |_|_||____ |||___|___ |_||__|_|_ |_|___|||_ ||_|||_|_| ||_||_|__| |_|||__||| |__|__|||_ |__||||___ |__|___||| |_||_|||__ ||_|__|||_ |||_||__|_ ||_|_____|
3 2 2 1 5 2 2
CODE: /volume/CODE:1:56-135: Non-exhaustive patterns in function g
10 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc8a70e060 /* 7 vars */) = 0 12 execve("/usr/bin/runghc", ["/usr/bin/runghc", "/volume/CODE"], 0x559d58095d40 /* 7 vars */) = 0 11 execve("/bin/cat", ["cat", "-"], 0x559d58095d30 /* 7 vars */) = 0 12 execve("/usr/lib/ghc-8.8.3/bin/runghc", ["/usr/lib/ghc-8.8.3/bin/runghc", "-f", "/usr/bin/ghc-8.8.3", "/volume/CODE"], 0x561fe7d9a168 /* 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("/usr/bin/ghc-8.8.3", ["/usr/bin/ghc-8.8.3", "-ignore-dot-ghci", "-x", "hs", "-e", ":set prog \"/volume/CODE\"", "-e", ":main []", "/volume/CODE"], 0x7fff9dcb8a50 /* 7 vars */) = 0 12 execve("/usr/lib/ghc-8.8.3/bin/ghc", ["/usr/lib/ghc-8.8.3/bin/ghc", "-B/usr/lib/ghc-8.8.3", "-ignore-dot-ghci", "-x", "hs", "-e", ":set prog \"/volume/CODE\"", "-e", ":main []", "/volume/CODE"], 0x55fef91b5200 /* 7 vars */) = 0 17 execve("/bin/gcc", ["gcc", "-DTABLES_NEXT_TO_CODE", "-B/usr/lib/ghc-8.8.3/integer-gmp"..., "--print-file-name", "libgmp.so"], 0x7fff6f7ded40 /* 7 vars */) = -1 ENOENT (No such file or directory) 17 execve("/usr/local/sbin/gcc", ["gcc", "-DTABLES_NEXT_TO_CODE", "-B/usr/lib/ghc-8.8.3/integer-gmp"..., "--print-file-name", "libgmp.so"], 0x7fff6f7ded40 /* 7 vars */) = -1 ENOENT (No such file or directory) 17 execve("/usr/local/bin/gcc", ["gcc", "-DTABLES_NEXT_TO_CODE", "-B/usr/lib/ghc-8.8.3/integer-gmp"..., "--print-file-name", "libgmp.so"], 0x7fff6f7ded40 /* 7 vars */) = -1 ENOENT (No such file or directory) 17 execve("/usr/sbin/gcc", ["gcc", "-DTABLES_NEXT_TO_CODE", "-B/usr/lib/ghc-8.8.3/integer-gmp"..., "--print-file-name", "libgmp.so"], 0x7fff6f7ded40 /* 7 vars */) = -1 ENOENT (No such file or directory) 17 execve("/usr/bin/gcc", ["gcc", "-DTABLES_NEXT_TO_CODE", "-B/usr/lib/ghc-8.8.3/integer-gmp"..., "--print-file-name", "libgmp.so"], 0x7fff6f7ded40 /* 7 vars */) = 0 17 +++ exited with 0 +++ 12 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 14 +++ exited with 0 +++ 16 +++ exited with 0 +++ 15 +++ exited with 0 +++ 13 +++ exited with 0 +++ 12 +++ exited with 1 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=1, si_utime=22, si_stime=6} --- 10 +++ exited with 1 +++