title: error: no match for 'operator>>' (operand types are 'std::basic_istream<char> cin>> salary >> endl; ^
body: <p>I have following code:</p>
  
  <pre><code>#include &lt;QCoreApplication&gt;
  #include &lt;iostream&gt;
  using namespace std;
  
  int main(int argc, char *argv[])
  {
      int salary;
      int childeren;
      cout &lt;&lt; "please type base salary=";
      cin&gt;&gt; salary &gt;&gt; endl;
      cout&lt;&lt; "plz type count your childeren=";
      cin &gt;&gt; childeren &gt;&gt; endl ;
      int Totalsalary=salary + childeren*10;
      cout&lt;&lt; Totalsalary&lt;&lt; endl;
      return 0;
  }
  </code></pre>
  
  <p>I'm trying to understand creating error:</p>
  
  <blockquote>
    <p>no match for 'operator>>' (operand types are 'std::basic_istream::__istream_type {aka std::basic_istream}' and '')
       cin>> salary >> endl;
                    ^</p>
  </blockquote>