Fastest solution incorrect


#1

instead of returning the vector it is printing the solution.

vector Solution::fizzBuzz(int A) {
vector v;
for(int i=1;i<=A;i++)
{
if(i%3==0&&i%5==0)
cout<<"FizzBuzz ";
else if(i%5==0)
cout<<"Buzz ";
else if(i%3==0)
cout<<"Fizz “;
else
cout<<i<<” ";
}
return v;
}