Why automatically printing input vector

Even after deleting the whole body of the function, when i run this program it outputs the input vector, why?

Click here to start solving coding interview questions