What is wrong here ? only the test case 3 failed and i dont know why ?
#include <iostream> using namespace std; int main() { int s[5]; for (int i = 0; i < 5; ++i) { cin >> s[i]; } int a=s[0]; int b=s[1]; int c=s[2]; int d=s[3]; int e=s[4]; if ((a<b)&&(a<c)&&(a<d)&&(a<e)){ float w=a; float p=(w/100)*50; float y=50-p; cout<<y<<endl; } if ((d<b)&&(d<c)&&(d<a)&&(d<e)){ float w=d; float p=(w/100)*50; float y=50-p; cout<<y<<endl; } if ((e<b)&&(e<c)&&(e<d)&&(e<a)){ float w=e; float p=(w/100)*50; float y=50-p; cout<<y<<endl; } if ((b<a)&&(b<c)&&(b<d)&&(b<e)){ float w=b; float p=(w/100)*50; float y=50-p; cout<<y<<endl; } if ((c<b)&&(c<a)&&(c<d)&&(c<e)){ float w=c; float p=(w/100)*50; float y=50-p; cout<<y<<endl; } return 0; }