Oil rose on Wednesday, with Brent at $40 for the first time since March, as optimism mounted that major producers will extend production cuts and…