Your error is coming from the line before that.


Shape array[];


The two brackets should come after the type, not the identifier and I do believe you have to instantiate arrays if I remember...