I'm having severe problems with my code. We are asked to take in the Vehicle name, tank size, and MPG. We are give the distance between the cities and are supposed to output the # of tankfuls required to make the ship. The errors I am getting are:

variable or field 'doOutput' declared vod
'int doOutput' redeclared as different kind of symbol
previous declaration of 'void doOutput
declaration of 'int doOutput'
conflicts with previous declaration 'void doOutput'
Then it tells me that Vehicle, MPG, and fillups are not declared on line 90 (were the function is supposed to be opened)
What is wrong? It seems to revolve around the redelcaration that is happening of doOutput. But why is it doing this?





void menu();
void getinput();
void doCalculations(char Vehicle[3][20], double tank[3], double mpg[3]);
void doOutput(char Vehicle[3][20],double mpg[3], double fillups[3]);
void cls();

#include <cstdlib>
#include <iomanip>
#include <iostream>
using namespace std;



int main()
{
cout << "Welcome, please choose one of the following options" << '\n';
cout << '\n';
menu();
}
void menu()
{
int choice;
cout << "1. Enter the data!" << '\n';
cout << "2. Quit the Program!" << '\n';
cout << "Enter the choice you would like below: ";
cin >> choice;

switch (choice)
{
case 1:
getinput();
break;

case 2:
return;
break;

default:
cout << "DO IT AGAIN! I SAID PICK FROM THE CHOICES!!!" << '\n';
menu();
break;
}


}

void cls()
{
system("cls");
}

void getinput()
{
int counter;
char Vehicle[3][20];
double tank[3];
double mpg[3];

for (counter = 0; counter <3; counter++)
{
cout << "What is the Vehicle's Name: ";
cin >> Vehicle[counter];
cout << "What is the Vehicle's gas tank size: ";
cin >> tank[counter];
cout << "What is the Vehicle's Miles Per Gallon: ";
cin >> mpg[counter];
}
doCalculations(Vehicle,tank, mpg);
}
void doCalculations(char Vehicle[3][20], double tank[3], double mpg[3])
{
int counter;
double distance = 527.8;
double milespertank[3];
double fillups[3];

for (counter =0; counter <3; counter ++)
{
milespertank[counter] = (tank[counter]*mpg[counter]);
fillups[counter] = ((distance)/(milespertank)[counter]);
}
doOutput(Vehicle, fillups, mpg);
}

void doOutput(Vehicle[3][20],mpg[3], fillups[3])

{
char Vehicle[3][20];
double tank[3];
double mpg[3];
double distance = 527.8;
double milespertank[3];
double fillups[3];
int counter

cout << "The program calculates that: "
for (counter = 0; counter <3; counter++)
{
cout << "Vehicle Name: " << Vehicle[counter];
cout << "Vehicle MPG: " << mpg[counter];
cout << "# of Fillups: " << fillups[counter];
cout << '\n';
}
menu();
}