0_0_29928302_507.cpp: In function 'int main()': 0_0_29928302_507.cpp:106:8: error: redeclaration of 'int ans' int ans=1; ^ 0_0_29928302_507.cpp:105:8: note: 'int ans' previously declared here int ans=ask(troot[rec[x]],1,n,y,x); ^