Update spare.cpp

I think you can use one variable instead many