记录详情

Wrong Answer

/in/foo.cc: In function 'bool pd(int)':
/in/foo.cc:15:55: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
                  if((date%400==0||(date%4==0&&date&100!=0))&&yue==2&&ri<=29) return 1;
                                                    ~~~^~~
/in/foo.cc:15:58: warning: 'and' of mutually exclusive equal-tests is always 0
                  if((date%400==0||(date%4==0&&date&100!=0))&&yue==2&&ri<=29) return 1;
                                                          ^
/in/foo.cc:16:59: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
                     if(!(date%400==0||(date%4==0&&date&100!=0))&&yue==2&&ri<=28) return 1;
                                                        ~~~^~~
/in/foo.cc:16:62: warning: 'and' of mutually exclusive equal-tests is always 0
                     if(!(date%400==0||(date%4==0&&date&100!=0))&&yue==2&&ri<=28) return 1;
                                                              ^
/in/foo.cc:16:64: warning: 'or' of unmatched not-equal tests is always 1
                     if(!(date%400==0||(date%4==0&&date&100!=0))&&yue==2&&ri<=28) return 1;
                                                                ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:23:6: warning: variable 'd1' set but not used [-Wunused-but-set-variable]
  int d1,d2,da1,da2;
      ^~
/in/foo.cc:23:9: warning: variable 'd2' set but not used [-Wunused-but-set-variable]
  int d1,d2,da1,da2;
         ^~
/in/foo.cc: In function 'bool pd(int)':
/in/foo.cc:20:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/foo.cc:11:16: warning: 'a[2]' is used uninitialized in this function [-Wuninitialized]
             yue=a[1]*10+a[2];
             ~~~^~~~~~~~~~~~~
/in/foo.cc:12:20: warning: 'a[3]' is used uninitialized in this function [-Wuninitialized]
             ri=a[3]*10+a[4];
                ~~~~^~~
/in/foo.cc:12:15: warning: 'a[4]' is used uninitialized in this function [-Wuninitialized]
             ri=a[3]*10+a[4];
             ~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 204.0 KiB
#2 Accepted 1ms 216.0 KiB
#3 Wrong Answer 1ms 216.0 KiB
#4 Accepted 1ms 212.0 KiB
#5 Wrong Answer 1ms 216.0 KiB
#6 Wrong Answer 1ms 216.0 KiB
#7 Wrong Answer 2ms 216.0 KiB
#8 Wrong Answer 92ms 308.0 KiB
#9 Wrong Answer 288ms 308.0 KiB
#10 Wrong Answer 424ms 312.0 KiB

信息

递交者
类型
递交
题目
P1005 回文日期
语言
C++
递交时间
2019-05-10 20:35:36
评测时间
2019-05-10 20:35:36
评测机
分数
20
总耗时
816ms
峰值内存
312.0 KiB