0_0_17940851_23461.cpp: In function 'void dfs(int, int, int)': 0_0_17940851_23461.cpp:31:18: error: too few arguments to function 'void dfs(int, int, int)' dfs(v); ^ 0_0_17940851_23461.cpp:24:6: note: declared here void dfs(int u,int fa,int K){ ^