Veren Inc. reported a profit of $277.2 million in its latest quarter compared with a loss a year earlier.