Wrong implementation by code chef ide

I coded in codeblocks where it implements correctly but when i submit it gives an error

//