Ubuntuでg ++を使用しています
g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3
私はこのコードを持っています
#include<unordered_map>
using namespace std;
bool ifunique(char *s){
unordered_map<char,bool> h;
if(s== NULL){
return true;
}
while(*s){
if(h.find(*s) != h.end()){
return false;
}
h.insert(*s,true);
s++;
}
return false;
}
を使用してコンパイルするとき
g++ mycode.cc
エラーが出ました
error: 'unordered_map' was not declared in this scope
何か不足していますか?