Is it possible to assign many pins to one variable?

Just for the future, always post the full error, not just the last couple lines. That will usually (but not always) have some information about what line the problem is on.