Compile Error

foo.cc: In function 'int printMonth(int, int)':
foo.cc:8:27: error: expected primary-expression before 'int'
    d=WeekdayOfTheFirstDay(int year,int month);
                           ^~~
foo.cc:8:36: error: expected primary-expression before 'int'
    d=WeekdayOfTheFirstDay(int year,int month);
                                    ^~~
foo.cc:8:6: error: 'WeekdayOfTheFirstDay' was not declared in this scope
    d=WeekdayOfTheFirstDay(int year,int month);
      ^~~~~~~~~~~~~~~~~~~~
foo.cc:9:11: error: 'DaysOfMonth' was not declared in this scope
    m_days=DaysOfMonth(year,month);
           ^~~~~~~~~~~
foo.cc:21:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
foo.cc: In function 'int IsLeapYear(int)':
foo.cc:24:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if(year%400==0||year%4==0&&year%100!=0)
                    ~~~~~~~~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:74:19: warning: unused variable 'd' [-Wunused-variable]
    int year,month,d;
                   ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1094 打印月历
语言
C++
递交时间
2021-08-11 13:23:29
评测时间
2021-08-11 13:23:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes