Lines 32 and 33 hide the parameters because they have same names. You don't need to declare parameters again in the function body. Just the signature is enough.
You have declared two variables, first and last on line 30, being the parameters taken by the function. Then, on line 32 and 33, you have declared two more variables with the same name, which 'hide' the variables from line 30.
This means that changes to first and last from then will not be reflected in main. However, in your case you wouldn't notice, because you aren't using the results taken in the parameter list for the function anyway (I presume you will later, though).