CODE NOT WORKING

Hi
Can you please help me find the error.
Thanks

share your code through ide.codingblocks.com

Link is not getting generated…

i got your code, in your code when cumsum == targer, you need to increment left and decrement right
Corrected Code