vudu.cpp: In function 'int main()':
vudu.cpp:47:3: error: 'erase' was not declared in this scope
erase(unique(all.begin(),all.end()),all.end());
^~~~~
vudu.cpp:47:3: note: suggested alternative: 'raise'
erase(unique(all.begin(),all.end()),all.end());
^~~~~
raise
vudu.cpp:48:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < all.size(); j++)
~~^~~~~~~~~~~~
vudu.cpp:50:5: error: 'mp' was not declared in this scope
mp[all[j]]=j+1;
^~
vudu.cpp:50:5: note: suggested alternative: 'p'
mp[all[j]]=j+1;
^~
p
vudu.cpp:52:10: error: 'mp' was not declared in this scope
update(mp[0],1);
^~
vudu.cpp:52:10: note: suggested alternative: 'p'
update(mp[0],1);
^~
p