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