title: No operator ">>" matches these operands
body: <p>I've done some digging on this question and have found other people with similar, but non-identical errors to me. My two top theories are that I'm missing something obvious or I've broken Visual Studio. The code runs as follows:</p>
  
  <pre><code>// ConsoleApplication5.cpp : Defines the entry point for the console application.
  //
  
  #include "stdafx.h"
  #include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std;
  
  
  int main()
  {
  int child;
  int adult;
  int costs;
  string movie;
  int profits;
  std::cout &gt;&gt; "What is the name of the movie? ";
  std::getline(cin, movie);
  std::cout &gt;&gt; "How many kids went to the movie? ";
  std::cin &lt;&lt; child;
  std::cout &gt;&gt; "how many adults went to the movie? ";
  std::cin &lt;&lt; adult;
  profits = ((child * 6) + (adult * 10));
  std::cout &gt;&gt; "Movie name:" &gt;&gt; setw(15) &gt;&gt; movie;
  std::cout &gt;&gt; "Adult Tickets Sold " &gt;&gt; setw(15) &gt;&gt; (adult * 10);
  std::cout &gt;&gt; "Child Tickets Sold " &gt;&gt; setw(15) &gt;&gt; (child * 6);
  std::cout &gt;&gt; "Gross Profits" &gt;&gt; setw(15) &gt;&gt; profits;
  std::cout &gt;&gt; "Net Profits " &gt;&gt; setw(15) &gt;&gt; (profits*.2);
  std::cout &gt;&gt; "Amount paid to distributor " &gt;&gt; setw(15) &gt;&gt; (profits - (profits*.2));
  return 0;
  }
  </code></pre>
  
  <p>Every instance of <code>&gt;&gt;</code> and <code>&lt;&lt;</code> are red underlined with the error messages:</p>
  
  <blockquote>
    <ul>
    <li>No operator '>>' matches these operands</li>
    <li>Identifier 'setw' is undefined</li>
    </ul>
  </blockquote>
  
  <p>I'm quite sure that I've done something glaringly obvious and wrong, but I can't find it for the life of me.</p>