Result

WA

Duration

937ms

Code [DL]

module c;
	integer c,i=0,s=0,e=0;
	initial begin
		c=$fgetc(1<<31);
		for(i=0;c+1;i++)begin if(c[4])s=i;if(c[6])e=i;c=$fgetc(1<<31);end
		for(i=0;i<=e/51;i++)begin
			for(c=0;c<51;c++)begin
				if(c==s%51||(i==e/51&&c>=e%51&&c<=s%51)) $write("*");
				else $write(" ");
			$write("\n");
		end
	end
endmodule

stdin

                                          T       
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
               K                                  

stdout

stderr

/volume/CODE:13: syntax error
I give up.
/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"], 0x7ffcd6ebc510 /* 9 vars */) = 0
11    execve("/usr/local/bin/iverilog", ["/usr/local/bin/iverilog", "-o", "/tmp/code", "/volume/CODE"], 0x55af6cf5ed50 /* 9 vars */) = 0
12    execve("/bin/sh", ["sh", "-c", "/usr/local/lib/ivl/ivlpp  -L -F\""...], 0x7ffce21c2f00 /* 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"], 0x5643a96602e8 /* 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", "--", "-"], 0x5643a96602d0 /* 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 2 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=2, si_utime=0, si_stime=0} ---
12    +++ exited with 2 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=2, si_utime=0, si_stime=0} ---
11    +++ exited with 2 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11, si_uid=0, si_status=2, si_utime=0, si_stime=0} ---
16    execve("/tmp/code", ["/tmp/code"], 0x55af6cf5ecf0 /* 9 vars */ <unfinished ...>
15    execve("/bin/cat", ["cat", "-"], 0x55af6cf5ed08 /* 9 vars */ <unfinished ...>
16    <... execve resumed> )            = -1 ENOENT (No such file or directory)
15    <... execve resumed> )            = 0
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"], 0x55af6cf5ec98 /* 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 +++