by@progrunner17
WA
`define EOF 32'hFFFF_FFFF `define STDIN 32'h8000_0000 module cat; integer c,i,d; initial begin c = $fgetc(`STDIN);while (c != `EOF) begind = 0;i = 1; while ( c == 48 || c == 49)begin d = d * 2; d = d + c - 48; c = $fgetc(`STDIN); end i = 1; while(d > 0)begin d = d - i; i = i + 1; end if ( d == 0 )begin $write("%c\n", "1"); end else begin $write("%c\n", "0"); end c = $fgetc(`STDIN); end end endmodule
00100001 10000001 00001111 10010101 10110001 10101011 00000011 00000001 00001010 00000101 00011101 10011000 01101001 01001001 01000100 10001111 10111110 11100111 01011111 11111101 00000110 01110111 00011100 11101011 01001110 10101100 00000000 00110111 11101010 01110001 00100100 11010010 01011001 11100000 01000010 10101000 01011011 11010111 01100110 00010101 10000000 11101001 00110111 00101101 01111000 00001111 01001100 10011001 01100000 10001000
/volume/CODE:25: syntax error 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