Every diamond can be seen as referencing an if-else block. The parallelograms (except the first one) represent what the program should do at each point (or output in case of most of the parallelograms in this flowchart).
Please use code tags. You can get them from the <> button when making or editing a post.
Line 12: I think you mean return here. You can't use break outside of loops and switch statements.
Lines 16, 19, and 22:
The conditions on your if statements aren't quite right, and you probably wanted elseifs on lines 19 and 22. Please check the flowchart again.
Line 17, 20, and 23:
You never declare these variables, and I think you were supposed to cout what the attendee is (Kid, Teenager, Adult, or Elderly).
Line 24: You're missing a closing bracket and a return zero.
Your cout statement is wrong. The first part is ok but take << age out. You need to cin >> age;
1 2 3 4 5
if (age < 0)
{
cout << "Invalid age \n" << endl;
break;
}
You don't use break statements in if statements. You use them in loops.
1 2
if (age >=0 && age <= 18)
++Elderly;
This applies to the rest of your code: ++Elderly; is a counter function that you would use in a loop, not here. You need to cout Kid, Teenager, Adult, or Elderly depending on their age. That's what you would put under the if statement. Also you want the rest of yourifstatements to be ifelse.