United Airlines forecast a first-quarter loss, citing weaker demand early in the year and higher fuel costs.