title: error C2678: binary '>>' : no operator found which takes a left-hand operand of type 'std::istream' (or there is no acceptable conversion)
body: <p>I found this compiling error very odd .
  error C2678: binary '>>' : no operator found which takes a left-hand operand of type 'std::istream' (or there is no acceptable conversion)
  I'm compiling under MVC++ Express 2010 here's the code :</p>
  
  <p>The error indicate that it's from line 8 .</p>
  
  <pre><code>1    int m;
  2    vector &lt;string&gt; grid;
  3
  4    cin &gt;&gt; m;
  5
  6    for(int i=0; i&lt;m; i++) {
  7       string s; 
  8   cin &gt;&gt; s;
  9        grid.push_back(s);
  10    }
  </code></pre>