vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:11:18: error: wrong number of template arguments (1, should be at least 2)
11 | map<array<int, 4>> M;
| ^~
In file included from /usr/include/c++/10/map:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:81,
from vision.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
| ^~~
vision.cpp:16:44: error: request for member 'count' in 'M', which is of non-class type 'int'
16 | if(abs(i - k) + abs(j - l) == K && !M.count({i, j, k, l})){
| ^~~~~
vision.cpp:19:8: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
19 | M[{i, j, k, l}] = true;
| ^
vision.cpp:20:8: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
20 | M[{k, l, i, j}] = true;
| ^