Compile Error

/in/foo.cc: In function 'int IsLeapYear(int)':
/in/foo.cc:5:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(year%4==0&&year%100||year%100==0) return 1;
      ~~~~~~~~~^~~~~~~~~~
/in/foo.cc: At global scope:
/in/foo.cc:30:41: error: ISO C++ forbids declaration of 'WeekdayOfTheFirstDay' with no type [-fpermissive]
  WeekdayOfTheFirstDay(int year,int month)
                                         ^

信息

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