0_0_37736646_6155.cpp: In function 'void deduplicate(int, int, int)':
0_0_37736646_6155.cpp:91:26: error: request for member 'second' in 'mp[m]->std::map<_Key, _Tp, _Compare, _Alloc>::operator[]<int, int, std::less<int>, std::allocator<std::pair<const int, int> > >((*(const key_type*)(& x)))', which is of non-class type 'std::map<int, int>::mapped_type {aka int}'
if(((*mp[m])[x]).second >= d){
^
0_0_37736646_6155.cpp: In function 'void makeTables(int, int)':
0_0_37736646_6155.cpp:104:35: error: too many arguments to function 'void makeTables(int, int)'
makeTables(v[x][i], x, d+1);
^
0_0_37736646_6155.cpp:100:6: note: declared here
void makeTables(int x, int d){
^
0_0_37736646_6155.cpp:112:15: error: request for member 'insert' in 'mp[x]', which is of pointer type 'std::map<int, int>*' (maybe you meant to use '->' ?)
mp[x].insert({color[x], d});
^
0_0_37736646_6155.cpp:113:38: error: 'dep' was not declared in this scope
freqTable[x] = construct(1,n,dep[x]);
^
0_0_37736646_6155.cpp:116:34: error: 'dep' was not declared in this scope
deduplicate(x, color[x], dep[x]);
^
0_0_37736646_6155.cpp:121:70: error: too few arguments to function 'int merge(int, int, int, int)'
freqTable[x] = merge(freqTable[x], freqTable[v[x][i]]);
^
0_0_37736646_6155.cpp:33:5: note: declared here
int merge(int cur1, int cur2, int l, int r){
^
|