Main.cc: In function ‘bool hui(int)’: Main.cc:25:2: error: expected primary-expression before ‘if’ if(num==h)return 1; ^~ Main.cc:20:10: warning: unused variable ‘num’ [-Wunused-variable] int h=0,num=n; ^~~