Voters encountered long lines at the polls and scattered problems on Tuesday. Many of the difficulties were in the New York and New Jersey areas where some voters had to cast ballots in the dark or were confused about where to vote. There was also confusion about ID requirements in Pennsylvania, and some confrontations involving poll watchers.