title: Something wrong with assigning the value of the equation to a variable
body: <p>The assignment of the value of the equation to the variable (second line inside the loop) is always less by 1 -on the first iteration only- although the equation (first line inside the loop) on its own calculates fine.</p>
  <p>I am using MinGW compiler, codeLite software on a Windows machine.</p>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cmath&gt;
  #include &lt;vector&gt;
  
  int main(){
      std::vector&lt;int&gt; elements_of_num {5, 0, 3};
      size_t power = 2;
      int n {0};
      for(int el: elements_of_num){
          std::cout &lt;&lt; n + el * pow(10, power) &lt;&lt; std::endl;
          n = n + el * pow(10, power);
          std::cout &lt;&lt; n &lt;&lt; std::endl;
          power--;
      }
      std::cin &gt;&gt; n;
      return 0;
  }
  </code></pre>
  <blockquote>
  <p>Expected result: {500, 500} {499, 499} {503, 503}</p>
  <p>Actual result: {500, 499} {499, 499} {502, 502}</p>
  </blockquote>