Result

WA

Code [DL]

module a;real x;initial repeat(50)$write($fgets(1<<31,"%b",x)+x-1);endmodule

stdin

00000001
00101101
10001000
10110011
00001111
01000010
10010110
10100010
00000100
01000100
11110011
10011001
10011001
00000110
00100011
11111011
01111111
10101011
01011011
10010011
01000010
01111011
00010101
01111000
11011000
00010010
11110000
00100100
01011111
01001110
11010010
10101010
10111110
10000011
00000011
01101001
01010100
10100110
01011001
01110111
00001010
01111110
00110111
01001101
00000000
00011100
00101000
11100111
11111101
10000100

stdout

ERROR: /volume/CODE:1: $fgets's first argument must be a reg.
ERROR: /volume/CODE:1: $fgets's second argument must be numeric.
ERROR: /volume/CODE:1: $fgets takes two arguments.
                       Found 1 extra argument.

stderr

strace