A survey says the average price of a gallon of regular gasoline in the U.S. has risen by 2 cents over the last two weeks to $3.71.