regions.cpp: In function 'int main()':
regions.cpp:87:26: error: wrong number of template arguments (1, should be at least 2)
87 | map<pair<int, int>> ans;
| ^~
In file included from /usr/include/c++/10/map:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:81,
from regions.cpp:1:
/usr/include/c++/10/bits/stl_map.h:100:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
regions.cpp:92:20: error: request for member 'find' in 'ans', which is of non-class type 'int'
92 | if(ans.find({a,b})!=ans.end()){
| ^~~~
regions.cpp:92:37: error: request for member 'end' in 'ans', which is of non-class type 'int'
92 | if(ans.find({a,b})!=ans.end()){
| ^~~
regions.cpp:93:27: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
93 | cout<< ans[{a,b}] << endl;
| ^
regions.cpp:101:16: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
101 | ans[{a, b}] = cc;
| ^
regions.cpp:96:17: warning: unused variable 'last' [-Wunused-variable]
96 | int last = 0, lid = 0, cc = 0;
| ^~~~
regions.cpp:96:27: warning: unused variable 'lid' [-Wunused-variable]
96 | int last = 0, lid = 0, cc = 0;
| ^~~