Main.cc: In function 'bool run(int)': Main.cc:4:20: error: a function-definition is not allowed here before '{' token bool run(int year){ ^ Main.cc:24:1: error: expected '}' at end of input } ^ Main.cc:24:1: warning: no return statement in function returning non-void [-Wreturn-type]