assistant.cpp: In function 'void Assist(unsigned char*, int, int, int)':
assistant.cpp:10:2: error: 'map' was not declared in this scope
10 | map<int,int>d;
| ^~~
assistant.cpp:10:2: note: suggested alternatives:
In file included from /usr/include/c++/10/map:61,
from assistant.cpp:3:
/usr/include/c++/10/bits/stl_map.h:100:11: note: 'std::map'
100 | class map
| ^~~
In file included from assistant.cpp:3:
/usr/include/c++/10/map:78:13: note: 'std::pmr::map'
78 | using map
| ^~~
assistant.cpp:10:6: error: expected primary-expression before 'int'
10 | map<int,int>d;
| ^~~
assistant.cpp:11:2: error: 'set' was not declared in this scope
11 | set<int>res[N]={};
| ^~~
assistant.cpp:11:2: note: suggested alternatives:
In file included from /usr/include/c++/10/set:61,
from assistant.cpp:4:
/usr/include/c++/10/bits/stl_set.h:94:11: note: 'std::set'
94 | class set
| ^~~
In file included from assistant.cpp:4:
/usr/include/c++/10/set:78:13: note: 'std::pmr::set'
78 | using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>;
| ^~~
assistant.cpp:11:6: error: expected primary-expression before 'int'
11 | set<int>res[N]={};
| ^~~
assistant.cpp:16:3: error: 'res' was not declared in this scope; did you mean 're'?
16 | res[re[i]].insert(i);
| ^~~
| re
assistant.cpp:17:3: error: 'd' was not declared in this scope
17 | d[re[i]]++;
| ^
assistant.cpp:19:6: error: expected primary-expression before 'int'
19 | set<int>ind;
| ^~~
assistant.cpp:21:3: error: 'ind' was not declared in this scope; did you mean 'int'?
21 | ind.insert(i);
| ^~~
| int
assistant.cpp:25:3: error: 'd' was not declared in this scope
25 | d[z]--;
| ^
assistant.cpp:26:3: error: 'res' was not declared in this scope; did you mean 're'?
26 | res[z].erase(i);
| ^~~
| re
assistant.cpp:27:7: error: 'ind' was not declared in this scope; did you mean 'int'?
27 | if (ind.find(z)!=ind.end())
| ^~~
| int
assistant.cpp:31:15: error: 'ind' was not declared in this scope; did you mean 'int'?
31 | for (auto i:ind)
| ^~~
| int
assistant.cpp:41:25: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
41 | if (res[i].size()&&*begin(res[i])>f)
| ^~~~~
| std::begin
In file included from /usr/include/c++/10/array:41,
from /usr/include/c++/10/tuple:39,
from /usr/include/c++/10/bits/stl_map.h:63,
from /usr/include/c++/10/map:61,
from assistant.cpp:3:
/usr/include/c++/10/bits/range_access.h:108:37: note: 'std::begin' declared here
108 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&);
| ^~~~~
assistant.cpp:49:3: error: 'ind' was not declared in this scope; did you mean 'int'?
49 | ind.insert(z);
| ^~~
| int