0_0_36341571_27602.cpp: In function 'int getf(int)': 0_0_36341571_27602.cpp:11:26: error: 'f' was not declared in this scope int getf(int v) { return f[v]==v?v:f[v]=getf(f[v]); } ^