foo.cc: In function 'bool bfs(int, int)':
foo.cc:5:13: warning: overflow in implicit constant conversion [-Woverflow]
#define INF (long long)(1e18)
^~~~~~~~~~~~~~~~~
foo.cc:21:10: note: in expansion of macro 'INF'
dep[i]=INF;
^~~
foo.cc: In function 'int main()':
foo.cc:5:13: warning: overflow in implicit constant conversion [-Woverflow]
#define INF (long long)(1e18)
^~~~~~~~~~~~~~~~~
foo.cc:15:29: note: in definition of macro '_add'
#define _add(x,y,v) add(x,y,v),add(y,x,0)
^
foo.cc:64:14: note: in expansion of macro 'INF'
_add(x,n+1,INF);
^~~
foo.cc:58:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&x,&y,&z);
~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:63:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务