/in/foo.cc: In member function 'void Date::DateAdd(int)':
/in/foo.cc:32:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(isLeapYear(year)==true)
^
/in/foo.cc: In member function 'bool Date::isLeapYear(int)':
/in/foo.cc:49:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(year%400==0||year%4==0&&year%100!=0)
~~~~~~~~~^~~~~~~~~~~~~
/in/foo.cc:51:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:61:14: warning: 'y' is used uninitialized in this function [-Wuninitialized]
Date D(y,m,d);
^
/in/foo.cc:61:14: warning: 'm' is used uninitialized in this function [-Wuninitialized]
/in/foo.cc:61:14: warning: 'd' is used uninitialized in this function [-Wuninitialized]