Runtime error in my code

https://ide.codingblocks.com/s/152699 getting runtime error

Hi @tanjuljain19,
https://ide.codingblocks.com/s/152739 I have corrected your code. It was an out of bounds error in StockSpanUsingStacks. int arr[]=new int[prices.length];

Stilting run time errorl get

Hi @tanjuljain19[,
But its working perfectly for all test cases for me. Did you submit this code https://ide.codingblocks.com/s/152739 ?

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.