Result

WA

Duration

1185ms

Code [DL]

c;main(d,b){c=getchar();putchar(d*b?c:99),b|d&&main(c%7?++d%51:1,~c%2*b);}

stdin

             T                                    
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
          K                                       

stdout

stderr

In file included from /tmp/main.cpp:2:
/tmp/code.cpp:1:1: error: C++ requires a type specifier for all declarations
c;main(d,b){c=getchar();putchar(d*b?c:99),b|d&&main(c%7?++d%51:1,~c%2*b);}
^
/tmp/code.cpp:1:8: error: unknown type name 'd'
c;main(d,b){c=getchar();putchar(d*b?c:99),b|d&&main(c%7?++d%51:1,~c%2*b);}
       ^
/tmp/code.cpp:1:10: error: unknown type name 'b'
c;main(d,b){c=getchar();putchar(d*b?c:99),b|d&&main(c%7?++d%51:1,~c%2*b);}
         ^
/tmp/code.cpp:1:3: error: C++ requires a type specifier for all declarations
c;main(d,b){c=getchar();putchar(d*b?c:99),b|d&&main(c%7?++d%51:1,~c%2*b);}
  ^
/tmp/code.cpp:1:33: error: use of undeclared identifier 'd'
c;main(d,b){c=getchar();putchar(d*b?c:99),b|d&&main(c%7?++d%51:1,~c%2*b);}
                                ^
/tmp/code.cpp:1:35: error: use of undeclared identifier 'b'
c;main(d,b){c=getchar();putchar(d*b?c:99),b|d&&main(c%7?++d%51:1,~c%2*b);}
                                  ^
/tmp/code.cpp:1:43: error: use of undeclared identifier 'b'
c;main(d,b){c=getchar();putchar(d*b?c:99),b|d&&main(c%7?++d%51:1,~c%2*b);}
                                          ^
/tmp/code.cpp:1:45: error: use of undeclared identifier 'd'
c;main(d,b){c=getchar();putchar(d*b?c:99),b|d&&main(c%7?++d%51:1,~c%2*b);}
                                            ^
/tmp/code.cpp:1:59: error: use of undeclared identifier 'd'
c;main(d,b){c=getchar();putchar(d*b?c:99),b|d&&main(c%7?++d%51:1,~c%2*b);}
                                                          ^
/tmp/code.cpp:1:71: error: use of undeclared identifier 'b'
c;main(d,b){c=getchar();putchar(d*b?c:99),b|d&&main(c%7?++d%51:1,~c%2*b);}
                                                                      ^
/tmp/main.cpp:5:29: error: use of undeclared identifier 'f'
constexpr const char* out = f(in);
                            ^
11 errors generated.
/root/script: 25: /root/script: /tmp/code: not found
cat: /tmp/TfZHoXlRLbKVzP0KAcTP5FurHN7gxeZH.txt: No such file or directory

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd4af9d930 /* 6 vars */) = 0
12    execve("/bin/cat", ["cat", "/dev/urandom"], 0x557b3bb51580 /* 6 vars */) = 0
15    execve("/usr/bin/head", ["head", "-n", "1"], 0x557b3bb51598 /* 6 vars */) = 0
14    execve("/usr/bin/fold", ["fold", "-w", "32"], 0x557b3bb51598 /* 6 vars */) = 0
13    execve("/usr/bin/tr", ["tr", "-dc", "a-zA-Z0-9"], 0x557b3bb515a0 /* 6 vars */) = 0
15    +++ exited with 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} ---
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} ---
13    --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=13, si_uid=0} ---
12    --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=12, si_uid=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} ---
13    +++ killed by SIGPIPE +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=13, 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} ---
18    execve("/bin/hex", ["hex"], 0x557b3bb51840 /* 6 vars */) = 0
17    execve("/bin/cat", ["cat", "-"], 0x557b3bb51828 /* 6 vars */) = 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    +++ 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("/bin/cat", ["cat"], 0x557b3bb517a8 /* 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("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x557b3b36bc00 /* 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    execve("/bin/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.cpp"], 0x557b3b36bc20 /* 6 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} ---
23    execve("/usr/bin/clang-9", ["/usr/bin/clang-9", "-Wall", "-O2", "-std=c++11", "/tmp/main.cpp", "-o", "/tmp/code", "-lm", "-lstdc++"], 0x557b3bb51508 /* 6 vars */) = 0
24    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"..., ...], 0x7fff41dd6d48 /* 6 vars */) = 0
24    +++ exited with 1 +++
23    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=24, si_uid=0, si_status=1, si_utime=22, si_stime=3} ---
23    +++ exited with 1 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=23, si_uid=0, si_status=1, si_utime=1, si_stime=2} ---
25    execve("/tmp/code", ["/tmp/code"], 0x557b3b36bb90 /* 6 vars */) = -1 ENOENT (No such file or directory)
25    +++ exited with 127 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=25, si_uid=0, si_status=127, si_utime=0, si_stime=0} ---
26    execve("/bin/cat", ["cat", "/tmp/TfZHoXlRLbKVzP0KAcTP5FurHN7"...], 0x557b3b36bb98 /* 6 vars */) = 0
26    +++ exited with 1 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
27    execve("/bin/rm", ["rm", "-f", "/tmp/main.cpp", "/tmp/code.cpp", "/tmp/code", "/tmp/TfZHoXlRLbKVzP0KAcTP5FurHN7"...], 0x557b3bb51468 /* 6 vars */) = 0
27    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=27, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
10    +++ exited with 0 +++