Update cal.cpp

using branch file is updated.