Variable names should reflect what they hold. The array motor can NOT hold a bunch of motors.
If the name motorPins is more appropriate, please tell me which Arduino you are using that has more than 255 pins. If your Arduino doesn't have more than 255 pins, why does the type need to allow for more than that number of pins? In other words, why is the type int?