title: Creating vector of sets as a class member gives error in c++
body: <p>I want to create 9 sets and put them in vector.The following code error outs </p>
  
  <pre><code>class X{
     vector&lt;set&lt;int&gt; &gt; rowset(9,set&lt;int&gt;());
  };
  Line 2: expected identifier before numeric constant
  </code></pre>
  
  <p>Following works ok. But i want to insert empty sets in vector so that i don't have to do a push_back. Please suggest why the above code is erroring out.</p>
  
  <pre><code>class X{
     vector&lt;set&lt;int&gt; &gt; rowset;
  };
  </code></pre>