Compile Error

foo.cc: In function 'int isleapyear(int)':
foo.cc:5:14: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    5 |  if(year%4==0&&year%100!=0||year%400==0)
      |     ~~~~~~~~~^~~~~~~~~~~~~
foo.cc: At global scope:
foo.cc:47:40: error: ISO C++ forbids declaration of 'weekdayofthefirstday' with no type [-fpermissive]
   47 | weekdayofthefirstday(int year,int month)
      |                                        ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1074 计算星期几
语言
C++
递交时间
2022-07-19 20:12:30
评测时间
2022-07-19 20:12:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes