0_0_24488632_23571.cpp:39:2: error: 'visit' does not name a type visit[x][y] = 0; ^ 0_0_24488632_23571.cpp:40:1: error: expected declaration before '}' token } ^