I keep getting the fatal entry point must be defined error please help

I have done several programs already I don't know why this one is giving me that stupid error. Some please help I have to turn this in 2 hours.

#include <iostream>
#include <string>
#include <cmath>
#include <iomanip>
using namespace std;

int maint()
{
string a = "Mercury";
string b = "Venus";
string c = "Earth";
string d = "Mars";
string e = "Jupiter";
string f = "Saturn";
string g = "Uranus";
string h = "Neptune";
string q = "quit";
int selection;
int weight;
int speed;
double surfaceOnNewPlanet;
double distanceFromSun;

cout << "Welcome to the INTERPLANETARY TRAVEL PROGRAM! \n" << endl;
cout << "This program enables you to find out your travel time to the planet" << endl;
cout << "you want to travel to as well as your weight on that planet." << endl;
cout << "Please enjoy the program and find the perfect planet for you! \n" << endl;
cout << "\n" << endl;
cout << "Interplanetarty Travel Menu" << endl;
cout << "---------------------------\n" << endl;
cout << " a) Mercury";
cout << " b) Venus";
cout << " c) Earth";
cout << " d) Mars";
cout << " e) Jupiter";
cout << " f) Saturn";
cout << " g) Uranus";
cout << " h) Neptune";
cout << " q) quit \n";
cout << "Select a planet to travel to or q to quit the program:";
cin >> selection;
if (selection >= 'a' || selection >= 'A' && selection <= 'h' || selection <= 'H')
{
cout << "Please enter your weight (in lbs) : ";
cin >> weight;
cout << "Please enter the speed (in miles per hour) that you would like to travel at:";
cin >> speed;
cout << "INTERPLANETARY TRAVEL:" << "Earth to" << selection;
cout << "----------------------------------------------\n";
}
else if (selection == 'a' || selection == 'A')
{
surfaceOnNewPlanet = 0.27;
double weightOnNewPlanet = weight * surfaceOnNewPlanet;
cout << "Your weight on" << selection << ":" << weightOnNewPlanet;
cout << "Your travel time to " << selection << ":";
distanceFromSun = 36;
double total = (93 - distanceFromSun) / speed;
cout << "In hours:" << total;
cout << "In days" << total / 24;
cout << "In years" << total / 365;
}
else if (selection == 'b' || selection == 'B')
{
surfaceOnNewPlanet = 0.86;
double weightOnNewPlanet = weight * surfaceOnNewPlanet;
cout << "Your weight on" << selection << ":" << weightOnNewPlanet;
cout << "Your travel time to " << selection << ":";
distanceFromSun = 67;
double total = (93 - distanceFromSun) / speed;
cout << "In hours:" << total;
cout << "In days" << total / 24;
cout << "In years" << total / 365;
}
else if (selection == 'c' || selection == 'C')
{
surfaceOnNewPlanet = 1.00;
double weightOnNewPlanet = weight * surfaceOnNewPlanet;
cout << "Your weight on" << selection << ":" << weightOnNewPlanet;
cout << "Your travel time to " << selection << ":";
distanceFromSun = 93;
double total = distanceFromSun / speed;
cout << "In hours:" << total;
cout << "In days" << total / 24;
cout << "In years" << total / 365;
}
else if (selection == 'd' || selection == 'D')
{
surfaceOnNewPlanet = 0.37;
double weightOnNewPlanet = weight * surfaceOnNewPlanet;
cout << "Your weight on" << selection << ":" << weightOnNewPlanet;
cout << "Your travel time to " << selection << ":";
distanceFromSun = 141;
double total = (distanceFromSun - 93) / speed;
cout << "In hours:" << total;
cout << "In days" << total / 24;
cout << "In years" << total / 365;
}
else if (selection == 'e' || selection == 'E')
{
surfaceOnNewPlanet = 2.64;
double weightOnNewPlanet = weight * surfaceOnNewPlanet;
cout << "Your weight on" << selection << ":" << weightOnNewPlanet;
cout << "Your travel time to " << selection << ":";
distanceFromSun = 483;
double total = (distanceFromSun - 93) / speed;
cout << "In hours:" << total;
cout << "In days" << total / 24;
cout << "In years" << total / 365;
}
else if (selection == 'f' || selection == 'F')
{
surfaceOnNewPlanet = 1.17;
double weightOnNewPlanet = weight * surfaceOnNewPlanet;
cout << "Your weight on" << selection << ":" << weightOnNewPlanet;
cout << "Your travel time to " << selection << ":";
distanceFromSun = 886;
double total = (distanceFromSun - 93) / speed;
cout << "In hours:" << total;
cout << "In days" << total / 24;
cout << "In years" << total / 365;
}
else if (selection == 'g' || selection == 'G')
{
surfaceOnNewPlanet = 0.92;
double weightOnNewPlanet = weight * surfaceOnNewPlanet;
cout << "Your weight on" << selection << ":" << weightOnNewPlanet;
cout << "Your travel time to " << selection << ":";
distanceFromSun = 1782;
double total = (distanceFromSun - 93) / speed;
cout << "In hours:" << total;
cout << "In days" << total / 24;
cout << "In years" << total / 365;
}
else if (selection == 'h' || selection == 'H')
{
surfaceOnNewPlanet = 1.44;
double weightOnNewPlanet = weight * surfaceOnNewPlanet;
cout << "Your weight on" << selection << ":" << weightOnNewPlanet;
cout << "Your travel time to " << selection << ":";
distanceFromSun = 2.793;
double total = (distanceFromSun - 93) / speed;
cout << "In hours:" << total;
cout << "In days" << total / 24;
cout << "In years" << total / 365;
}
else if (selection == 'q' || selection == 'Q')
{
return 0;
}


system("PAUSE");
return 0;
}
You have "int maint()" instead of int main()
remind me to kill myself
Topic archived. No new replies allowed.