if(ostDay == ostYear || ostMonth == ostYear);
^^^^^
int minN = std::min(remDay, remMonth);
int maxN = std::max(remDay, remMonth);
for(year = 201; year <=211; year++)
{
cout << year << MinN << '\n' << year << maxN;
}