expected primary-expression before ']' token error

I am getting the error “expected primary-expression before ‘]’ token”. It is most likely due to the way I setup the array but I am not sure how to fix it. Here is the code:

#include <Wire.h>
#include <LIDARLite.h>
#include <ros.h>
#include <std_msgs/Float32.h>

// Set up the ros node and publisher
std_msgs::Float32 lidar_msg;
ros::Publisher pub_lidar("lidar", &lidar_msg);
ros::NodeHandle nh;

LIDARLite myLidarLite; // create myLidarLite object
float sensorReading = 0;
int myDists[100];

void setup()
  //Serial.begin(115200); // Initialize serial connection to display distance readings
  myLidarLite.begin(0, true); // Set configuration to default and I2C to 400 kHz
  myLidarLite.configure(0); // Change this number to try out alternate configurations

long publisher_timer;

void loop()
  if (millis() > publisher_timer) {
        for(int i=0; i<100; i++)
          myDists[i] = myLidarLite.distance(); // add elements (dists) to array  
        sensorReading = myDists[]; // set var equal to array
        lidar_msg.data = sensorReading; // set ros message data equal to array
        pub_lidar.publish(&lidar_msg);  // publish message
        publisher_timer = millis() + 4000; // publish once per second
  nh.spinOnce(); // calls ros::spinOnce() where all ROS communication callbacks are handled

This looks odd.
sensorReading = myDists; //

In other words you need to specify an array index:

sensorReading = myDists[0];....for example