Unable to pass all test cases


it is code , pls check and comment the error in it , i have comment my every step to make it simple to understand .

watch this to understand

wherever we define int as long long int there we have to declare int in int main as int32_t main.

what to watch ??? no link

https://www.youtube.com/watch?v=p5Cm_r4T1Rw

pls correct my code and comment out error

pls check my code and tell me the errror

pls give me test case 2 so that i can myself check the error , as i have understood now you will not be debugging my code

sorry test case 1 , pls send test case 1

for cases like
5
1 1 1 1 1
answer should be 1 not 10
debug for this

but i have compiled and check it is giving 1 only not 10 pls send me the test case which is failing so thta i could check whats the error

i have check all test cases and my code is giving right output acc to every test case then why i was not getting full marks before i unlocked test case

pls check my code i want to know error in my code