0_0_25901504_10206.cpp: In function 'int main()':
0_0_25901504_10206.cpp:42:16: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
mp[i][A[i]] = mp[i - 1][A[i]] + 1;
^
0_0_25901504_10206.cpp:42:34: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
mp[i][A[i]] = mp[i - 1][A[i]] + 1;
^
0_0_25901504_10206.cpp:52:12: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
mp[i][j] = mp[i - 1][j] + sum;
^
0_0_25901504_10206.cpp:52:27: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
mp[i][j] = mp[i - 1][j] + sum;
^
0_0_25901504_10206.cpp:61:28: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
if(zz(c) == 1 && mp[b][c] - mp[a - 1][c] >= 1)
^
0_0_25901504_10206.cpp:61:43: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
if(zz(c) == 1 && mp[b][c] - mp[a - 1][c] >= 1)
^
0_0_25901504_10206.cpp:63:33: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
else if(zz(c) == 1 && mp[b][c] - mp[a -1][c] == 0)
^
0_0_25901504_10206.cpp:63:47: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
else if(zz(c) == 1 && mp[b][c] - mp[a -1][c] == 0)
^
0_0_25901504_10206.cpp:75:22: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
if(sum > mp[b][j] - mp[a - 1][j])
^
0_0_25901504_10206.cpp:75:37: error: invalid types 'std::map<int, int>::mapped_type {aka int}[int]' for array subscript
if(sum > mp[b][j] - mp[a - 1][j])
^
|