0_0_19760542_32585.cpp: In function 'void topu()': 0_0_19760542_32585.cpp:23:12: error: 'ans' was not declared in this scope ans[t]=i; ^ 0_0_19760542_32585.cpp:32:27: error: 'ans' was not declared in this scope for(int j=1;j<=a[ans[i]][0];j++) ^