title: fibonacci sequence using vector
body: <p>I have to code the following fibonacci but I want to do it with a vector to show my teacher that I'm getting away from all the lesson, but I have several warning like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>main.cpp: 18: warning: implicit conversion changes signedness:
      'int' to 'std::vector::size_type' (aka 'unsigned long long')
  
  main.cpp: 18: warning: implicit conversion changes signedness:
      'int' to 'std::vector::size_type' (aka 'unsigned long long')
  </code></pre>
  
  <p>and I do not understand why it does not work?</p>
  
  <pre class="lang-cpp prettyprint-override"><code>#include &lt;iostream&gt;
  #include &lt;vector&gt;
  
  using namespace std;
  
  int main()
  {
      int n;
      cin &gt;&gt; n;
  
      vector&lt;int&gt; table;
      table[0] = 0;
      table[1] = 1;
  
      if (n == 0) { cout &lt;&lt; n &lt;&lt; endl; }
      else if (n == 1) { cout &lt;&lt; n &lt;&lt; endl; }
      else {
          for (int i = 0; i &lt; n; i++) {
  
              table[i] = table[i - 1] + table[i - 2];
              cout &lt;&lt; table[i];
          }
      }
  }
  </code></pre>