Test case fails but code seems right

can you please look at my code. I think it is generating the right answer but the test case gets failed. link to code: https://ide.codingblocks.com/s/86023

Hi Vikramjit ,
You are using a long long int to store your answer . Long long int variable can only store a 18-20 digit answer at max. Each array element in the question can go upto 10^5 ( 5 digits) .
Consider a case where there are 5 or 6 such numbers . You biggest number becomes a 25 digit number. Long long int or any other number data type won’t be able to store that. It would simply overflow and give the wrong answer.
Try using a string to store your answer as while a 25 digit number is difficult to store , a 25 character string on the other hand can be easily handled.

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.