bosses.cpp: In function 'void dfs(int)':
bosses.cpp:21:15: error: too many arguments to function 'void dfs(int)'
dfs(v, total);
^
bosses.cpp:17:6: note: declared here
void dfs(int u) {
^
bosses.cpp: In function 'int main()':
bosses.cpp:50:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
bosses.cpp:52:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int m; scanf("%d", &m);
^
bosses.cpp:54:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v);
^