I was about to suggest the code below, but then I've tried it in a compiler and I got an error.
static int arCombs[6][11] =
{
{i1,i2,i3,i4,i5,i6},
{i7,i8,i9,i10,i1,i2},
{i8,i9,i10,i1,i2,i3},
{i9,i10,i1,i2,i3,i4},
{i10,i1,i2,i3,i4,i5},
{i1,i2,i3,i4,i5,i7},
{i1,i2,i3,i4,i7,i8},
{i1,i2,i3,i7,i8,i9},
{i1,i2,i7,i8,i9,i10},
{i1,i6,i7,i8,i9,i10},
{i5,i6,i7,i8,i9,i10}
};
The dimensions are wrong. You are declaring an array of 6 arrays of 11 elements, not an array of 11 arrays of 6 elements. But you only initialize 6 of those 11. The rest get the default value, 0.
So the correct way should be:
static int arCombs[6][11] =
{
{i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11},
{i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11},
{i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11},
{i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11},
{i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11},
{i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11}
};
or even
static int arCombs[6][11] =
{
i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11,
i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11,
i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11,
i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11,
i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11,
i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11
};
I just copied and pasted the values, but you get the picture
Florin Crisan
|