Unique prefix Array

In the code https://ide.codingblocks.com/s/220560 for the above question, why does a box appear after du (the 4 th output)? And also how can I put -1 instead of 1 if the condition is not met(for ex the first input) as the compiler shows error if I put -1 instead of array of 1’s.

@Codarikh
Which test case did you try which gave this output ?

@Codarikh
how can I put -1 instead of 1 if the condition is not met
Which line of code is this ?

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.