0_0_36341539_21967.cpp: In function 'int getf(int)': 0_0_36341539_21967.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]); } ^