ATM: showing wrong answer

using namespace std;
int main()
int n;
double total;
cout<<“Enter the amount to withdraw”<<endl;
cout<<“Your account balance”<<endl;
if( (n 5) != 0) { cout<< n <<endl; cout<< total; } else if(((n 5) != 0)||(n>total))
total = total - (n + 0.50);
cout<< total;
return 0;

Please, read FAQ -

If your program starts by printing ‘Enter the number’ and the problem does not tell you to do so, then since this is not part of the correct output, you will be never be judged correct regardless of what the rest of your program does.