ConocoPhillips, Amerada Hess Corp. and Kerr-McGee Corp. posted gains in third-quarter earnings as surging energy prices more than…