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!!

I was having the same issue os a cses problem. Changing the lines
long long dp[1000001] = {INF}, x;
int n, coins[100];
bool checked[1000001] = {false};
to
long long dp[1000001] , x;
int n, coins[100];
bool checked[1000001] ;
and initilizing in the main manually would fix it.
My guess is that for the peice of code
int a[5] = {1};
this compiler breaks it down into
int a[5] = {1, 1, 1, 1,1} and because of larger size of array this causes the compiled output to exceed the set limit.

1 Like