Accepted

foo.cc: In function 'int main()':
foo.cc:12:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   12 |   if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
      |       ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:18:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   18 |   if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
      |       ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:24:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   24 |   if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
      |       ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:30:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   30 |   if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
      |       ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:36:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   36 |   if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
      |       ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:42:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   42 |   if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
      |       ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:48:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   48 |   if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
      |       ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:54:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   54 |   if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
      |       ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:60:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   60 |   if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
      |       ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:66:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   66 |   if ((y % 4 == 0) && (y % 100 != 0) || y % 400 == 0)
      |       ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:71:10: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
   71 |  cout << s;
      |          ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 384.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Accepted 5ms 384.0 KiB
#4 Accepted 2ms 512.0 KiB
#5 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1026 计算某日期的天数***
语言
C++
递交时间
2022-07-09 11:27:44
评测时间
2022-07-09 11:27:44
评测机
分数
100
总耗时
17ms
峰值内存
512.0 KiB