Finish zerosum.cpp