foo.cc: In function 'int pd1()':
foo.cc:12:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (p%i == 0 && q%i == 0)
^
foo.cc:21:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (p%i == 0 && q%i == 0)
^
foo.cc: In function 'int pd2()':
foo.cc:34:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (j%p == 0 && j%q == 0)
^
foo.cc:43:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (j%p == 0 && j%q == 0)
^
foo.cc: In function 'int pd1()':
foo.cc:27:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
foo.cc: In function 'int pd2()':
foo.cc:49:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)
{"receive":"2020-04-12T10:59:13.767Z","handle":"2020-04-12T10:59:13.767Z","cache_start":"2020-04-12T10:59:13.773Z","read_cases":"2020-04-12T10:59:13.904Z","judge":"2020-04-12T10:59:13.905Z","done":"2020-04-12T10:59:16.224Z"}