Compile Error

foo.cc:30:41: 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:32:15: warning: unused variable 'a' [-Wunused-variable]
   32 |   int ddday=0,a=0;
      |               ^
[Hydro](https://hydro.ac)提供评测服务

信息

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