by@progrunner17
WA
`define EOF 32'hFFFF_FFFF `define STDIN 32'h8000_0000 module cat; integer c,i,d; initial begin c = $fgetc(`STDIN); i = 1; d = 0; while (c != `EOF) begin while ( c != 10)begin d += (c - 48) * i; i = i * 2; c = $fgetc(`STDIN); end $write("%d", d); c = $fgetc(`STDIN); d = 0; end end endmodule
00000000 01101000 11010100 10011001 10111110 11100010 11100111 11111101 01101001 00110111 01000010 10010010 01001110 01011000 10100101 10001110 01100011 00001010 00101101 00011011 11010010 00100100 10111011 01101100 00111100 10011000 00100011 10101001 00000100 01101001 00000011 00010101 01011011 11010001 01110001 11001000 11111001 10011001 00011100 01111000 00111010 00001111 00101001 10101011 11011000 00001101 10111100 00000001 00000110 10001000
/volume/CODE:12: syntax error /volume/CODE:12: Syntax in assignment statement l-value. /home/esolang/bin/verilog: line 4: /tmp/code: No such file or directory rm: cannot remove '/tmp/code': No such file or directory