Result

WA

Duration

1122ms

Code [DL]

let x = Node.Fs.readFileSync("/dev/stdin", `utf8);
Js.log(x);

stdin

295 954
295 996
897 461
343 457
574 425
163 344
911 118
853 571
883 597
299 434
921 619
115 511
399 952
357 752
722 553
311 467
265 551
733 369
411 338
877 277
585 554
271 872
556 994
771 316
354 177
655 558
566 567
876 576
758 559
281 526
918 183
468 775

stdout

295 954
295 996
897 461
343 457
574 425
163 344
911 118
853 571
883 597
299 434
921 619
115 511
399 952
357 752
722 553
311 467
265 551
733 369
411 338
877 277
585 554
271 872
556 994
771 316
354 177
655 558
566 567
876 576
758 559
281 526
918 183
468 775

stderr

strace

12    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffeaaa474f0 /* 9 vars */) = 0
13    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x5596e6ffad18 /* 9 vars */) = 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("/bin/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.re"], 0x5596e6ffad38 /* 9 vars */) = 0
14    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
15    execve("/usr/bin/bsc", ["/usr/bin/bsc", "/tmp/code.re"], 0x5596e6ffad20 /* 9 vars */) = 0
15    execve("/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffecbe68d00 /* 9 vars */) = -1 ENOENT (No such file or directory)
15    execve("/usr/local/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffecbe68d00 /* 9 vars */) = -1 ENOENT (No such file or directory)
15    execve("/usr/local/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffecbe68d00 /* 9 vars */) = -1 ENOENT (No such file or directory)
15    execve("/usr/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffecbe68d00 /* 9 vars */) = -1 ENOENT (No such file or directory)
15    execve("/usr/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffecbe68d00 /* 9 vars */) = 0
22    execve("/usr/lib/node_modules/bs-platform/linux/bsc.exe", ["/usr/lib/node_modules/bs-platfor"..., "/tmp/code.re"], 0x561d8acaff60 /* 9 vars */) = 0
23    execve("/bin/sh", ["sh", "-c", "/usr/lib/node_modules/bs-platfor"...], 0x7fff7238cd20 /* 9 vars */) = 0
23    execve("/usr/lib/node_modules/bs-platform/linux/refmt.exe", ["/usr/lib/node_modules/bs-platfor"..., "--print=binary", "/tmp/code.re"], 0x55fa1507c090 /* 9 vars */) = 0
23    +++ exited with 0 +++
22    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=23, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
22    +++ exited with 0 +++
15    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=22, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
20    +++ exited with 0 +++
17    +++ exited with 0 +++
19    +++ exited with 0 +++
18    +++ exited with 0 +++
16    +++ exited with 0 +++
21    +++ exited with 0 +++
15    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=4, si_stime=0} ---
25    execve("/usr/bin/node", ["/usr/bin/node", "/tmp/code.js"], 0x5596e6ffad48 /* 9 vars */ <unfinished ...>
24    execve("/bin/cat", ["cat", "-"], 0x5596e6ffad38 /* 9 vars */ <unfinished ...>
25    <... execve resumed>)             = 0
24    <... execve resumed>)             = 0
24    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=24, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
30    +++ exited with 0 +++
27    +++ exited with 0 +++
26    +++ exited with 0 +++
28    +++ exited with 0 +++
29    +++ exited with 0 +++
31    +++ exited with 0 +++
25    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=25, si_uid=0, si_status=0, si_utime=2, si_stime=1} ---
32    execve("/bin/rm", ["rm", "/tmp/code.js", "/tmp/code.re"], 0x5596e6ffacf0 /* 9 vars */) = 0
32    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=32, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
12    +++ exited with 0 +++