@mayuutann or you could learn how to treat singledimensional arrays just like multidimensional ones, like this C code:
#define WIDTH 10
#define HEIGHT 20
int myarray[10*20];
// same as int myarray[10][20];
myarray[3 + WIDTH*8] = 99999;
// same as myarray[3][8] = 99999;