Cannot declare this: using namespace std; vector< tr1::unordered_map<int,int> > dsfdsfds;
What happens when you do this? And what are the header files you use?
#include <vector> #include <tr1/unordered_map> using namespace std; int main(void) { vector<tr1::unordered_map<int,int> > v; } Runs fine here, using: Using built-in specs. Target: i386-apple-darwin9.2.0 Configured with: ../gcc/configure --enable-languages=c,c++ --prefix=/Users/caj/gccsvn/ Thread model: posix gcc version 4.4.0 20080305 (experimental) (GCC)
Really, this is a WORKSFORME, code in Comment #2 is fine everywhere.