Result

WA

Duration

1145ms

Code [DL]

let input = require("fs").readFileSync("/dev/stdin", "utf8");
	input = input.split("\n");
	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];

	console.log('%d %s',a+b+c,s);

stdin

741 419
642 616
859 367
854 553
864 996
459 396
485 558
545 456
344 341
411 665
894 249
611 118
422 611
349 919
472 272
824 261
456 593
745 187
966 883
988 822
883 385
712 253
225 325
722 293
815 559
199 721
296 119
455 552
831 236
544 849
712 994
731 339

stdout

stderr

File "/tmp/code.re", line 9, characters 13-14:
Error: Unclosed "(" (opened line 9, column 12)

  We've found a bug for you!
  /tmp/code.re
  
  There's been an error running Reason's parser on a file.
  If the message doesn't help, check for errors slightly above.
  Please file an issue on github.com/facebook/reason. Thanks!
  

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc3a16dc00 /* 9 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55ea51a50d18 /* 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"], 0x55ea51a50d38 /* 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"], 0x55ea51a50d20 /* 9 vars */) = 0
13    execve("/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffec9f61580 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/local/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffec9f61580 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/local/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffec9f61580 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffec9f61580 /* 9 vars */) = -1 ENOENT (No such file or directory)
13    execve("/usr/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffec9f61580 /* 9 vars */) = 0
20    execve("/usr/lib/node_modules/bs-platform/linux/bsc.exe", ["/usr/lib/node_modules/bs-platfor"..., "/tmp/code.re"], 0x560321e6cf60 /* 9 vars */) = 0
21    execve("/bin/sh", ["sh", "-c", "/usr/lib/node_modules/bs-platfor"...], 0x7ffc07267ac0 /* 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"], 0x562ce7161090 /* 9 vars */) = 0
21    +++ exited with 1 +++
20    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
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 +++
17    +++ exited with 0 +++
15    +++ exited with 0 +++
16    +++ exited with 0 +++
14    +++ 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=6, si_stime=1} ---
23    execve("/usr/bin/node", ["/usr/bin/node", "/tmp/code.js"], 0x55ea51a50d48 /* 9 vars */) = 0
22    execve("/bin/cat", ["cat", "-"], 0x55ea51a50d38 /* 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 +++
26    +++ exited with 0 +++
27    +++ 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=0} ---
30    execve("/bin/rm", ["rm", "/tmp/code.js", "/tmp/code.re"], 0x55ea51a50cf0 /* 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 +++