0_0_13775182_8483.cpp: In function 'int main()': 0_0_13775182_8483.cpp:57:46: error: invalid operands of types 'double' and 'int' to binary 'operator%' if ( (fabs(s_i - e_i) + fabs(s_j - e_j)) % 2 != t % 2) { ^