title: no match for 'operator='(operand type are 'std::vector<int>' and 'int'
body: <p>I'm new to c++ and I'm learning about vector. I wrote a basic code to see how it works but i get the following errors.</p>
  
  <p>||=== Build file: "no target" in "no project" (compiler: unknown) ===|
  C:\Users\Sohit\Desktop\Comparator\vectors.cpp||In function 'int main()':|
  C:\Users\Sohit\Desktop\Comparator\vectors.cpp|7|error: 'void operator=(const int&amp;)' must be a nonstatic member function|
  C:\Users\Sohit\Desktop\Comparator\vectors.cpp|10|error: no match for 'operator=' (operand types are 'std::vector' and 'int')|</p>
  
  <p>no match for 'operator='(operand type are 'std::vector' and 'int' 
  please help </p>
  
  <pre><code>#include&lt;iostream&gt;
  #include&lt;vector&gt;
  using namespace std;
  int main()
  {
  vector&lt;int&gt; v[100];
  for(int i=0;i&lt;100;i++)
      v[i]=i+1;
  
      int Count=v.size();
      std::cout&lt;&lt;Count;
      bool is_nonempty=!v.empty();
  
      cout&lt;&lt;is_nonempty;
  
  
      vector&lt;int&gt;v2;
  for(int i=0;i&lt;100;i++)
      v2.push_back(i*i);
  
  int count2 = v2.size();
  cout&lt;&lt;count2;
  
  v.resize(200);
  
  for(int i=100;i&lt;200;i++)
      v[i]=i*i*i;
  
  v.resize(200);
  
  for(int i=100;i&lt;200;i++)
      v2.push_back(i*i*i);
  
  vector&lt;int&gt; v3=v2;
  
  v.clear();
  
  v(20,"unknown");
  
  int n,m;
  cin&gt;&gt;n&gt;&gt;m;
  vector&lt; vector&lt;int&gt; &gt; Matrix(n,vector&lt;int&gt;(m,-1));
  
  for(int i=0;i&lt;n;i++)
      for(int j=0;j&lt;m;j++)
      cout&lt;&lt;Matrix[i][j];
  
  return 0;
  </code></pre>
  
  <p>}</p>