Eurozone and European Union inflation reached a three-year high of 4 percent in October due to soaring energy costs.