In file included from /usr/include/c++/7/numeric:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:84,
from flood.cpp:4:
/usr/include/c++/7/bits/stl_numeric.h: In instantiation of 'void std::iota(_ForwardIterator, _ForwardIterator, _Tp) [with _ForwardIterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Tp = main()::<lambda(int, int)>]':
flood.cpp:41:63: required from here
/usr/include/c++/7/bits/stl_numeric.h:93:13: error: cannot convert 'main()::<lambda(int, int)>' to 'int' in assignment
*__first = __value;
~~~~~~~~~^~~~~~~~~
/usr/include/c++/7/bits/stl_numeric.h:94:4: error: no match for 'operator++' (operand type is 'main()::<lambda(int, int)>')
++__value;
^~~~~~~~~
flood.cpp: In function 'int main()':
flood.cpp:19:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
flood.cpp:21:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
each(i, p) scanf("%d%d", &i.first, &i.second);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flood.cpp:25:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &w);
~~~~~^~~~~~~~~~
flood.cpp:28:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &a, &b);
~~~~~^~~~~~~~~~~~~~~~