L111 : invalid types for array subscript

#include <stdio.h>
#include <time.h>
#include <math.h>
#include <stdlib.h>

typedef struct {
int x;
int y;