0_0_33653279_6253.cpp: In function 'int Solve(int, int)': 0_0_33653279_6253.cpp:39:8: error: 'val' was not declared in this scope ++cnt[val[x+i][y+j]]; ^