0_0_38716055_17421.cpp:20:35: error: wrong number of template arguments (1, should be at least 2)
20 | map<vector<int>> &fac_pos) {
| ^~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/map:63,
from 0_0_38716055_17421.cpp:4:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
0_0_38716055_17421.cpp: In function 'void factor_integer(int, int, int&)':
0_0_38716055_17421.cpp:23:14: error: invalid types 'int[const int]' for array subscript
23 | fac_pos[PRIME[i]].push_back(pos);
| ^
0_0_38716055_17421.cpp:28:12: error: invalid types 'int[int]' for array subscript
28 | fac_pos[x].push_back(pos);
| ^
0_0_38716055_17421.cpp: In function 'int main()':
0_0_38716055_17421.cpp:57:28: error: invalid initialization of reference of type 'int&' from expression of type 'std::vector<std::vector<int> >'
57 | factor_integer(i, a, fpa);
| ^~~
0_0_38716055_17421.cpp:20:39: note: in passing argument 3 of 'void factor_integer(int, int, int&)'
20 | map<vector<int>> &fac_pos) {
| ~~~~~~~~~~~~~~~~~~^~~~~~~
|