You have declared numtoys as an int, not an array - and you cannot index into an integer:
void elfRating (int numToys, string&rating)
{
int t = 0 ;
if (numToys [t] < 200)
{
But the solution is to pass the array index value to the function, not teh array:
void elfRating (int numToys, string&rating)
{
if (numToys < 200)
{
...
And to call that from your main code:
cout << setw(10) << "Number of Toys Produced:" << numToys[ii] ;
elfRating(numToys[ii], rating);
cout << setw(20) << "Rating:" << rating ;