Before you can use unordered_map you need to include the <unordered_map> header.
Other than that it's not easy to know what problem you might be having. unordered_map is not a drop-in replacement for vector. The two containers are quite different and you most likely will have to rewrite the code when switching between them.