Compile Error

foo.cc: In function 'int IsLeapYear(int)':
foo.cc:7:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if(year%400==0||year%4==0&&year%100!=0)
                    ~~~~~~~~~^~~~~~~~~~~~~
foo.cc: In function 'int DaysOfMonth(int, int)':
foo.cc:35:7: error: 'IfLeapYear' was not declared in this scope
    if(IfLeapYear(year))
       ^~~~~~~~~~
foo.cc:35:7: note: suggested alternative: 'IsLeapYear'
    if(IfLeapYear(year))
       ^~~~~~~~~~
       IsLeapYear
foo.cc:40:4: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1084 闰年、年天数、月天数-函数
语言
C++
递交时间
2021-08-09 11:48:50
评测时间
2021-08-09 11:48:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes