What is wrong with my code

Modified Code

you have use wrong way to take input for vector

how else do we do it? can you please correct my mistake and send me the code?

i have already send you the code

click on Modified Code
it is a link

here i have corrected my previous mistake but still cannot pass all the test cases. https://ide.codingblocks.com/s/268264

help me understand where i went wrong in this code

only mistake is that you are printing unnecessary endl

why??

check the code i have send you