Why i am failing in first 2 cases

CODE: https://ide.codingblocks.com/s/207598

I have edited your code… Try to submit it now…I have just changed the size of vector that you have taken…