/in/foo.cc: In function 'void dfs1(int)':
/in/foo.cc:29:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(register int i=0;i<G[cur].size();++i){
~^~~~~~~~~~~~~~
/in/foo.cc: In function 'void dfs2(int, int)':
/in/foo.cc:42:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(register int i=0;i<G[cur].size();++i){
~^~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:78:32: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll {aka long long int}' [-Wformat=]
printf("%d\n%lld",ans1,ans2);
^