007.cpp: In function 'std::vector<int> bfs(int)':
007.cpp:19:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j<adj[now].size(); j++){
~^~~~~~~~~~~~~~~~
007.cpp: In function 'void dfs(int)':
007.cpp:32:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i<adj[now].size(); i++){
~^~~~~~~~~~~~~~~~
007.cpp:35:21: error: invalid operands of types 'int' and 'void' to binary 'operator+'
ret = max(ret, 1 + dfs(to));
~~^~~~~~~~~
007.cpp:38:9: error: return-statement with a value, in function returning 'void' [-fpermissive]
return ret;
^~~
007.cpp: In function 'int main()':
007.cpp:93:16: error: void value not ignored as it ought to be
int a = dfs(d);
^
007.cpp:96:16: error: void value not ignored as it ought to be
int b = dfs(s);
^