title: Why does the vector.size() function give me an error?
body: <p>When I try to use vector.size() , it gives me the following errors:</p>
  
  <pre><code>In function 'int main()':
  [Error] expected unqualified-id before '(' token
  [Error] expected primary-expression before ')' token
  [Error] lambda-expression in unevaluated context
  [Error] expected identifier before numeric constant
  In lambda function:
  [Error] expected '{' before ')' token
  </code></pre>
  
  <p>The rest of the vector functions work. I've used this function before and It worked, now I can't use it.</p>
  
  <p>here's the code:</p>
  
  <pre><code>while(1)
  {
      vector&lt;string&gt; frase;
      string stringa;
      getline(cin,stringa);
      {
             string temp;
             temp.clear();
             for(int i=0;i&lt;stringa.length();i++)
             {
                  if(stringa[i]!=' ')temp+=stringa[i];
                  else
                  {
                      frase.push_back(temp);
                      temp.clear();
                   }
             }
             frase.push_back(temp);
      }
  
  
      analizza(frase.data(), /*ERROR HERE*/ frase.size() /*ERROR HERE*/);
  
             frase.clear();
  
  
      for(int i=0;i&lt;frase.size();i++)frase.pop_back();
  }
  </code></pre>
  
  <p>what can I do?</p>