0_0_33701695_5436.cpp: In function 'int main()': 0_0_33701695_5436.cpp:86:24: error: 'q' was not declared in this scope for(int i=1;i<=q;i++) printf(" %d",ans[i]); ^