flood.cpp:35:14: error: conflicting declaration 'int used [200005]'
int used[maxm];
^
flood.cpp:21:5: note: previous declaration as 'int used [400010]'
int used[2*maxm];
^~~~
flood.cpp: In function 'int trav(int, int, int, int)':
flood.cpp:44:17: warning: unused variable 'id' [-Wunused-variable]
int v = kk.X, id = kk.Y;
^~
flood.cpp: In function 'int main()':
flood.cpp:114:27: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n", res.size());
~~~~~~~~~~^
flood.cpp:78:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
flood.cpp:81:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &px[i], &py[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
flood.cpp:86:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &wu[i], &wv[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~