0_0_20899566_31126.cpp: In function 'int main()': 0_0_20899566_31126.cpp:111:17: error: too many arguments to function 'void addedge(int, int)' addedge(u,v,1); ^ 0_0_20899566_31126.cpp:28:6: note: declared here void addedge(int u,int v) ^