I want to find an element in the map using map::find(key), and then iterate the map in reverse order from the point where I found the element, till the beginning (i.e. until  map::rend()).

However, I get a compile error when I try to assign my iterator to a reverse_iterator.  How do I solve this?


Question: Run commands on a different computer
Answer: Use SysInternals PSExec. It allows you to remotely execute files on any Windows system you have administrator credentials for. You could add a psexec command to the batch file (or whatever you're using) on the terminal which will then run the desired commands on the server.