New to C++.. What am I messing up?
<pre><code>#include &lt;iostream&gt;  // allows program to perform input and output
using namespace std;

int main()
{
     int number1;  // first integer read from user
     int number2;  // second integer read from user
     int number3;  // third integer read from user
     int smallest;  // smallest integer read from user
     int largest;  // largest integer read from user
     int sum;  // sum of all three numbers
     int average;  // average of all three numbers
     int product;  // product of all three numbers

     cout &lt;&lt; "Input three different integers: "; // prompt
     cin &gt;&gt; number1 &gt;&gt; number2 &gt;&gt; number3;

     largest = number1;  // assume first integer is largest

     if ( largest &gt; number2 )
         cout &lt;&lt; number1 &lt;&lt; " &gt; " &lt;&lt; largest endl;

     if ( number3 &gt; largest )
         cout &lt;&lt; number3 &lt;&lt; " &gt; " &lt;&lt; largest endl;

     smallest = number1;  // assume first integer is smallest

     if ( number2 &lt; smallest )
         cout &lt;&lt; number2 &lt;&lt; " &lt; " &lt;&lt; smallest endl;


     if ( number3 &lt; smallest )
         cout &lt;&lt; number3 &lt;&lt; " &lt; " &lt;&lt; smallest endl;

     sum = number1 + number2 + number3; 

     average = (number1 + number2 + number 3) / 3; 

     product = number1 * number2 * number3; 

     cout &lt;&lt; "Sum is:" &lt;&lt; sum &lt;&lt; endl; 

     cout &lt;&lt; "Average is: " &lt;&lt; average &lt;&lt; endl; 

     cout &lt;&lt; "Product is:" &lt;&lt; product &lt;&lt; endl; 

     if ( number1 &lt; number2  &amp;&amp; number1 &lt; number3 )
         cout &lt;&lt; "The smallest number is:" &lt;&lt; number1 &lt;&lt; endl;

     return 0;
}
</code></pre>

<p>I am trying to learn c++. I have fiddled around in Python for a while now and was really interested in c++. I thought my code was going to work, I have my variables defined, my syntax looked right, but obviously it didn't work. I really want to know what I did wrong and how to fix it... but I do not know where to start, nor do I know why it is not working.</p>

<pre><code>prog.cpp: In function ‘int main()’:
prog.cpp:21:46: error: expected ‘;’ before ‘endl’
prog.cpp:24:46: error: expected ‘;’ before ‘endl’
prog.cpp:29:47: error: expected ‘;’ before ‘endl’
prog.cpp:33:47: error: expected ‘;’ before ‘endl’
prog.cpp:37:37: error: ‘number’ was not declared in this scope
prog.cpp:37:44: error: expected ‘)’ before numeric constant
</code></pre>
