0_0_29082906_20961.cpp: In function 'int main()': 0_0_29082906_20961.cpp:42:13: error: 'visited' was not declared in this scope visited[b] = 1; ^