Main.cc: In function 'int tz(int)': Main.cc:6:14: warning: value computed is not used [-Wunused-value] (tz(n+1)+1)*2; ^ Main.cc:9:1: error: expected ';' before '}' token } ^