Returning Errors

Hello everyone I am new to writing code and when I try to compile my code I keep getting back multiple errors. I'm not sure how to even distinguish what its telling me to fix. So I hoped maybe if I put the small code I made on here you could tell me why its getting so many errors. Thanks!



#include<iostream>
#include<cstdlib>

using namespace std;

//********************************************************************
//*This program will calculate the total rental charge for a customer*
//********************************************************************

void main()
{
//Declare variables in program

double Daysrented
int Integer Perdayrate, Begodometer, Finalodometer, Totalmiles, Daysrented, Totalrentcharge

cout << "ETOWN CAR RENTAL PLACE ";
cout << "/n/n Per day rate ";
cin >> Perdayrate;
cout << "/nNumber of days used ";
cin >> Daysrented;


cout << "/n/nBeginning odometer reading ";
cin >> Begodometer ;
cout << "/nFinal odometer reading ";
cin >> Finalodometer;
Totalmiles= Begodometer-Finalodometer;
cout << "/nTotal milage ", Totalmiles;

Totalrentcharge= Perdayrate* Daysrented+0.21*Totalmiles;
cout << "/n/nTotal Rental Charge " ,Totalrentcharge;

system("PAUSE");
return;
}
When you can't understand the compiler output try to search it on google. You will often find help. Moreover, if you post it here maybe someone can help you understand what it means.

Two errors I see are the missing semicolons at the end of the variable definition lines, and the comma when trying to concatenate data for cout

cout << "/nTotal milage ", Totalmiles;

Should be

cout << "/nTotal milage " << Totalmiles;
Ok, thank you maeriden for the tips and the help!
Topic archived. No new replies allowed.