I have the following struct:
const int MAX = 6;
typedef struct {
int num1;
int arr1[MAX];
int arr2[MAX];
int num2;
} MyStruct;
And I initialize this array likes the following:
MyStruct myStruct = {1, {-1}, {2,-1}, 1};
But get the following errors, for the first element:
Invalid Initialiser
And for the second element:
too many elements in initialiser
I should have mentioned that the Uppaal version that I use is 4.1.19
.
So, the question is where is the problem?