title: Error: expected type-specifier before
body: <p>The following block of code generated the errors</p>
  
  <pre><code>rating* TrustManager::initNewRating(double alpha, double beta, double fading)
  {
     rating* rating = new rating(1.0, 1.0);
     rating-&gt;updateRating(alpha, beta, fading, 1);
     return rating;
  }
  </code></pre>
  
  <p>the errors are </p>
  
  <pre><code>error: expected type-specifier before ‘rating’
  error: cannot convert ‘int*’ to ‘rating*’ in initialization
  error: expected ‘,’ or ‘;’ before ‘rating’
  </code></pre>