Prateek sir and coding problem

https://ide.codingblocks.com/s/67919

it’s running but showing run error during submission of code…

@sachinsh99 hey sachin there is no need to take vector you can also implement only with stack only there is only small modification i have corrected your code you can refer this.