Result

WA

Duration

1085ms

Code [DL]

let inpu = Node.Fs.readFileSync("/dev/stdin", `utf8)
let input = inpu.split("\n");
let tmp = input[1].split(" ");
let a = parseInt(input[0], 10);
let b = parseInt(tmp[0], 10);
let c = parseInt(tmp[1], 10);
let s = input[2];
Js.log(a+b+c);

stdin

867 853
173 733
123 323
988 667
687 773
799 192
543 248
698 584
166 561
763 529
325 211
935 597
251 557
933 499
633 116
829 238
165 562
841 388
955 556
455 556
623 237
658 948
977 351
465 225
225 517
785 759
895 792
957 338
477 757
169 995
596 996
899 988

stdout

stderr

  We've found a bug for you!
  /tmp/code.re 2:18-22
  
  1 │ let inpu = Node.Fs.readFileSync("/dev/stdin", `utf8)
  2 │ let input = inpu.split("\n");
  3 │ let tmp = input[1].split(" ");
  4 │ let a = parseInt(input[0], 10);
  
  The record field split can't be found.
  
  If it's defined in another module or file, bring it into scope by:
  - Annotating it with said module name: let baby = {MyModule.age: 3}
  - Or specifying its type: let baby: MyModule.person = {age: 3}
  

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd76e6b230 /* 9 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x5629b8b7ad18 /* 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"], 0x5629b8b7ad38 /* 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"], 0x5629b8b7ad20 /* 9 vars */) = 0
13    execve("/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffcdd64ba80 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/local/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffcdd64ba80 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/local/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffcdd64ba80 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffcdd64ba80 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffcdd64ba80 /* 9 vars */) = 0
20    execve("/usr/lib/node_modules/bs-platform/linux/bsc.exe", ["/usr/lib/node_modules/bs-platfor"..., "/tmp/code.re"], 0x55ed64b073c0 /* 9 vars */) = 0
21    execve("/bin/sh", ["sh", "-c", "/usr/lib/node_modules/bs-platfor"...], 0x7fff89aef3d0 /* 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"], 0x55a512dd9090 /* 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=1} ---
20    +++ exited with 2 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=2, si_utime=0, si_stime=0} ---
18    +++ exited with 0 +++
15    +++ exited with 0 +++
14    +++ exited with 0 +++
16    +++ exited with 0 +++
17    +++ exited with 0 +++
19    +++ exited with 2 +++
13    +++ exited with 2 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=2, si_utime=3, si_stime=1} ---
22    execve("/bin/cat", ["cat", "-"], 0x5629b8b7ad38 /* 9 vars */ <unfinished ...>
23    execve("/usr/bin/node", ["/usr/bin/node", "/tmp/code.js"], 0x5629b8b7ad48 /* 9 vars */ <unfinished ...>
22    <... execve resumed>)             = 0
23    <... execve resumed>)             = 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} ---
27    +++ exited with 0 +++
26    +++ exited with 0 +++
28    +++ exited with 0 +++
25    +++ 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=2, si_stime=1} ---
30    execve("/bin/rm", ["rm", "/tmp/code.js", "/tmp/code.re"], 0x5629b8b7acf0 /* 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 +++