Why is codechef showing wrong answer for my program (SPAMCLAS)

I don’t understand why codechef is not accepting my program.
I have tested my program and it gives the correct output.
PROBLEM CODE: SPAMCLAS
LANGUAGE: C++

Here’s the link to my answer:https://www.codechef.com/viewsolution/18977095