Main.cc: In function ‘int main()’: Main.cc:36:10: error: expected ‘}’ at end of input return 0; ^ Main.cc: In function ‘bool check(int, int)’: Main.cc:10:1: warning: control reaches end of non-void function [-Wreturn-type] } ^