Define analog pin as output

Which will work since A0 is defined as a macro.

A0 is not a macro. From WProgram.h:

const static uint8_t A0 = 14;

(for the non-Mega Arduinos).