circle_selection.cpp:15:21: error: 'vector' was not declared in this scope
map<pair<int, int>, vector<int>> mp;
^~~~~~
circle_selection.cpp:15:21: note: suggested alternative: 'perror'
map<pair<int, int>, vector<int>> mp;
^~~~~~
perror
circle_selection.cpp:15:31: error: template argument 2 is invalid
map<pair<int, int>, vector<int>> mp;
^~
circle_selection.cpp:15:31: error: template argument 4 is invalid
circle_selection.cpp: In function 'void rescale()':
circle_selection.cpp:29:5: error: request for member 'clear' in 'mp', which is of non-class type 'int'
mp.clear();
^~~~~
circle_selection.cpp:31:36: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
mp[{x[to] / block, y[to] / block}].push_back(to);
^
circle_selection.cpp: At global scope:
circle_selection.cpp:35:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main() {
^
circle_selection.cpp: In function 'int main()':
circle_selection.cpp:36:2: error: 'iota' was not declared in this scope
iota(pos, pos + N, 0);
^~~~
circle_selection.cpp:36:2: note: suggested alternative: 'int'
iota(pos, pos + N, 0);
^~~~
int
circle_selection.cpp:54:13: error: request for member 'count' in 'mp', which is of non-class type 'int'
if (!mp.count({cx, cy})) continue;
^~~~~
circle_selection.cpp:55:30: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
for (int to : mp[{cx, cy}]) {
^
circle_selection.cpp:37:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
circle_selection.cpp:39:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &x[i], &y[i], &r[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~