That is because you're using a line terminator (someone tell me the real name of this character) there
;
in your code, that is why the compiler was not expecting the
{
token in the code and gave this error.
See in your code,
public static void InPutData(string[] names, int[] scores, ref int count);
{
Remove it, and it will be like this now,
public static void InPutData(string[] names, int[] scores, ref int count)
{
.. now it won't complain. :-)
Also, there was no error passing array after all and there won't be an error.