Main.cc: In function 'int calculateDaysDifference(int, int, int)':
Main.cc:30:34: error: 'swap' cannot be used as a function
swap(targetYear, baseYear);
^
Main.cc:31:36: error: 'swap' cannot be used as a function
swap(targetMonth, baseMonth);
^
Main.cc:32:32: error: 'swap' cannot be used as a function
swap(targetDay, baseDay);
^