title: C++ compile time error: expected identifier before numeric constant
body: <p>I have read other similar posts but I just don't understand what I've done wrong. I think my declaration of the vectors is correct. I even tried to declare without size but even that isn't working.What is wrong??
   My code is:</p>
  
  <pre><code>#include &lt;vector&gt; 
  #include &lt;string&gt;
  #include &lt;sstream&gt;
  #include &lt;fstream&gt;
  #include &lt;cmath&gt;
  
  using namespace std;
  
  vector&lt;string&gt; v2(5, "null");
  vector&lt; vector&lt;string&gt; &gt; v2d2(20,v2);
  
  class Attribute //attribute and entropy calculation
  {
      vector&lt;string&gt; name(5); //error in these 2 lines
      vector&lt;int&gt; val(5,0);
      public:
      Attribute(){}
  
  int total,T,F;
  
  };  
  
  int main()
  {  
  Attribute attributes;
  return 0;
  }
  </code></pre>