/in/foo.cc: In function 'int pd1()':
/in/foo.cc:12:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (p%i == 0 && q%i == 0)
^
/in/foo.cc:21:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (p%i == 0 && q%i == 0)
^
/in/foo.cc: In function 'int pd2()':
/in/foo.cc:34:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (j%p == 0 && j%q == 0)
^
/in/foo.cc:43:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (j%p == 0 && j%q == 0)
^
/in/foo.cc: In function 'int pd1()':
/in/foo.cc:27:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/in/foo.cc: In function 'int pd2()':
/in/foo.cc:49:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^