Found the two error spots and fixed them. You have "int sec[] = {0xC,0xB,0x8,0x1,0x2,0x7,0x4,0xD,0xA,0x3,0x0,0x9,0 x6,0x5};" and later on "unsigned int sec[] = {0x8,0x7,0xA,0x9,0xC,0x3,0x0,0xB,0x6,0xD,0x2,0x5,0 x4,0x1};", where the gap causes the parse error.
Thanks again!