title: error: expression list treated as compound expression in initializer [-fpermissive] double payCalc(P, yir, y);
body: <pre><code> double  payCalc(double P,double  yir, double  y)
  
   {
      double  mir, a, b, c, d, e, f, Payment;
      mir = yir/1200;
      a = 1+mir;
      b = 1/a;`?`enter code here`
      c = 12*y;
      d = pow(b,c);
      e = 1-d;
      f = P*mir;":?
   return Payment;
    }
  
     int main ()
   {
      cout&lt;&lt;fixed&lt;&lt;setprecision(2); //setting 
      double P, yir, y;
      cin&gt;&gt;P&gt;&gt;yir&gt;&gt;y;
      double payCalc(P, yir, y);
      cout&lt;&lt;"Principal: "&lt;&lt;P&lt;&lt;" Interest Rate: "&lt;&lt;yir&lt;&lt;" Years: "&lt;&lt;y&lt;&lt;
      " Payment: "&lt;&lt;payCalc&lt;&lt;endl;
     }
  </code></pre>
  
  <p>calculating house payment and can't get out of the error above.
  The payCalc is calculating the payment while the int main() is to insert the varibales into payCalc</p>