0_0_30435680_7061.cpp: In function 'int main()': 0_0_30435680_7061.cpp:16:25: error: expected ';' before '!' token scanf("%d%d",&n,&m)! ^ 0_0_30435680_7061.cpp:17:21: error: 'i' was not declared in this scope for(int i=1;i<=n;i++) tree[i]=-1; ^