Main.cc: In function ‘int f(int)’: Main.cc:10:5: error: expected ‘;’ before ‘return’ return 0; ^~~~~~ Main.cc:11:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^