Accepted

foo.cc: In function 'int main()':
foo.cc:12:13: warning: unused variable 'month' [-Wunused-variable]
    int year,month,d,m;
             ^~~~~
foo.cc:12:19: warning: unused variable 'd' [-Wunused-variable]
    int year,month,d,m;
                   ^
foo.cc: In function 'int printMonth(int, int)':
foo.cc:35:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
foo.cc: In function 'int IsLeapYear(int)':
foo.cc:38:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if(year%400==0||year%4==0&&year%100!=0)
                    ~~~~~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 408.0 KiB
#2 Accepted 2ms 440.0 KiB

信息

递交者
类型
递交
题目
P1103 打印年历
语言
C++
递交时间
2021-08-13 09:27:22
评测时间
2021-08-13 09:27:22
评测机
分数
100
总耗时
4ms
峰值内存
440.0 KiB