dreaming.cpp: In function 'void dfs(int, int)':
dreaming.cpp:13:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0;j<G[x].size();j++)
~^~~~~~~~~~~~
dreaming.cpp:24:21: error: too few arguments to function 'void dfs(int, int)'
dfs(u.to);
^
dreaming.cpp:11:6: note: declared here
void dfs(int x,int p)
^~~
dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:43:13: error: 'dfs2' was not declared in this scope
dfs2(pos,1);
^~~~
dreaming.cpp:43:13: note: suggested alternative: 'dfs'
dfs2(pos,1);
^~~~
dfs
dreaming.cpp:48:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k=0;k<G[pos].size();k++)
~^~~~~~~~~~~~~~