我似乎无法理解为什么我收到以下代码的错误。我已经尝试重写代码,但似乎并没有解决问题。它不应该给我一个我可以看到的错误。
#include <iostream>
using namespace std;
int main()
{
    int month[12] = {0, 31, 60, 91, 121, 152, 182, 213, 243, 274, 305, 335};
    int  year, dayNumber, day;
    cout<< "Please enter the month, by numerical value:";
    cin >> month;
    cout<<"Please enter the day, by numerical value:";
    cin >> day;
    cout<<"Please enter the year, by numerical value:";
    cin >> year;