YouCompleteMe puts symbols in the "gutter" (left of the editor) for errors:
The problem is that the gutter shifts the whole editor over, and it is only present when there is at least one error. Compare:
Short of always writing code with at least one error, how can I keep the width constant?