0_0_17183640_6685.cpp: In function 'int main()': 0_0_17183640_6685.cpp:39:16: error: 'z' was not declared in this scope if(z->parent[i] == i) ans++; ^