title: invalid types 'int[int]' for array subscript using vector
body: <pre><code>#include &lt;cmath&gt;
  #include &lt;cstdio&gt;
  #include &lt;vector&gt;
  #include &lt;iostream&gt;
  #include &lt;algorithm&gt;
  using namespace std;
  int main() {
      int t;
      cin &gt;&gt; t;
      char g;
      vector&lt;int&gt; b(t);
      vector&lt;int&gt; c(t);
      for(int a=0; a&lt;t ; a++)
          {
          cin&gt;&gt;b[a]&gt;&gt;g&gt;&gt;c[t];
          //this g was not required as a space as input is to be given
      }
      for(int a=0; a&lt;t ; a++)
          {
          float z,x;
          int q,w,c,v,ans=0;
          z=sqrt(b[a]); 
          x=sqrt(c[a]);
          //here the line above error is coming`enter code here`
          c=ceil(z);
          v=ceil(x);
          q=z;
          w=x;
          if((c==v)&amp;&amp;(v!=w))
              {
              ans=0;
          }
          else if((c==v)&amp;&amp;(v==w))
              {
              ans=1;
          }
          else
              {
              while(c&lt;=v)
                  {
                  ans++;
                  c++;
              }
          }
          cout&lt;&lt;ans&lt;&lt;endl;
     }
      return 0;
  }`
  </code></pre>
  
  <p>I know this error but i dot understand why it is coming in this code...
      please help...</p>
  
  <p>I am not declaring 1 dimensional array and using like a 2 dimensional array so that i m getting this error...please help
  the error I m getting is</p>
  
  <pre><code>invalid types 'int[int]' for array subscript
  </code></pre>