Pipes for oil and gas with anticorrosion coating