title: Reversing elements of a vector between two indexes
body: <p>I wanted to reverse the elements between two specific positions of a vector.Here is my code:</p>
  
  <pre><code>std::vector&lt;int&gt; shuffleState(std::vector&lt;int&gt; deck, int numberOfRiffleShuffles) {
  if (numberOfRiffleShuffles%2 !=0)
  std::reverse(deck.begin()+1, deck.end()-1);
  return deck;
  }
  </code></pre>
  
  <p>The compiler says:</p>
  
  <pre><code>undefined reference to `WinMain@16'
  collect2.exe: error: ld returned 1 exit status
  </code></pre>
  
  <p>Can you tell me what is wrong with the code and what i can do to fix this "issue".</p>