Result

WA

Duration

753ms

Code [DL]

module m;integer X,Y;initial begin
for(;$fscanf(1<<31,"%d%d",X,Y);)$write(Y/10%11?X%10:Y/100);end
endmodule

stdin

732 239
785 854
355 225
262 225
688 123
466 665
526 662
733 956
337 471
751 155
522 526
981 812
711 419
355 544
318 217
177 655
473 776
877 779
834 998
873 316
215 576
879 656
813 286
171 676
861 448
219 294
388 892
858 558
256 568
459 541
567 683
499 334

stdout

stderr

/volume/CODE:2: syntax error
/volume/CODE:2: error: Incomprehensible for loop.
/volume/CODE:2: error: malformed statement
/root/script: line 5: /tmp/code: not found
rm: can't remove '/tmp/code': No such file or directory

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff47f6ca80 /* 9 vars */) = 0
11    execve("/usr/local/bin/iverilog", ["/usr/local/bin/iverilog", "-o", "/tmp/code", "/volume/CODE"], 0x56074f994d50 /* 9 vars */) = 0
12    execve("/bin/sh", ["sh", "-c", "/usr/local/lib/ivl/ivlpp  -L -F\""...], 0x7fff8f7efd30 /* 9 vars */) = 0
14    execve("/usr/local/lib/ivl/ivl", ["/usr/local/lib/ivl/ivl", "-C/tmp/ivrlh3999c4e2", "-C/usr/local/lib/ivl/vvp.conf", "--", "-"], 0x563a64f8d290 /* 9 vars */) = 0
13    execve("/usr/local/lib/ivl/ivlpp", ["/usr/local/lib/ivl/ivlpp", "-L", "-F/tmp/ivrlg23999c4e2", "-f/tmp/ivrlg3999c4e2", "-p/tmp/ivrli3999c4e2"], 0x563a64f8d2a8 /* 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    +++ exited with 3 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=3, si_utime=0, si_stime=0} ---
12    +++ exited with 3 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=3, si_utime=0, si_stime=0} ---
11    +++ exited with 3 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11, si_uid=0, si_status=3, si_utime=0, si_stime=0} ---
15    execve("/bin/cat", ["cat", "-"], 0x56074f994d08 /* 9 vars */) = 0
16    execve("/tmp/code", ["/tmp/code"], 0x56074f994cf0 /* 9 vars */) = -1 ENOENT (No such file or directory)
16    +++ exited with 127 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=127, si_utime=0, si_stime=0} ---
15    --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=15, si_uid=0} ---
15    +++ killed by SIGPIPE +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=15, si_uid=0, si_status=SIGPIPE, si_utime=0, si_stime=0} ---
17    execve("/bin/rm", ["rm", "/tmp/code"], 0x56074f994c98 /* 9 vars */) = 0
17    +++ exited with 1 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
10    +++ exited with 1 +++