title: Why am I getting this error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’
body: <p>I am the definition of a beginner. I am working with C++ in my school's Linux server. I have been working at this program for a few hours and I can't figure out what I'm doing wrong. I've reassigned variables and restated my formulas but nothing works. Please help. </p>
  
  <pre><code>#include&lt;iostream&gt;
  #include&lt;string&gt;
  using namespace std;
  
  const int f=5;
  
  int main ()
  {
          int a,b,c,d,e,sum,avg;
          cout &lt;&lt; "Please enter five numbers. " &lt;&lt; endl;
          cin &gt;&gt; a &gt;&gt; b &gt;&gt; c &gt;&gt; d &gt;&gt; e;
          sum= a+b+c+d+e;
          cout &lt;&lt; "The average of those numbers is: " &lt;&lt; endl;
          cout &lt;&lt; avg =(sum / f) &lt;&lt; endl ;
  return 0;
  }
  </code></pre>
  
  <p>The error states: invalid operands of types ‘int’ and ‘’ to binary ‘operator&lt;&lt;’</p>