Result

WA

Duration

593ms

Code [DL]

(''+require('fs').readFileSync(0)).replace(/tok/g,a=>console.log(T))

stdin

tototokyokyotokyotokyotototokyotokyokyotokyokyokyo

stdout

stderr

/volume/CODE:1
(''+require('fs').readFileSync(0)).replace(/tok/g,a=>console.log(T))
                                                                 ^

ReferenceError: T is not defined
    at /volume/CODE:1:66
    at String.replace (<anonymous>)
    at Object.<anonymous> (/volume/CODE:1:36)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47

strace

12    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffffd689c08 /* 7 vars */) = 0
13    execve("/bin/cat", ["cat", "-"], 0x7fc801523230 /* 7 vars */ <unfinished ...>
14    execve("/usr/bin/node", ["/usr/bin/node", "/volume/CODE"], 0x7fc801523240 /* 7 vars */ <unfinished ...>
13    <... execve resumed>)             = 0
13    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
14    <... execve resumed>)             = 0
16    +++ exited with 0 +++
18    +++ exited with 0 +++
19    +++ exited with 0 +++
15    +++ exited with 0 +++
17    +++ exited with 0 +++
20    +++ exited with 1 +++
14    +++ exited with 1 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=1, si_utime=2, si_stime=2} ---
12    +++ exited with 1 +++