Main.cc:39:1: error: expected declaration before '}' token } ^ Main.cc: In function 'bool if_one(int&, int&)': Main.cc:18:1: warning: control reaches end of non-void function [-Wreturn-type] } ^