Accepted

foo.cc: In function 'int DaysOfMonth(int, int)':
foo.cc:41:4: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
    else
    ^~~~
foo.cc:43:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
     break;
     ^~~~~
foo.cc: In function 'int main()':
foo.cc:63:10: warning: unused variable 'sum' [-Wunused-variable]
  int y,m,sum=0;
          ^~~
foo.cc: In function 'int DaysOfMonth(int, int)':
foo.cc:47:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 416.0 KiB
#2 Accepted 2ms 412.0 KiB

信息

递交者
类型
递交
题目
P1089 计算星期几
语言
C++
递交时间
2021-07-26 22:43:25
评测时间
2021-07-26 22:43:25
评测机
分数
100
总耗时
4ms
峰值内存
416.0 KiB