regions.cpp: In function 'std::vector<int> setup_down(int)':
regions.cpp:26:13: error: 'down' was not declared in this scope
26 | down[conv[rg[x]]][i]+=v[i];
| ^~~~
regions.cpp:31:9: error: 'down' was not declared in this scope
31 | down[conv[rg[x]]][conv[rg[x]]]++;
| ^~~~
regions.cpp: In function 'void setup_up(int, std::vector<int>)':
regions.cpp:40:27: error: no match for 'operator+=' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'} and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'})
40 | up[conv[rg[x]]][i]+=rm[i];
regions.cpp:43:37: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
43 | up[conv[rg[x]]][conv[rg[x]]]++;
regions.cpp: In function 'int main()':
regions.cpp:62:32: error: no matching function for call to 'std::vector<std::vector<std::pair<int, int> > >::resize(int&, std::vector<int>)'
62 | up.resize(R,vector<int>(sq));
| ^
In file included from /usr/include/c++/10/vector:67,
from /usr/include/c++/10/functional:62,
from /usr/include/c++/10/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from regions.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:937:7: note: candidate: 'void std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type) [with _Tp = std::vector<std::pair<int, int> >; _Alloc = std::allocator<std::vector<std::pair<int, int> > >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]'
937 | resize(size_type __new_size)
| ^~~~~~
/usr/include/c++/10/bits/stl_vector.h:937:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/10/bits/stl_vector.h:957:7: note: candidate: 'void std::vector<_Tp, _Alloc>::resize(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = std::vector<std::pair<int, int> >; _Alloc = std::allocator<std::vector<std::pair<int, int> > >; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::vector<std::pair<int, int> >]'
957 | resize(size_type __new_size, const value_type& __x)
| ^~~~~~
/usr/include/c++/10/bits/stl_vector.h:957:54: note: no known conversion for argument 2 from 'std::vector<int>' to 'const value_type&' {aka 'const std::vector<std::pair<int, int> >&'}
957 | resize(size_type __new_size, const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
regions.cpp:63:5: error: 'down' was not declared in this scope
63 | down.resize(R,vector<int>(sq));
| ^~~~