Main.cc: In function 'int maina()': Main.cc:7:1: error: expected ';' before '}' token } ^ Main.cc:7:1: warning: no return statement in function returning non-void [-Wreturn-type]