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 = d + (c - 48) * i; i = i * 2; c = $fgetc(`STDIN); end i = 1; while(d > 0)begin d = d - i; i = i + 1; end if ( d == 0)beign $write("%d", d); end else begin $write("%d", d); end c = $fgetc(`STDIN); d = 0; i = 1; end end endmodule
00111101 01001100 00000011 01100001 11001010 01100011 00000110 00100100 11010010 00110000 10111110 01011011 11111100 01011100 10001000 00011100 00000000 10001100 01101001 10101011 00011101 01000010 11111000 11111101 00111011 00000001 00111001 11110101 01111001 01001110 10100111 11101011 00010101 00110111 10111110 11010101 11100111 00001010 10101100 00010001 01111000 01100111 00101101 00100011 01101010 10011001 10011001 01010110 10110001 00001111
/volume/CODE:22: syntax error /volume/CODE:22: error: malformed statement /volume/CODE:23: syntax error /volume/CODE:24: error: malformed statement /volume/CODE:26: syntax error /volume/CODE:26: error: Invalid module instantiation /volume/CODE:27: error: Invalid module instantiation /volume/CODE:28: error: Invalid module instantiation I give up. /home/esolang/bin/verilog: line 4: /tmp/code: No such file or directory rm: cannot remove '/tmp/code': No such file or directory