Result

WA

Duration

1240ms

Code [DL]

for (i in 0 to 31) {
  let a = Node.Fs.readFileSync("/dev/stdin", `utf8);Js.log(a);
};

stdin

594 536
157 554
449 996
661 162
785 455
344 519
522 238
826 261
468 499
845 556
199 939
371 129
622 442
656 513
355 285
573 231
877 778
727 558
834 537
476 775
328 632
955 856
411 119
238 379
991 498
355 253
211 443
575 883
486 627
723 465
178 784
745 546

stdout

594 536
157 554
449 996
661 162
785 455
344 519
522 238
826 261
468 499
845 556
199 939
371 129
622 442
656 513
355 285
573 231
877 778
727 558
834 537
476 775
328 632
955 856
411 119
238 379
991 498
355 253
211 443
575 883
486 627
723 465
178 784
745 546
































stderr

  Warning number 35
  /tmp/code.re 1:1-3:1
  
  1 │ for (i in 0 to 31) {
  2 │   let a = Node.Fs.readFileSync("/dev/stdin", `utf8);Js.log(a);
  3 │ };
  
  unused for-loop index i.
  

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe56abfdb0 /* 9 vars */) = 0
12    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55aaa40e8d18 /* 9 vars */) = 0
12    +++ exited with 0 +++
11    --- 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("/bin/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.re"], 0x55aaa40e8d38 /* 9 vars */) = 0
13    +++ exited with 0 +++
11    --- 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("/usr/bin/bsc", ["/usr/bin/bsc", "/tmp/code.re"], 0x55aaa40e8d20 /* 9 vars */) = 0
14    execve("/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffe32a23410 /* 9 vars */) = -1 ENOENT (No such file or directory)
14    execve("/usr/local/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffe32a23410 /* 9 vars */) = -1 ENOENT (No such file or directory)
14    execve("/usr/local/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffe32a23410 /* 9 vars */) = -1 ENOENT (No such file or directory)
14    execve("/usr/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffe32a23410 /* 9 vars */) = -1 ENOENT (No such file or directory)
14    execve("/usr/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffe32a23410 /* 9 vars */) = 0
21    execve("/usr/lib/node_modules/bs-platform/linux/bsc.exe", ["/usr/lib/node_modules/bs-platfor"..., "/tmp/code.re"], 0x55bc75f4a760 /* 9 vars */) = 0
22    execve("/bin/sh", ["sh", "-c", "/usr/lib/node_modules/bs-platfor"...], 0x7ffca4ed3400 /* 9 vars */) = 0
22    execve("/usr/lib/node_modules/bs-platform/linux/refmt.exe", ["/usr/lib/node_modules/bs-platfor"..., "--print=binary", "/tmp/code.re"], 0x55c14ee54090 /* 9 vars */) = 0
22    +++ exited with 0 +++
21    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=22, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
21    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, si_uid=0, si_status=0, si_utime=0, si_stime=1} ---
18    +++ exited with 0 +++
16    +++ exited with 0 +++
19    +++ exited with 0 +++
17    +++ exited with 0 +++
15    +++ exited with 0 +++
20    +++ exited with 0 +++
14    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=6, si_stime=1} ---
23    execve("/bin/cat", ["cat", "-"], 0x55aaa40e8d38 /* 9 vars */ <unfinished ...>
24    execve("/usr/bin/node", ["/usr/bin/node", "/tmp/code.js"], 0x55aaa40e8d48 /* 9 vars */ <unfinished ...>
23    <... execve resumed>)             = 0
24    <... execve resumed>)             = 0
23    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=23, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
27    +++ exited with 0 +++
26    +++ exited with 0 +++
29    +++ exited with 0 +++
28    +++ exited with 0 +++
25    +++ exited with 0 +++
30    +++ exited with 0 +++
24    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=24, si_uid=0, si_status=0, si_utime=5, si_stime=0} ---
31    execve("/bin/rm", ["rm", "/tmp/code.js", "/tmp/code.re"], 0x55aaa40e8cf0 /* 9 vars */) = 0
31    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=31, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
11    +++ exited with 0 +++