I'm writing a program to count how many solution there is in the Eight Queens puzzle, I defined an array in the main function, and tried to use function to check them, but the array is not defined in the function. Is there a way that I can let the function to read the array in the main function?

Thanks,
Roger