Getting "Statement missing ; in function main()" even though I have the semicolon already in C++
<p>Here's the code assignment.</p>

<pre><code>A bank charges $10 per month plus the following check fees for a commercial checking account:

$0.10 each for fewer than 20 checks
$0.08 each for 20-39 checks
$0.06 each for 40-59 checks
$0.04 each for 60 or more checks
The bank also charges an extra $15.00 if the balance of the account falls below $400 (before any check fees are applied). Write a program named lab2 that inputs for the beginning balance and the number of check written from the transaction file. Compute and display the bank's service fees for the month.

Input Validation: Do not accept a negative value for the number of checks written. If a negative value is given for the beginning balance, display an urgent message indicating the account is overdrawn. 
The program should have a loop execution of six times for reading data from a file named  transaction.txt.
Click the link transaction.txt download the file and store it in  folder c:\cis180\lab2. The file transaction.txt contains the beginning balance and number of checks written for six transactions. 
Here is the content of the file.
</code></pre>

<p>The text file</p>

<pre><code>-100.00 -beginningbalance
30  - number of checks
400.00
-20
300.00
36
300.00
47
350.00
5
300.00
70
</code></pre>

<p>My code</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;fstream&gt;
#include &lt;string&gt;
#include &lt;stdlib.h&gt;
#include &lt;sstream&gt;
//include a library file to input data from file
using namespace std;
bool isNumeric(string pszInput);
int main()
{//start

// Constants

int numChecks; // Number of checks written for the month
double acctBalance; // Account balance before subtracting check fees
double checkFee; // Fee based on number of checks written
double totalFees; // Total monthly bank fees

ifstream inputFile;
//Open the file
inputFile.open("c:\\cis180\\transaction.txt"); 
//Initialize month counter
int transaction = 0; //first month

//Create a loop to execute 6 times. Each time the loop body reads the beginning balance and number of checks for six transaction, calculate the bank fees, display the beginning balance, number of checks, and the bank fees.
inputFile &gt;&gt; acctBalance;

// Display the beginning balance 
   if (acctBalance&gt;0)
   {
   cout&lt;&lt;"Your beginning balance is: "acctBalance &lt;&lt; endl; 
   }
   else (acctBalance&lt;0)
   {
   cout&lt;&lt;"Your account is overdrawn!" &lt;&lt; endl; 
   } 

// Display the number of checks that were written.
   if (numChecks&gt;0)
   {
   cout&lt;&lt;"The number of checks written were: "numChecks&lt;&lt;endl;
   }
   else (numChecks&lt;0)
   {
   cout&lt;&lt;"Number of checks must be 0 or more."&lt;&lt;endl; 
   }


// Determine whether the account is overdrawn.

// Validate number of checks written.

// If the number of checks is less than 0

{ // numChecks is valid, so we can calulate the fees.
// Calculate checkFee - Use if/else if structure
const double MONTHLY_FEE= 10.00; // Base monthly fee
const double MIN_BAL= 400.00; // minimum balance
const double LOW_BAL_FEE= 15.00; // extra fee for low balance
for (int transaction = 0; transaction &lt;=6; transaction++);


   if (numChecks&lt;20)
   {
   checkFee=(0.1*numChecks)+MONTHLY_FEE&lt;&lt;endl;
   }
   else if (numChecks&lt;40 )
   {
   checkFee=( 0.08*numChecks)+MONTHLY_FEE&lt;&lt;endl;
   }
   else if (numChecks&lt;60 )
   {
   checkFee=( 0.06*numChecks)+MONTHLY_FEE&lt;&lt;endl;
   }
   else (numChecks&gt;60 )
   {
   checkFee=( 0.04*numChecks)+MONTHLY_FEE&lt;&lt;endl;
   }



// Calculate totalFees
   if (numChecks&lt;20 &amp;&amp; acctBalance&lt;MIN_BAL)
   {
   totalFees=checkFee+LOW_BAL_FEE&lt;&lt;endl;
   }
   else if (numChecks&lt;40 &amp;&amp; acctBalance&lt;MIN_BAL)
   {
   totalFees=checkFee+LOW_BAL_FEE&lt;&lt;endl;
   }
   else if (numChecks&lt;60 &amp;&amp; acctBalance&lt;MIN_BAL)
   {
   totalFees=checkFee+LOW_BAL_FEE&lt;&lt;endl;
   }
   else if (numChecks&gt;60 &amp;&amp; acctBalance&lt;MIN_BAL)
   {
   totalFees=checkFee+LOW_BAL_FEE&lt;&lt;endl;
   }
   else (numChecks&lt;20 &amp;&amp; acctBalance&gt;MIN_BAL)
   { 
   totalFees=checkFee
   }


// Display results: The bank fee

cout&lt;&lt;"The bank fee this month is "&lt;&lt;totalFees&lt;&lt;endl;

}//end  the  loop


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

<p>And the errors I'm getting when I try to compile.</p>

<pre><code>Error E2379 lab3.cpp 33: Statement missing ; in function main()
Error E2379 lab3.cpp 36: Statement missing ; in function main()
Warning W8004 lab3.cpp 115: 'transaction' is assigned a value that is never used in function main()
</code></pre>

<p>So basically my only problem is already in the title. Can anyone help out? Also I'm new to the C++ language so please be gentle. And if there's any other problems can you point it out to me? Thanks in advance.</p>