Problem | poklon |
---|---|
User | Ok |
Submission Time | 2024-02-22 16:21:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
poklon.cpp: In function ‘int main()’:
poklon.cpp:116:22: error: invalid types ‘std::map<std::pair<int, int>, int> [500100][<brace-enclosed initializer list>]’ for array subscript
116 | ans[{i,j}] = root -> query(0,j);
| ^
poklon.cpp:142:26: error: no match for ‘operator[]’ (operand types are ‘std::map<std::pair<int, int>, int> [500100]’ and ‘std::pair<int, int>’)
142 | printf("%d\n",ans[q[i]]);
| ^