Greedy 11 Kingdom Defense

spoj is not accepting this code and giving wrong answer

here code:-https://ide.codingblocks.com/s/393047

here problem statement:-https://www.spoj.com/problems/DEFKIN/

hello @rupesh-4819

handle n==0 case .

OK I also handle the case of n==0 in which i have to just print w*h and continue but it still not accepting
here updated code

hello aman212yadav answer this

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.