0_0_25999810_24978.cpp: In function 'void solve()': 0_0_25999810_24978.cpp:35:12: error: 'vis' was not declared in this scope memset(vis,0,sizeof(vis)); ^