fireworks.cpp:7:17: warning: left shift count >= width of type [-Wshift-count-overflow]
const ll INF=1<<45;
^
fireworks.cpp: In function 'void dfs(int)':
fireworks.cpp:43:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(!dfs[u.va]){
^
fireworks.cpp:44:18: error: cannot convert 'pii {aka std::pair<int, int>}' to 'int' for argument '1' to 'void dfs(int)'
dfs(u);
^
fireworks.cpp: In function 'void input()':
fireworks.cpp:12:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&N,&M);
^
fireworks.cpp:14:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^