0_0_27890117_7718.cpp: In function 'int main()': 0_0_27890117_7718.cpp:41:31: error: 'tree' was not declared in this scope for(int i=0;i<=n;i++) tree[i]=0; ^