Output limit exceed in compilation

Hi! What is the meaning of output limit exceeded. I googled it and it shows that it has something to do with the duplicate returns but I am not quite sure what it actually is.

here is my code where I got this error. https://www.onlinegdb.com/BkzHhbkJv
problem link: https://cses.fi/problemset/task/1634/

It will be very helpful if anyone can elaborate on this error.

Thanks in advance!!