0_0_22422105_26849.cpp: In function 'int main()': 0_0_22422105_26849.cpp:64:23: error: too many arguments to function 'void dfs(int, int)' dfs(i,1,-1); ^ 0_0_22422105_26849.cpp:10:6: note: declared here void dfs(int u,int sum) ^