Pulling high 6 pins at the same time

Hi!

I tried to pull high 6 pins at the same time and I kept on getting an error. Can I please get some help with this problem.
Thank you,
Jaden

void setup() {
pinMode(1, OUTPUT);
pinMode(2, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
}

void loop() {
digitalWrite(1,2,5,6,9,10, HIGH);
delay(5000);
digitalWrite(1,2,5,6,9,10, LOW);
delay(5000);

}

pinMode(1, OUTPUT); // can't use that pin, assuming you have an Uno.
Pin0 and pin1 are connected to the USB<>Serial chip, that always pulls those pins HIGH.

digitalWrite(1,2,5,6,9,10, HIGH); // not valid syntax

If you HAVE to set a range of pins at the same time, use port manipulation.
But WHY...
Otherwise use a for loop, and arrays if the pins are not in order.
Leo..

int myPins[] = {1, 2, 5, 6, 9, 10};

void setup() {
  for (int i = 0; i < 6; i++) pinMode(myPins[i], OUTPUT);
}

void loop() {
  for (int i = 0; i < 6; i++) digitalWrite(myPins[i], HIGH);
  delay(5000);
  for (int i = 0; i < 6; i++) digitalWrite(myPins[i], LOW);
  delay(5000);
}

(deleted)