记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:16:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   16 |         if (year1 % 4 == 0 && year1 % 100 != 0 || year1 % 400 == 0) {
      |             ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
foo.c:21:21: warning: unused variable 'x' [-Wunused-variable]
   21 |                 int x;
      |                     ^
foo.c:32:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   32 |             if (i % 4 == 0 && i % 100 != 0 || i % 400 == 0) {
      |                 ~~~~~~~~~~~^~~~~~~~~~~~~~~
foo.c:39:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   39 |         if (year1 % 4 == 0 && year1 % 100 != 0 || year1 % 400 == 0) {
      |             ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
foo.c:40:20: warning: implicit declaration of function 'z' [-Wimplicit-function-declaration]
   40 |             sum += z(year2, month2, day2) + 365 - z(year2, month2, day2);
      |                    ^
foo.c: In function 'z':
foo.c:53:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   53 |     if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
      |         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 0a1 > 6717 2ms 256.0 KiB
#2 Wrong Answer 0a1 > 18415 3ms 256.0 KiB
#3 Wrong Answer 0a1 > 43252 2ms 256.0 KiB
#4 Wrong Answer 0a1 > 79776 1ms 256.0 KiB
#5 Wrong Answer 0a1 > 5114 1ms 256.0 KiB

信息

递交者
类型
递交
题目
5-6 过去了多少天
语言
C
递交时间
2022-09-26 18:54:58
评测时间
2022-09-26 18:54:58
评测机
分数
0
总耗时
11ms
峰值内存
256.0 KiB