Mistake in Code

Hi, Can you please highlight the mistake I am making in the code.

Link: https://ide.codingblocks.com/s/311967

Please specify some test case where it is failing.
Thanks

@akshay.1390,
Input has square brackets as well as commas, take care of that as well.

Input is working correctly,I have verified by printing the vector.

@akshay.1390,
True/False