Compile Error

foo.cc: In function 'int WeekdayOfTheFirstDay(int, int)':
foo.cc:32:25: error: a function-definition is not allowed here before '{' token
   32 | int IsLeapYear(int year){
      |                         ^
foo.cc:36:25: error: a function-definition is not allowed here before '{' token
   36 | int DaysOfYear(int year){
      |                         ^
foo.cc:42:37: error: a function-definition is not allowed here before '{' token
   42 | int DaysOfMonth(int year, int month){
      |                                     ^
foo.cc:52:45: error: a function-definition is not allowed here before '{' token
   52 | int WeekdayOfTheFirstDay(int year,int month){
      |                                             ^
foo.cc:62:11: error: a function-definition is not allowed here before '{' token
   62 | int main(){
      |           ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1073 闰年、年天数、月天数-函数
语言
C++
递交时间
2022-07-15 20:03:49
评测时间
2022-07-15 20:03:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes