The Adafruit example is easy to follow. Did you try to load the example onto the Arduino? Have you tried 1 sensor at a time?
but when running the sample code of the sensor using the adafruit library it gives an error
Why do you go through the effort of putting text as image, when you can just post text as text, and it's still perfectly readable?For the sensor problem: I've seen this myself. Vcc line was disconnected, other wires were connected properly (including the GPIO, never used the enable (X) one). Apparently the phantom powering allows the sensor to respond, but not more than that. So: check your connections.This library works better for me than the Adafruit one, also worth a try: https://github.com/ScruffR/VL53L0X