A wild gubernatorial contest in North Carolina ended Tuesday with Democrat Josh Stein beating Lt. Gov. Mark Robinson, a Republican who saw his chances sink after he was linked to a pornographic website. In New Hampshire, former Republican senator Kelly Ayotte won a closely fought contest.

Those were the most contentious races among the 11 gubernatorial elections voters were deciding on Tuesday, with voters also weighing a host of ballot measures, other statewide offices and thousands of contests that will determine control of state legislatures.