#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
//Constants for adult and child ticket costs
const double cost_per_child_ticket = 2.25;
const double cost_per_adult_ticket = 5.50;
//Variables
double adult, //Amount of adult tickets sold
child, //Amount of child tickets sold
movie, //Holds movie name
gross_adult_ticket, // Holds gross amount of adult tickets
gross_child_ticket, // Holds gross amount of child tickets
total_box_office_profit, //Holds total box office profit
net_box_office_profit, //Holds total earnings for theater
amount_paid_distributor; //Holds final amount paid to distributor
What error? It would be helpful if you posted the exact text of the error.
Did you include the <string> header?
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.