title: expected unqualified-id before int
body: <p>I got this error "expected unqualified-id before int" in c++ when I was trying to compile it.</p>
  
  <pre><code>void yearlyWithdrawal(int startingAge, int numOfYears), int yearlyAmount, double interestRate)
  {
      int age = startingAge;
      int lastAge = startingAge + numOfYears;
      double cash = yearlyAmount;
      cout &lt;&lt; "Age | Yearly Plan" &lt;&lt; endl;
      cout &lt;&lt; "----+----------------" &lt;&lt; endl;
      while (age &lt;= lastAge)
      {
          cout.width(3);
          cout &lt;&lt; age &lt;&lt; " | ";
          cout.width(15);
          cout.precision(2);
          cout.setf(ios::fixed);
          cout &lt;&lt; cash &lt;&lt; endl;
          if (age != lastAge)
              cash = cash + cash*interestRate / 100.0;
          age++;
      }
      system("pause");
  }
  </code></pre>
  
  <p>I tried to find what went wrong but couldn't. </p>