title: what will vector.size()-1 will return when vector is empty?
body: <p>when a empty vector is created and the following operation is done i am getting wrong answer.</p>
  <blockquote>
  <p>vector.size() - <code>enter code here</code>1 on empty vector its returns 4294967295 but the answer is -1</p>
  </blockquote>
  <pre><code>#include&lt;bits/stdc++.h&gt;
  using namespace std;
  int main(){
    vector&lt;int&gt; v;
    cout&lt;&lt;v.size()&lt;&lt;&quot;\n&quot;;
    cout&lt;&lt;v.size() -1 &lt;&lt;&quot;\n&quot;;
   
  }
  </code></pre>
  <p>the expected output should be</p>
  <p>0</p>
  <p>-1</p>
  <p>but what i am getting was</p>
  <p>0</p>
  <p>4294967295</p>
  <p>i don't know what is going wrong, can anyone tell whats wrong and pls correct it</p>