Error declaring two-dimensional array: 'x' was not declared in this scope
Without quotes, a, b, c etc. are just names. You didn't declare any of them, so the compiler complains.
Put single quotes around the letters to let the compiler know that they are char literals.