On my brick it wasn't working, but
I saw that struct_array[i
] in one line didn't work on my brick.
So I have changed the code:
and my programm was now running on the brick.
I only got the compile error, because RobotC is different from normal C.
In C I used to write structure array[n] and the array goes from array to array[n] (n+1 indexes).
I didn't know that in RobotC you get for structure array[n] only an array from array to array[n-1] (n indexes).