title: Probably segmentation fault n>150 000 wtih vector
body: <pre><code>int main()
  {
      ios_base::sync_with_stdio(0);
  
      cin&gt;&gt;n;
      vector&lt;vector&lt;bool&gt; &gt; tab (n+1, vector&lt;bool&gt;(n+1));
      vector&lt;unsigned short int &gt;wifi (n+1);    
      int  z=0;
      x=1;
      do{    
          cin&gt;&gt;a&gt;&gt;b;
          tab[a][b]=1;
          tab[b][a]=1;
          x++;    
      }while(x!=n);
  }
  </code></pre>
  
  <p>Hi, I still have a problem, the program has stopped working results greater than 150 000 even though they changed it to vector. I present the code in a nutshell.</p>