Got Judge Error on Problem COLORS in C++

Describe your issue

I am solving Problem COLORS now, but it constantly returns me a Judge Error.

Here’s the problem link: COLORS Problem - CodeChef

My submission: CodeChef: Practical coding for everyone

Many Thanks!