title: expected ';' at end of declaration /vector /c++
body: <p>When I try to initialize a <code>vector</code> of <code>int</code>s, I always get this error:</p>
  <blockquote>
  <p>expected ';' at end of declaration</p>
  </blockquote>
  <p>I used the original code from &quot;C++ Primer&quot;:</p>
  <pre><code>vector&lt;int&gt; v{1,2,3,4,5,6,7,8,9};
  </code></pre>
  <p>and</p>
  <pre><code>$ g++ -o test test.cpp
  </code></pre>
  <p>I think this is a silly question to ask, but I am sure that there is a <code>;</code>. I cannot manage to find an answer.</p>