by@progrunner17
WA
`define STDIN 32'h8000_0000 module cat;integer c,i,d;initial begin c=$fgetc(`STDIN);while(!(&c))begin d=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
00000011 10001000 01111000 00110000 01000010 00001010 10111100 00000110 10001001 00000000 10110111 01110000 10010000 01110100 10000110 00001111 11100111 01110101 11010010 00011010 01000000 11100111 00011100 01011011 01010111 00000110 10111110 10011001 00101001 00101101 01111111 01011111 10110110 11110010 01001110 01101001 10101011 11110011 00000001 01101110 01110001 01110110 10101000 11111101 01011110 00010101 00100110 00110111 00100100 11101100
No top level modules, and no -s option. /home/esolang/bin/verilog: line 4: /tmp/code: No such file or directory rm: cannot remove '/tmp/code': No such file or directory