Accepted

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

信息

递交者
类型
递交
题目
P1103 打印年历
语言
C++
递交时间
2022-05-01 12:22:53
评测时间
2022-05-01 12:22:53
评测机
分数
100
总耗时
5ms
峰值内存
384.0 KiB