0_0_24471796_4042.cpp: In function 'int main()': 0_0_24471796_4042.cpp:33:25: error: too many arguments to function 'void DFS(int, int)' if(ser[i]) DFS(i,0,-1); ^ 0_0_24471796_4042.cpp:9:6: note: declared here void DFS(int x,int d){ ^