Accepted

foo.cc: In function 'int IsLeapYear(int)':
foo.cc:9:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(year%400==0 || year%4==0 && year%100!=0)
                    ~~~~~~~~~~^~~~~~~~~~~~~~
foo.cc: In function 'int WeekdayOfTheFirstDay(int, int)':
foo.cc:59:6: warning: unused variable 'a' [-Wunused-variable]
  int a,b,c,i,j,y,n,z,sum=0;
      ^
foo.cc:59:10: warning: unused variable 'c' [-Wunused-variable]
  int a,b,c,i,j,y,n,z,sum=0;
          ^
foo.cc: In function 'int main()':
foo.cc:96:25: warning: unused variable 'b' [-Wunused-variable]
  int year,month,i,c,j,d,b;
                         ^
foo.cc: In function 'int DaysOfMonth(int, int)':
foo.cc:55:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 408.0 KiB
#2 Accepted 1ms 404.0 KiB

信息

递交者
类型
递交
题目
P1094 打印月历
语言
C++
递交时间
2021-11-28 11:25:34
评测时间
2021-11-28 11:25:34
评测机
分数
100
总耗时
3ms
峰值内存
408.0 KiB