Compile Error

foo.cc: In function 'int main()':
foo.cc:10:25: error: 'year' was not declared in this scope
  printf("%d",DaysOfYear(year),DaysOfMonth(year,month));
                         ^~~~
foo.cc:10:25: note: suggested alternative: 'char'
  printf("%d",DaysOfYear(year),DaysOfMonth(year,month));
                         ^~~~
                         char
foo.cc:10:48: error: 'month' was not declared in this scope
  printf("%d",DaysOfYear(year),DaysOfMonth(year,month));
                                                ^~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

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