Why this doesn't work?
https://code.sololearn.com/cPIVyM65YiDx/?ref=app I'm trying to do the "taquilla" exercise from C++, but my code doesn't work, and I don't know why. Can anyone help me? You are working on a ticket system. A ticket costs 10 dollars. The office is running a discount campaign: each group of 5 people receives a discount, which is determined based on the age of the youngest person in the group. You need to create a schedule that takes the ages of all 5 people as input and outputs the total price of the tickets. Input example: 55 28 fifteen 38 63 Output example: 42.5 The youngest age is 15, so the group gets a 15% discount off the total price, which is $50 - 15% = $42.5 These are one of the inputs and outputs of one of the examples (some of these examples have good answers in my code, but others not) input: 11 18 19 22 49 my output: 48 the right output: 44.5