Compile Error

foo.cc:8:20: error: ISO C++ forbids declaration of 'isLeapYear' with no type [-fpermissive]
    8 | isLeapYear(int year)
      |                    ^
foo.cc: In function 'int daysOfMonth(int, int)':
foo.cc:18:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   18 |   if(i==4||i==6||i==9||i==11)t+=30;i++;
      |   ^~
foo.cc:18:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   18 |   if(i==4||i==6||i==9||i==11)t+=30;i++;
      |                                    ^
[Hydro](https://hydro.ac)提供评测服务

信息

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