Compile Error

foo.cc:30:42: error: ISO C++ forbids declaration of 'WeekdayOfTheFirstDay' with no type [-fpermissive]
   30 |  WeekdayOfTheFirstDay(int year,int month )
      |                                          ^
foo.cc: In function 'int WeekdayOfTheFirstDay(int, int)':
foo.cc:39:10: warning: left operand of comma operator has no effect [-Wunused-value]
   39 |   return 0,ddday;
      |          ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1089 计算星期几
语言
C++
递交时间
2022-01-26 10:14:55
评测时间
2022-01-26 10:14:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes