title: IntelliSense: no operator >> matches these operands
body: <p>I am trying to figure out why I keep getting the compiler error </p>
  
  <p><strong>IntelliSense: no operator ">>" matches these operands</strong></p>
  
  <p>with the code below. Would appreciate any help given. Thanks </p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;string&gt;
  #include &lt;iostream&gt;
  using namespace std;
  
   int main(void)
   {
        int n;//number of resources we will  be dealing with 
        cout &lt;&lt;"What is number of resources to be shared?"&lt;&lt;
        cin &gt;&gt; n;
        return 0;
   }
  </code></pre>