Main.cc: In function 'int main()': Main.cc:8:20: error: expected primary-expression before '%' token if (a%i == 0 %% b%i == 0){ ^