Two people were robbed at gunpoint late Wednesday near a dorm at the University of North Carolina at Chapel Hill, according to police.