Result

WA

Duration

1042ms

Code [DL]

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

stdin

183 134
699 991
437 568
134 337
835 535
424 663
865 663
643 362
355 485
576 751
453 598
911 195
377 661
977 772
922 721
211 247
245 556
554 336
516 215
867 678
355 546
699 337
753 354
929 569
582 825
152 241
562 544
772 921
419 516
199 699
363 337
239 553

stdout

stderr

internal/modules/cjs/loader.js:983
  throw err;
  ^

Error: Cannot find module 'bs-platform/lib/js/caml_string.js'
Require stack:
- /tmp/code.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
    at Function.Module._load (internal/modules/cjs/loader.js:862:27)
    at Module.require (internal/modules/cjs/loader.js:1042:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (/tmp/code.js:5:19)
    at Module._compile (internal/modules/cjs/loader.js:1156:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/tmp/code.js' ]
}

strace

12    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff7516ed40 /* 9 vars */) = 0
13    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x558eedc9cd18 /* 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"], 0x558eedc9cd38 /* 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"], 0x558eedc9cd20 /* 9 vars */) = 0
15    execve("/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffce9deb6f0 /* 9 vars */) = -1 ENOENT (No such file or directory)
15    execve("/usr/local/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffce9deb6f0 /* 9 vars */) = -1 ENOENT (No such file or directory)
15    execve("/usr/local/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffce9deb6f0 /* 9 vars */) = -1 ENOENT (No such file or directory)
15    execve("/usr/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffce9deb6f0 /* 9 vars */) = -1 ENOENT (No such file or directory)
15    execve("/usr/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffce9deb6f0 /* 9 vars */) = 0
22    execve("/usr/lib/node_modules/bs-platform/linux/bsc.exe", ["/usr/lib/node_modules/bs-platfor"..., "/tmp/code.re"], 0x5565d5e07940 /* 9 vars */) = 0
23    execve("/bin/sh", ["sh", "-c", "/usr/lib/node_modules/bs-platfor"...], 0x7fff55863920 /* 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"], 0x55c2a2277090 /* 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 +++
19    +++ exited with 0 +++
18    +++ exited with 0 +++
17    +++ 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=5, si_stime=1} ---
24    execve("/bin/cat", ["cat", "-"], 0x558eedc9cd38 /* 9 vars */) = 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} ---
25    execve("/usr/bin/node", ["/usr/bin/node", "/tmp/code.js"], 0x558eedc9cd48 /* 9 vars */) = 0
30    +++ exited with 0 +++
27    +++ exited with 0 +++
28    +++ exited with 0 +++
29    +++ exited with 0 +++
26    +++ exited with 0 +++
31    +++ exited with 1 +++
25    +++ exited with 1 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=25, si_uid=0, si_status=1, si_utime=5, si_stime=0} ---
32    execve("/bin/rm", ["rm", "/tmp/code.js", "/tmp/code.re"], 0x558eedc9ccf0 /* 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 +++