you need to either assign the values while creating the array or specify the size of the array MyStruct array[10]
MyStruct array[10]
The compiler needs to know how many elements you will have