0_0_18971883_6977.cpp: In function 'int main()': 0_0_18971883_6977.cpp:20:36: error: 'memset' was not declared in this scope memset(visited, 0, sizeof visited); ^