记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:10:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  leap1=(year1%400==0||year1%4==0&&year1%100!=0);//2020年不是闰年
                       ~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.c:11:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  leap2=(year2%400==0||year2%4==0&&year2%100!=0);
                       ~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.c:39:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
     if(year1%400==0||year1%4==0&&year1%100!=0)//假设我不知道的情况下
                      ~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.c:54:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if(i%400==0||i%4==0&&i%100!=0)
                   ~~~~~~^~~~~~~~~~
/in/foo.c:6:38: warning: unused variable 'sum' [-Wunused-variable]
  int year1,month1,day1,i,leap1,leap2,sum=0;
                                      ^~~
# 状态 耗时 内存占用
#1 Wrong Answer 0ms 204.0 KiB
#2 Wrong Answer 0ms 252.0 KiB
#3 Wrong Answer 0ms 200.0 KiB
#4 Wrong Answer 0ms 248.0 KiB
#5 Wrong Answer 0ms 224.0 KiB

信息

递交者
类型
递交
题目
P1093 5-6 过去了多少天
语言
C
递交时间
2021-12-28 00:18:27
评测时间
2021-12-28 00:18:27
评测机
分数
0
总耗时
4ms
峰值内存
252.0 KiB