Code is showing wrong answer

Hi can you tell me why my code shows wrong answer on submission ?

Clear the vector for every test case.