ho_t4.cpp: In function 'int main()':
ho_t4.cpp:137:28: error: cannot convert 'std::vector<int>' to 'int' in initialization
137 | for(int j : gr[0][i])
| ^
ho_t4.cpp:139:32: error: invalid types 'int[int]' for array subscript
139 | if(sps.find(kr[{i,j[0],j[1],j[2]}]) != sps.end())
| ^
ho_t4.cpp:139:37: error: invalid types 'int[int]' for array subscript
139 | if(sps.find(kr[{i,j[0],j[1],j[2]}]) != sps.end())
| ^
ho_t4.cpp:139:42: error: invalid types 'int[int]' for array subscript
139 | if(sps.find(kr[{i,j[0],j[1],j[2]}]) != sps.end())
| ^
ho_t4.cpp:139:27: error: no match for 'operator[]' (operand types are 'std::map<std::vector<int>, int>' and '<brace-enclosed initializer list>')
139 | if(sps.find(kr[{i,j[0],j[1],j[2]}]) != sps.end())
| ^
In file included from /usr/include/c++/11/map:61,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:81,
from ho_t4.cpp:2:
/usr/include/c++/11/bits/stl_map.h:492:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::vector<int>; _Tp = int; _Compare = std::less<std::vector<int> >; _Alloc = std::allocator<std::pair<const std::vector<int>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::vector<int>]'
492 | operator[](const key_type& __k)
| ^~~~~~~~
/usr/include/c++/11/bits/stl_map.h:492:34: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type&' {aka 'const std::vector<int>&'}
492 | operator[](const key_type& __k)
| ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/stl_map.h:512:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = std::vector<int>; _Tp = int; _Compare = std::less<std::vector<int> >; _Alloc = std::allocator<std::pair<const std::vector<int>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::vector<int>]'
512 | operator[](key_type&& __k)
| ^~~~~~~~
/usr/include/c++/11/bits/stl_map.h:512:29: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::map<std::vector<int>, int>::key_type&&' {aka 'std::vector<int>&&'}
512 | operator[](key_type&& __k)
| ~~~~~~~~~~~^~~
ho_t4.cpp:142:27: error: invalid types 'int[int]' for array subscript
142 | int cu = j[0];
| ^
ho_t4.cpp:143:28: error: invalid types 'int[int]' for array subscript
143 | ll cans = j[2];
| ^
ho_t4.cpp:144:18: error: invalid types 'int[int]' for array subscript
144 | j[0] = i;
| ^
ho_t4.cpp:145:41: error: invalid types 'int[int]' for array subscript
145 | gr[0][cu].push_back({i,j[1]});
| ^
ho_t4.cpp:145:36: error: no matching function for call to 'std::vector<std::vector<int> >::push_back(<brace-enclosed initializer list>)'
145 | gr[0][cu].push_back({i,j[1]});
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from ho_t4.cpp:2:
/usr/include/c++/11/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::value_type = std::vector<int>]'
1187 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::vector<int>&'}
1187 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vector<_Tp, _Alloc>::value_type = std::vector<int>]'
1203 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::vector<int> >::value_type&&' {aka 'std::vector<int>&&'}
1203 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
ho_t4.cpp:173:18: error: invalid types 'int[int]' for array subscript
173 | j[0] = cu;
| ^