I am doing everything correctly as far as I can tell and I have gotten the error message:
error: \'unordered_map\' does not name a type error: \'mymap\' does
If you want to support for versions older than c++11 use #include and declare your maps in the form :- std::tr1::unordered_map mymap which will use the technical report 1 extension for backward compatibility.
#include
std::tr1::unordered_map mymap