0_0_21810262_31269.cpp: In function 'int main()': 0_0_21810262_31269.cpp:18:9: error: expected ';' before 'cin' cin >> year >> tmp >> month >> tmp >> day; ^