1. , but you failed to write the function to the appropriate declaration of

BOOL Solution(unsigned hyper solution_to_check);

2. Unsigned hyper? What's a hyper? :-) An unsigned long will do just fine; you only need 24 bits to represent solutions somewhat naively, a long long if you represent very naively.

3. > Unsigned hyper? What's a hyper? :-)
If you type "unsigned hyper" into google, you can find this: http://www.freesoft.org/CIE/RFC/1832/8.htm

4. >> but you failed to write the function to the appropriate declaration of
BOOL Solution(unsigned hyper solution_to_check);

When did you ever say that that was the appropriate declaration?
Code:
```BOOL Solution(unsigned hyper solution_to_check)
{
int i, j, Queens[8];
for (i = 0; i < 8; i++)
{
Queens[i] = ((solution_to_check >> (i * 3)) & 7) + (i * 8);
}
for (i = 0; i < 8; i++)
{
for (j = 0; j < i; j++)
{
// Same row
if ((Queens[i] / 8) == (Queens[j] / 8))
return false;

// Same column
if (((Queens[i] - Queens[j]) &#37; 8) == 0)
return false;

// Diagonally
if (abs((Queens[i] / 8) - (Queens[j] / 8)) == abs((Queens[i] % 8) - (Queens[j] % 8)))
return false;
}

for (j = i + 1; j < 8; j++)
{
// Same row
if ((Queens[i] / 8) == (Queens[j] / 8))
return false;

// Same column
if (((Queens[i] - Queens[j]) % 8) == 0)
return false;

// Diagonally
if (abs((Queens[i] / 8) - (Queens[j] / 8)) == abs((Queens[i] % 8) - (Queens[j] % 8)))
return false;
}
}
return true;
}```
Brute force (which is still boring):
Code:
```for (unsigned long x = 0; x < 16777216; x++)
{
if (Solution(x))
{
for (i = 0; i < 8; i++)
printf("(%d,%d) ", i + 1, ((x >> (3 * i)) & 7) + 1);
printf("\n");
SolutionCount++;
}
}```

5. >> but you failed to write the function to the appropriate declaration of
BOOL Solution(unsigned hyper solution_to_check);

When did you ever say that that was the appropriate declaration?
Umm, it's your contest, you should be able to choose the appropriate declaration.

Besides, BOOL and unsigned hyper are probably very unportable . . .

6. If you want to see 8 queens, why not just go see a Sigfried & Roy show 4 times tee-hee

```x = 0;