Main.cc: In function 'bool a(int)': Main.cc:6:8: error: invalid operands of types 'bool(int)' and 'int' to binary 'operator%' if(a%i==0) return 0; ^