The task is completed but the compiler is not accepting it. Could you help me with finding the error in my code?