记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:19:13: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   19 |         if(i&4==0&&i%100!=0||i%400==0){
      |             ^
foo.c:19:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   19 |         if(i&4==0&&i%100!=0||i%400==0){
      |            ~~~~~~^~~~~~~~~~
foo.c:28:19: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   28 |         if(D1.year&4==0&&D1.year%100!=0||D1.year%400==0){
      |                   ^
foo.c:28:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   28 |         if(D1.year&4==0&&D1.year%100!=0||D1.year%400==0){
      |            ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
foo.c:33:13: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   33 |         if(i&4==0&&i%100!=0||i%400==0){
      |             ^
foo.c:33:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   33 |         if(i&4==0&&i%100!=0||i%400==0){
      |            ~~~~~~^~~~~~~~~~
foo.c:42:19: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   42 |         if(D2.year&4==0&&D2.year%100!=0||D2.year%400==0){
      |                   ^
foo.c:42:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   42 |         if(D2.year&4==0&&D2.year%100!=0||D2.year%400==0){
      |            ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 请输入第一个日期:请输入第二个日..., expect 35. 5ms 256.0 KiB

信息

递交者
类型
自测
题目
P1083 xf1-6计算日期
语言
C
递交时间
2022-08-27 14:53:15
评测时间
2022-08-27 14:53:15
评测机
分数
0
总耗时
5ms
峰值内存
256.0 KiB