C++ Ticket Office problem solved but not marked as done
So I wrote a very basic and ugly noob program to solve this problem. The issue is it doesn't seem like giving me credit for. The program completed the first 2, and the 3rd and 4th hidden Test Cases. I wonder why isn't marked as done?! as you can see here: https://i.postimg.cc/Dn46T8X7/Desktop-15-01-2021-00-48-30-380.png The Problem if someone interested in in the Data Types, Arrays, Pointer's section: Ticket Office You are working on a ticketing system. A ticket costs $10. The office is running a discount campaign: each group of 5 people is getting a discount, which is determined by the age of the youngest person in the group. You need to create a program that takes the ages of all 5 people as input and outputs the total price of the tickets. Sample Input: 55 28 15 38 63 Sample Output: 42.5 The youngest age is 15, so the group gets a 15% discount from the total price, which is $50 - 15% = $42.5 The given code is declaring an array of 5 elements and taking them from input using a loop. ------------------------------------------------------------------------------------------------------- #include <iostream> using namespace std; int main() { int ages[5]; for (int i = 0; i < 5; ++i) { cin >> ages[i]; } //your code goes here return 0; } -------------------------------------------------------------------------------------------------------- Input is given. Test case 1 : Test case 2: Rest is hidden as you can see on the link. 11 69 18 48 19 33 22 25 49 29