Using Char Array with pinMode [SOLVED]

try

const char relays[] = { RELAY1, RELAY2, RELAY3, RELAY4, RELAY5, RELAY6, RELAY7, RELAY8 };