title: Incrementing Dereferenced Iterator
body: <p>I'm doing c++ primer exercises (3.25), I'm trying to increment a dereferenced iterator. This is my idea:</p>
  
  <pre><code>vector &lt;int&gt; arcNotas(10,0);        //hold amount of grades by 10-20-30....90-100
  int notas = 0;
  auto it = arcNotas.begin();
  while (cin &gt;&gt; notas &amp;&amp; notas!= 1000) {
      it += notas / 10;                   //move the iterator to the right position
      *it++;                              //increment the quantity of elements in that position
      it = arcNotas.begin();              //reset to the initial position
  }
  </code></pre>
  
  <p>But when i compile it, the compiler says (after the first "notes" input) "<code>vector</code> iterator not incrementable". I'm dereferencing <code>it</code> specifically to do it... i just don't understand what is wrong. I searched but all I found was issues by incrementing <code>it</code>, not <code>*it</code>.</p>