Compile Error

foo.cc: In function 'int main()':
foo.cc:10:36: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int (*)(int)' [-Wformat=]
  printf("%d",DaysOfYear,DaysOfMonth);
                                    ^
foo.cc:10:36: warning: too many arguments for format [-Wformat-extra-args]
foo.cc: In function 'int DaysOfMonth(int, int)':
foo.cc:37:77: error: expected primary-expression before ')' token
  if(month==1||month==3||month==5||month==7||month==8||month==10||month==12||)
                                                                             ^
foo.cc:41:51: error: expected primary-expression before ')' token
  else if(month==4||month==6||month==9||month==11||)
                                                   ^
foo.cc:56:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
[Hydro](https://hydro.ac)提供评测服务

信息

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