Not able to submit answer

link of my code

Hi @chirag.goel360

Runtime error is due to the size of the array which is declared as 10. You can define array A after taking input of n and writing int A[n]. Then your code should work just fine.

Hope it Helps.

still not submiting sir

facing same problem for rain water harvesting too

Hi @chirag.goel360

Is your doubt resolved now?