/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];
~~^~~~~~~~~~~~~