0_0_35337390_12891.cpp: In function 'int main()': 0_0_35337390_12891.cpp:65:86: error: 'x' was not declared in this scope if (g[x1][y1] != g[x2][y2] || g[x1][y1] == 0 || g[x2][y2] == 0 || (x1 == x && y1 == y2)) { ^