0_0_24517183_6245.cpp: In function 'void bfs()': 0_0_24517183_6245.cpp:47:29: error: 'memset' was not declared in this scope memset(vis,0,sizeof(vis)); ^