In function 'int main(int, char**)':
7:6: warning: unused variable 'e' [-Wunused-variable]
7:9: warning: unused variable 's' [-Wunused-variable]
7:12: warning: unused variable 'c' [-Wunused-variable]
7:15: warning: unused variable 'f' [-Wunused-variable]
72:27: warning: 'total_discount' is used uninitialized in this function [-Wuninitialized]
Line 71 (in your post): You're assigning a junk value to discount, because total_discount is uninitialized. Seems to me that you probably just want to delete your line 71.
Also, you have discount being a double, but total_discount being an int. Not sure if that's intentional.
Also:
1 2 3
else (discount <=10); {
discount = 0;
}
This not doing what you think it's doing. An else statement should not have a condition on it. It will always happen, as it's the last option.
I wasn't exhaustively listing all errors, but I was showing you the biggest ones I saw. Please stick to the other topic ( http://www.cplusplus.com/forum/beginner/231604/ ) if you have more questions, though.