What happens if you write-in a candidate

What happens if you write-in a candidate