flood.cpp: In function 'int main()':
flood.cpp:27:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int i = 0 ; i < v.size() ; i++ ) {
~~^~~~~~~~~~
flood.cpp:46:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int j = 0 ; j < outside.size() ; j++ ) visit[outside[j]] = 1;
~~^~~~~~~~~~~~~~~~
flood.cpp:49:29: 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",ans.size());
~~~~~~~~~~^
flood.cpp:50:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int i = 0 ; i < ans.size() ; i++ ) printf("%d ",ans[i]);
~~^~~~~~~~~~~~
flood.cpp:16:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
flood.cpp:17:42: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for( int i = 1 ; i <= n ; i++ ) scanf("%d %d",&p[i].x,&p[i].y);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
flood.cpp:18:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&w);
~~~~~^~~~~~~~~
flood.cpp:20:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&f[i],&t[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~