title: vector was not declared in this scope
body: <p>I am trying to solve this problem, but I receive this </p>
  
  <blockquote>
    <p>error : 'vector' was not declared in this scope.</p>
  </blockquote>
  
  <p>Here is the <code>struct</code> definition that's included in a header file, and the code.</p>
  
  <pre><code>struct Vector
  {
      unsigned int length;
      int values[MAX_ARRAY_LENGTH];
  };
  
  
  Vector getSquares(double a, double b, double c)
  {
  vector.length=0;
  float minim=min(a, b, c);
  float maxim=max(a, b, c);
  int i;
  for(i=sqrt(minim); i&lt;=maxim; i++)
     {
      if((i*i&lt;=maxim)&amp;&amp;(i*i&gt;=minim))
      vector.values[vector.length]=i;
      vector.length++;
     }
     return vector;
  }
  </code></pre>