title: c++ error declaring vector in header file
body: <p>can't find an answer to this anywhere. haven't used c++ for long. in this file, 512, 256, 4736, and 448 all red-underlined as error 'expecting type specifier'    </p>
  
  <pre><code>// AttackSqrs.h
  #include &lt;valarray&gt; 
  #include &lt;vector&gt;
  #include &lt;unordered_map&gt; 
  #include &lt;string&gt; 
  #include &lt;iostream&gt;
  
  class AttackSqrs
  {
  public:
      AttackSqrs();
      ~AttackSqrs();
  
  private:
      void init();
      std::valarray&lt;int&gt; board(512);
      std::valarray&lt;int&gt; vrChessPieces(256);
      std::valarray&lt;int&gt; vrAttackSqrs(4736);
      std::valarray&lt;int&gt; vrNumAttackSqrsEachSqr(448);
  };
  </code></pre>
  
  <p>but when i create this header file:</p>
  
  <pre><code>// diag.h
  #include &lt;valarray&gt; 
  #include &lt;vector&gt;
  #include &lt;unordered_map&gt; 
  #include &lt;string&gt; 
  #include &lt;iostream&gt;
  
  
      void init();
      std::valarray&lt;int&gt; board(512);
      std::valarray&lt;int&gt; vrChessPieces(256);
      std::valarray&lt;int&gt; vrAttackSqrs(4736);
      std::valarray&lt;int&gt; vrNumAttackSqrsEachSqr(448);
  </code></pre>
  
  <p>the errors go away. thanks in advance for any help.</p>