Result

WA

Duration

1358ms

Code [DL]

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

stdin

842 226
732 286
789 882
861 431
221 479
177 875
846 881
623 664
752 548
411 144
788 757
871 313
688 899
327 224
232 687
199 449
144 995
452 217
944 744
844 449
178 677
415 154
668 481
295 912
774 743
166 727
112 219
486 662
877 771
493 442
457 658
496 696

stdout

842 226
732 286
789 882
861 431
221 479
177 875
846 881
623 664
752 548
411 144
788 757
871 313
688 899
327 224
232 687
199 449
144 995
452 217
944 744
844 449
178 677
415 154
668 481
295 912
774 743
166 727
112 219
486 662
877 771
493 442
457 658
496 696
































stderr

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

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe27f5c9c0 /* 9 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55688f7a4d18 /* 9 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("/bin/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.re"], 0x55688f7a4d38 /* 9 vars */) = 0
12    +++ exited with 0 +++
10    --- 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("/usr/bin/bsc", ["/usr/bin/bsc", "/tmp/code.re"], 0x55688f7a4d20 /* 9 vars */) = 0
13    execve("/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffc4ca313c0 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/local/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffc4ca313c0 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/local/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffc4ca313c0 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffc4ca313c0 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffc4ca313c0 /* 9 vars */) = 0
20    execve("/usr/lib/node_modules/bs-platform/linux/bsc.exe", ["/usr/lib/node_modules/bs-platfor"..., "/tmp/code.re"], 0x55cb4cae4f60 /* 9 vars */) = 0
21    execve("/bin/sh", ["sh", "-c", "/usr/lib/node_modules/bs-platfor"...], 0x7fff69b9b800 /* 9 vars */) = 0
21    execve("/usr/lib/node_modules/bs-platform/linux/refmt.exe", ["/usr/lib/node_modules/bs-platfor"..., "--print=binary", "/tmp/code.re"], 0x56524bb4f090 /* 9 vars */) = 0
21    +++ exited with 0 +++
20    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
20    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
16    +++ exited with 0 +++
15    +++ exited with 0 +++
18    +++ exited with 0 +++
17    +++ exited with 0 +++
14    +++ exited with 0 +++
19    +++ exited with 0 +++
13    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=6, si_stime=1} ---
22    execve("/bin/cat", ["cat", "-"], 0x55688f7a4d38 /* 9 vars */) = 0
23    execve("/usr/bin/node", ["/usr/bin/node", "/tmp/code.js"], 0x55688f7a4d48 /* 9 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} ---
25    +++ exited with 0 +++
28    +++ exited with 0 +++
27    +++ exited with 0 +++
26    +++ exited with 0 +++
24    +++ exited with 0 +++
29    +++ exited with 0 +++
23    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=23, si_uid=0, si_status=0, si_utime=5, si_stime=2} ---
30    execve("/bin/rm", ["rm", "/tmp/code.js", "/tmp/code.re"], 0x55688f7a4cf0 /* 9 vars */) = 0
30    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=30, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
10    +++ exited with 0 +++