array problems

I’m trying to use arrays to shorten my code and speed things up but instead it runs 10x slower in the serialprint and fails to light the leds at all. I have been working on it for several days and am here because I need expert help.

#include <Ultrasonic.h>

/* 
 Ultrasonic ultrasonic1 (23,22);
 Ultrasonic ultrasonic2 (25,24);
 Ultrasonic ultrasonic3 (27,26);
 Ultrasonic ultrasonic4 (29,28);
 Ultrasonic ultrasonic5 (31,30);
 Ultrasonic ultrasonic6 (33,32);
 Ultrasonic ultrasonic7 (35,34);
 Ultrasonic ultrasonic8 (37,36);
 Ultrasonic ultrasonic9 (39,38);
 Ultrasonic ultrasonic10 (41,40);
 Ultrasonic ultrasonic11 (43,42);
 Ultrasonic ultrasonic12 (45,44);
 
 int pwmLed1 = 2;
 int pwmLed2 = 3;
 int pwmLed3 = 4;
 int pwmLed4 = 5;
 int pwmLed5 = 6;
 int pwmLed6 = 7;
 int pwmLed7 = 8;
 int pwmLed8 = 9;
 int pwmLed9 =10;
 int pwmLed10 = 11;
 int pwmLed11 = 12;
 int pwmLed12 = 13;
 */

// array ultrasonic initializer
Ultrasonic ultrasonic[] = { 
  Ultrasonic(23,22),
  Ultrasonic (25,24),
  Ultrasonic (27,26),
  Ultrasonic (29,28),
  Ultrasonic (31,30),
  Ultrasonic (33,32),
  Ultrasonic (35,34),
  Ultrasonic (37,36),
  Ultrasonic (39,38),
  Ultrasonic (41,40),
  Ultrasonic (43,42),
  Ultrasonic (45,44)};

int pwmLed[12] = {
  2,3,4,5,6,7,8,9,10,11,12,13};

void setup() {
  Serial.begin(9600);

  /*pinMode (pwmLed1, OUTPUT);
   pinMode (pwmLed2, OUTPUT);
   pinMode (pwmLed3, OUTPUT);
   pinMode (pwmLed4, OUTPUT);
   pinMode (pwmLed5, OUTPUT);
   pinMode (pwmLed6, OUTPUT);
   pinMode (pwmLed7, OUTPUT);
   pinMode (pwmLed8, OUTPUT);
   pinMode (pwmLed9, OUTPUT);
   pinMode (pwmLed10, OUTPUT);
   pinMode (pwmLed11, OUTPUT);
   pinMode (pwmLed12, OUTPUT);
   */

  for (int i = 0; i<12;i++) {  
    pinMode(pwmLed[i], OUTPUT);
  }
}

void loop()
{
  for(int i =0; i<12;i++){
    int brightness[i];
    int distance[i];
    // calculating ultrasonic distance
    distance[i] = (ultrasonic[i].Ranging(CM));
    // mapping brightness to distance
    brightness[i] = map (distance[i], 206, 20, 30, 256);
    //write brightness to leds
    analogWrite (pwmLed[i], brightness[i]);

    //full code that works but is big
    /* 
     
     int brightness1, brightness2,brightness3,brightness4,brightness5,brightness6,brightness7,brightness8,brightness9,brightness10,brightness11,brightness12;
     int distance1,distance2,distance3,distance4,distance5,distance6,distance7,distance8,distance9,distance10,distance11,distance12;
     
     // calculating ultrasonic distance
     distance[1] = ultrasonic[1].Ranging(CM); 
     distance[2] =ultrasonic[2].Ranging(CM);
     distance[3] =ultrasonic[3].Ranging(CM);
     distance[4] =ultrasonic[4].Ranging(CM);
     distance[5] =ultrasonic[5].Ranging(CM);
     distance[6] =ultrasonic[6].Ranging(CM);
     distance[7] =ultrasonic[7].Ranging(CM);
     distance[8] = ultrasonic[8].Ranging(CM);
     distance[9] =ultrasonic[9].Ranging(CM);
     distance[10] =ultrasonic[10].Ranging(CM);
     distance[11] =ultrasonic[11].Ranging(CM);
     distance[12] =ultrasonic[12].Ranging(CM);
     
     // mapping brightness to distance
    /*brightness1 = map (distance[1], 206, 20, 30, 256);
     brightness2 = map (distance[2], 206, 20, 30, 256);
     brightness3 = map (distance[3], 206, 20, 30, 256);
     brightness4 = map (distance[4], 206, 20, 30, 256);
     brightness5 = map (distance[5],206, 20, 30, 256);
     brightness6 = map (distance[6], 206, 20, 30, 256);
     brightness7 = map (distance[7], 250, 20, 30, 256);
     brightness8 = map (distance[8], 206, 20, 30, 256);
     brightness9 = map (distance[9], 206, 20, 30, 256);
     brightness10 = map (distance[10], 206, 20, 30, 256);
     brightness11 = map (distance[11], 206, 20, 30, 256);
     brightness12 = map (distance[12], 206, 20, 30, 256);
     
     //write brightness to leds
     analogWrite (pwmLed[1], brightness[1]); 
     analogWrite (pwmLed[2], brightness[2]);
     analogWrite (pwmLed[3], brightness[3]); 
     analogWrite (pwmLed[4], brightness[4]); 
     analogWrite (pwmLed[5], brightness[5]); 
     analogWrite (pwmLed[6], brightness[6]);
     analogWrite (pwmLed[7], brightness[7]);
     analogWrite (pwmLed[8], brightness[8]);
     analogWrite (pwmLed[9], brightness[9]);
     analogWrite (pwmLed[10], brightness[10]);
     analogWrite (pwmLed[11], brightness[11]);
     analogWrite (pwmLed[12], brightness[12]);
     */

    Serial.print(distance[i]);
    Serial.print("cm ");
    Serial.print(":");
    Serial.print(brightness[i]);
    Serial.print("--");
  }
  Serial.println();
  delay (100);
}

//left out the non array print because it is really long
for(int i =0; i<12;i++){
    int brightness[i];
    int distance[i];

Huh? How about:

int brightness[12];
int distance[12];

for(int i =0; i<12;i++){

THANKS! Fixed, now I can erase all the ugly stuff.