0_0_22460617_23952.cpp: In function 'int main()': 0_0_22460617_23952.cpp:48:2: error: 'cnt' was not declared in this scope cnt = 0; ^ 0_0_22460617_23952.cpp:49:26: error: 'memset' was not declared in this scope memset(vis,0,sizeof(vis)); ^