Right. You can't have code that's not inside some function, and you can't have an initialized that sets only one element of the array. You could also have done:
int myValue[10] = {0,0,0,0,0, 0,0,0,0,0};
Also, C will initialize arrays to all zeros automatically (though I don't think it's good form to count on this!)