0_0_36781601_18504.cpp: In function 'void solve()': 0_0_36781601_18504.cpp:150:17: error: 'n' was not declared in this scope for(int i=0;i<=n;i++) vis[i] = 0; ^