In the test Tickets Ofice I did this code but test case 3 is hidden, so can you please tell wath's wrong with my code. Here :
#include <iostream> using namespace std; int main() { float ages[5]; for (int i = 0; i < 5; ++i) { cin >> ages[i]; }float yongest ; if (ages[0]<ages[1]){ if (ages [0]<ages[2]){ if (ages[0]<ages[3]){ if (ages[0]<ages[4]){ yongest= ages[0]; } } } } if (ages[1]<ages[0]){ if (ages [1]<ages[2]){ if (ages[1]<ages[3]){ if (ages[1]<ages[4]){ yongest= ages[1]; } } } } if (ages[2]<ages[1]){ if (ages [2]<ages[0]){ if (ages[2]<ages[3]){ if (ages[2]<ages[4]){ yongest= ages[2]; } } } }//I did the same thing with ages[3]and ages [4] float price; price =50.00-(50.00* yongest /100.00); cout<< price ; return 0; }