comparator sending out vcc value
The input voltage range of the LM319 does not extend to ground or below. The lowest valid input voltage is 1V above ground. Note also that the output is open collector so you do need a pull-up from output to positive rail.