Broken calculator from arrays challenges

I’m getting run-time error for last test case and could not find error in my code. Please help!

@mohammadabdullahjawwad hey jawwad if you’re using #define Max 500 then declare it to 1000 if not then share your code through cb.lk/ide.

Test case 0 showing run time error

https://ide.codingblocks.com/s/190375 updated code

Hey you need to increase the size of array, make it atleast 10000 to be safe, 100! alone has 160-170 digits 500! will have much more digits.