0_0_25488965_19325.cpp: In function 'int check()': 0_0_25488965_19325.cpp:54:4: error: 'cnt' was not declared in this scope cnt[x][y] = 0; ^ 0_0_25488965_19325.cpp:62:9: error: 'cnt' was not declared in this scope ++cnt[min(r, x)][max(r, x)]; ^