The red lines are compiler reminders that the schematic has warnings and errors.
Usually, the component does not define the bit number, and the corresponding pin electrical properties are not connected correctly.
Solution: Tools - Label all devices, shortcut key T N