Error in code

The code is working fine on my system. Can you please what is the error in it? The code is of CAO stage-1 of September Challenge 2013

This is a live contest. please ask after contest is over

//